source: spec/trunk/SPECS/bzip2.spec@ 201

Last change on this file since 201 was 168, checked in by Yuri Dario, 14 years ago

spec: massive rebuild due to new rpm lx parser updates (see changeset:167).

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1
2Summary: A file compression utility
3Name: bzip2
4Version: 1.0.6
5Release: 5%{?dist}
6License: BSD
7Group: Applications/File
8URL: http://www.bzip.org/
9Source: http://www.bzip.org/%{version}/bzip2-%{version}.tar.gz
10Patch0: bzip2-os2.diff
11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13%description
14Bzip2 is a freely available, patent-free, high quality data compressor.
15Bzip2 compresses files to within 10 to 15 percent of the capabilities
16of the best techniques available. However, bzip2 has the added benefit
17of being approximately two times faster at compression and six times
18faster at decompression than those techniques. Bzip2 is not the
19fastest compression utility, but it does strike a balance between speed
20and compression capability.
21
22Install bzip2 if you need a compression utility.
23
24%package devel
25Summary: Header files developing apps which will use bzip2
26Group: Development/Libraries
27Requires: bzip2-libs = %{version}-%{release}
28
29%description devel
30
31Header files and a library of bzip2 functions, for developing apps
32which will use the library.
33
34%package libs
35Summary: Libraries for applications using bzip2
36Group: System Environment/Libraries
37
38%description libs
39
40Libraries for applications using the bzip2 compression format.
41
42%prep
43# -D Do not delete the directory before unpacking.
44# -T Disable the automatic unpacking of the archives.
45%setup
46%patch0 -p1 -b .os2~
47
48%build
49
50make -f Makefile-libbz2_so CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
51 CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fpic -fPIC" \
52 LDFLAGS="-g -Zbin-files -Zhigh-mem -Zdll -Zomf -Zargs-wild -Zargs-resp" \
53 %{?_smp_mflags} dll
54
55make CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
56 CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" \
57 LDFLAGS="-g -Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" \
58 %{?_smp_mflags} all
59
60%install
61rm -rf ${RPM_BUILD_ROOT}
62
63chmod 644 bzlib.h
64mkdir -p $RPM_BUILD_ROOT%{_bindir}
65mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
66#mkdir -p $RPM_BUILD_ROOT%{_lib}
67mkdir -p $RPM_BUILD_ROOT%{_libdir}
68mkdir -p $RPM_BUILD_ROOT%{_includedir}
69cp -p bzlib.h $RPM_BUILD_ROOT%{_includedir}
70install -m 755 libbz2.a $RPM_BUILD_ROOT/%{_libdir}
71install -m 755 bzip2.exe $RPM_BUILD_ROOT%{_bindir}
72install -m 755 bzip2recover.exe bzgrep bzdiff bzmore $RPM_BUILD_ROOT%{_bindir}/
73cp -p bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/
74cp bzip2.exe $RPM_BUILD_ROOT%{_bindir}/bunzip2.exe
75cp bzip2.exe $RPM_BUILD_ROOT%{_bindir}/bzcat.exe
76ln -s bzdiff $RPM_BUILD_ROOT%{_bindir}/bzcmp
77ln -s bzmore $RPM_BUILD_ROOT%{_bindir}/bzless
78cp bz2.dll $RPM_BUILD_ROOT/%{_libdir}
79#ln -s ../../%{_lib}/libbz2.so.1 $RPM_BUILD_ROOT/%{_libdir}/libbz2.so
80ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1
81ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bunzip2.1
82ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcat.1
83ln -s bzdiff.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcmp.1
84ln -s bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzless.1
85
86
87#%post libs -p /sbin/ldconfig
88
89#%postun libs -p /sbin/ldconfig
90
91%clean
92rm -rf ${RPM_BUILD_ROOT}
93
94%files
95%defattr(-,root,root,-)
96%doc LICENSE CHANGES README
97%{_bindir}/*
98%{_mandir}/*/*
99
100%files libs
101%defattr(-,root,root,-)
102%doc LICENSE
103%{_libdir}/*.dll
104
105%files devel
106%defattr(-,root,root,-)
107%doc manual.html manual.pdf
108%{_includedir}/*
109%{_libdir}/*.a
110
111%changelog
Note: See TracBrowser for help on using the repository browser.