mirror of
https://abf.rosa.ru/djam/bzip2.git
synced 2025-02-23 10:52:54 +00:00
Automatic import for version 1.0.6-5
This commit is contained in:
parent
0b6619eb3d
commit
464c614418
1 changed files with 49 additions and 5 deletions
54
bzip2.spec
54
bzip2.spec
|
@ -2,12 +2,13 @@
|
|||
%define libname %mklibname %{name}_ %{major}
|
||||
%define develname %mklibname %{name} -d
|
||||
|
||||
%bcond_without uclibc
|
||||
%define buildpdf 0
|
||||
|
||||
Summary: Extremely powerful file compression utility
|
||||
Name: bzip2
|
||||
Version: 1.0.6
|
||||
Release: 4
|
||||
Release: 5
|
||||
License: BSD
|
||||
Group: Archiving/Compression
|
||||
URL: http://www.bzip.org/index.html
|
||||
|
@ -22,8 +23,11 @@ Requires: %{libname} = %{version}-%{release}
|
|||
BuildRequires: tetex-dvips
|
||||
BuildRequires: tetex-latex
|
||||
%endif
|
||||
#BuildRequires: texinfo
|
||||
BuildRequires: texinfo
|
||||
BuildRequires: libtool
|
||||
%if %{with uclibc}
|
||||
BuildRequires: uClibc-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
Bzip2 compresses files using the Burrows-Wheeler block-sorting text
|
||||
|
@ -35,7 +39,7 @@ compressors.
|
|||
The command-line options are deliberately very similar to those of GNU Gzip,
|
||||
but they are not identical.
|
||||
|
||||
%package -n %{libname}
|
||||
%package -n %{libname}
|
||||
Summary: Libraries for developing apps which will use bzip2
|
||||
Group: System/Libraries
|
||||
|
||||
|
@ -43,7 +47,17 @@ Group: System/Libraries
|
|||
Library of bzip2 functions, for developing apps which will use the
|
||||
bzip2 library (aka libz2).
|
||||
|
||||
%package -n %{develname}
|
||||
%if %{with uclibc}
|
||||
%package -n uclibc-%{libname}
|
||||
Summary: uClibc linked libraries for developing apps which will use bzip2
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n uclibc-%{libname}
|
||||
Library of bzip2 functions, for developing apps which will use the
|
||||
bzip2 library (aka libz2).
|
||||
%endif
|
||||
|
||||
%package -n %{develname}
|
||||
Summary: Header files for developing apps which will use bzip2
|
||||
Group: Development/C
|
||||
Requires: %{libname} = %{version}-%{release}
|
||||
|
@ -51,6 +65,9 @@ Provides: lib%{name}-devel = %{version}-%{release}
|
|||
Provides: %{name}-devel = %{version}-%{release}
|
||||
Obsoletes: %{mklibname bzip2_ 1 -d} < 1.0.5-3
|
||||
Provides: %{mklibname bzip2_ 1 -d}
|
||||
%if %{with uclibc}
|
||||
Requires: uclibc-%{libname} = %{EVRD}
|
||||
%endif
|
||||
|
||||
%description -n %{develname}
|
||||
Header files and static library of bzip2 functions, for developing apps which
|
||||
|
@ -70,6 +87,13 @@ cp %{SOURCE2} bzme
|
|||
cp %{SOURCE3} bzme.1
|
||||
|
||||
%build
|
||||
%if %{with uclibc}
|
||||
%make -f Makefile-libbz2_so CC="%{uclibc_cc}" CFLAGS="%{uclibc_cflags}" LDFLAGS="%{ldflags} -Wl,-O2"
|
||||
mkdir -p uclibc
|
||||
mv libbz2.so.%{major}* uclibc
|
||||
make clean
|
||||
%endif
|
||||
|
||||
%make -f Makefile-libbz2_so
|
||||
%make
|
||||
|
||||
|
@ -80,6 +104,13 @@ texi2dvi --pdf manual.texi
|
|||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%if %{with uclibc}
|
||||
mkdir -p %{buildroot}%{uclibc_root}%{_libdir}
|
||||
cp -a uclibc/libbz2.so.%{major}* %{buildroot}%{uclibc_root}%{_libdir}
|
||||
ln -rsf %{buildroot}%{uclibc_root}%{_libdir}/libbz2.so.%{major}.*.* %{buildroot}%{uclibc_root}%{_libdir}/libbz2.so
|
||||
%endif
|
||||
|
||||
|
||||
%makeinstall_std
|
||||
|
||||
install -m0755 bzme %{buildroot}%{_bindir}/
|
||||
|
@ -105,16 +136,29 @@ rm -f %{buildroot}%{_libdir}/*.*a
|
|||
%doc LICENSE
|
||||
%{_libdir}/libbz2.so.%{major}*
|
||||
|
||||
%if %{with uclibc}
|
||||
%files -n uclibc-%{libname}
|
||||
%doc LICENSE
|
||||
%{uclibc_root}%{_libdir}/libbz2.so.%{major}*
|
||||
%endif
|
||||
|
||||
%files -n %{develname}
|
||||
%doc *.html LICENSE
|
||||
%if %buildpdf
|
||||
%doc manual.pdf
|
||||
%endif
|
||||
%{_libdir}/libbz2.so
|
||||
%if %{with uclibc}
|
||||
%{uclibc_root}%{_libdir}/libbz2.so
|
||||
%endif
|
||||
%{_includedir}/*.h
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 22 2012 Per Øyvind Karlsen <peroyvind@mandriva.org> 1.0.6-5
|
||||
+ Revision: 817295
|
||||
- do uclibc build of library
|
||||
|
||||
* Sat Feb 11 2012 Oden Eriksson <oeriksson@mandriva.com> 1.0.6-4
|
||||
+ Revision: 773295
|
||||
- various cleanups
|
||||
|
@ -206,7 +250,7 @@ rm -f %{buildroot}%{_libdir}/*.*a
|
|||
* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.0.3-2mdk
|
||||
- Rebuild
|
||||
|
||||
* Wed Jun 08 2005 Götz Waschk <waschk@mandriva.org> 1.0.3-1mdk
|
||||
* Wed Jun 08 2005 Götz Waschk <waschk@mandriva.org> 1.0.3-1mdk
|
||||
- update patch 1
|
||||
- fix URLs
|
||||
- new version
|
||||
|
|
Loading…
Add table
Reference in a new issue