mirror of
https://abf.rosa.ru/djam/bzip2.git
synced 2025-02-23 19:02: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
50
bzip2.spec
50
bzip2.spec
|
@ -2,12 +2,13 @@
|
||||||
%define libname %mklibname %{name}_ %{major}
|
%define libname %mklibname %{name}_ %{major}
|
||||||
%define develname %mklibname %{name} -d
|
%define develname %mklibname %{name} -d
|
||||||
|
|
||||||
|
%bcond_without uclibc
|
||||||
%define buildpdf 0
|
%define buildpdf 0
|
||||||
|
|
||||||
Summary: Extremely powerful file compression utility
|
Summary: Extremely powerful file compression utility
|
||||||
Name: bzip2
|
Name: bzip2
|
||||||
Version: 1.0.6
|
Version: 1.0.6
|
||||||
Release: 4
|
Release: 5
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Archiving/Compression
|
Group: Archiving/Compression
|
||||||
URL: http://www.bzip.org/index.html
|
URL: http://www.bzip.org/index.html
|
||||||
|
@ -22,8 +23,11 @@ Requires: %{libname} = %{version}-%{release}
|
||||||
BuildRequires: tetex-dvips
|
BuildRequires: tetex-dvips
|
||||||
BuildRequires: tetex-latex
|
BuildRequires: tetex-latex
|
||||||
%endif
|
%endif
|
||||||
#BuildRequires: texinfo
|
BuildRequires: texinfo
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
%if %{with uclibc}
|
||||||
|
BuildRequires: uClibc-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Bzip2 compresses files using the Burrows-Wheeler block-sorting text
|
Bzip2 compresses files using the Burrows-Wheeler block-sorting text
|
||||||
|
@ -43,6 +47,16 @@ Group: System/Libraries
|
||||||
Library of bzip2 functions, for developing apps which will use the
|
Library of bzip2 functions, for developing apps which will use the
|
||||||
bzip2 library (aka libz2).
|
bzip2 library (aka libz2).
|
||||||
|
|
||||||
|
%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}
|
%package -n %{develname}
|
||||||
Summary: Header files for developing apps which will use bzip2
|
Summary: Header files for developing apps which will use bzip2
|
||||||
Group: Development/C
|
Group: Development/C
|
||||||
|
@ -51,6 +65,9 @@ Provides: lib%{name}-devel = %{version}-%{release}
|
||||||
Provides: %{name}-devel = %{version}-%{release}
|
Provides: %{name}-devel = %{version}-%{release}
|
||||||
Obsoletes: %{mklibname bzip2_ 1 -d} < 1.0.5-3
|
Obsoletes: %{mklibname bzip2_ 1 -d} < 1.0.5-3
|
||||||
Provides: %{mklibname bzip2_ 1 -d}
|
Provides: %{mklibname bzip2_ 1 -d}
|
||||||
|
%if %{with uclibc}
|
||||||
|
Requires: uclibc-%{libname} = %{EVRD}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n %{develname}
|
%description -n %{develname}
|
||||||
Header files and static library of bzip2 functions, for developing apps which
|
Header files and static library of bzip2 functions, for developing apps which
|
||||||
|
@ -70,6 +87,13 @@ cp %{SOURCE2} bzme
|
||||||
cp %{SOURCE3} bzme.1
|
cp %{SOURCE3} bzme.1
|
||||||
|
|
||||||
%build
|
%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 -f Makefile-libbz2_so
|
||||||
%make
|
%make
|
||||||
|
|
||||||
|
@ -80,6 +104,13 @@ texi2dvi --pdf manual.texi
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
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
|
%makeinstall_std
|
||||||
|
|
||||||
install -m0755 bzme %{buildroot}%{_bindir}/
|
install -m0755 bzme %{buildroot}%{_bindir}/
|
||||||
|
@ -105,16 +136,29 @@ rm -f %{buildroot}%{_libdir}/*.*a
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_libdir}/libbz2.so.%{major}*
|
%{_libdir}/libbz2.so.%{major}*
|
||||||
|
|
||||||
|
%if %{with uclibc}
|
||||||
|
%files -n uclibc-%{libname}
|
||||||
|
%doc LICENSE
|
||||||
|
%{uclibc_root}%{_libdir}/libbz2.so.%{major}*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{develname}
|
%files -n %{develname}
|
||||||
%doc *.html LICENSE
|
%doc *.html LICENSE
|
||||||
%if %buildpdf
|
%if %buildpdf
|
||||||
%doc manual.pdf
|
%doc manual.pdf
|
||||||
%endif
|
%endif
|
||||||
%{_libdir}/libbz2.so
|
%{_libdir}/libbz2.so
|
||||||
|
%if %{with uclibc}
|
||||||
|
%{uclibc_root}%{_libdir}/libbz2.so
|
||||||
|
%endif
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Feb 11 2012 Oden Eriksson <oeriksson@mandriva.com> 1.0.6-4
|
||||||
+ Revision: 773295
|
+ Revision: 773295
|
||||||
- various cleanups
|
- 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
|
* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.0.3-2mdk
|
||||||
- Rebuild
|
- 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
|
- update patch 1
|
||||||
- fix URLs
|
- fix URLs
|
||||||
- new version
|
- new version
|
||||||
|
|
Loading…
Add table
Reference in a new issue