Projects
home:pandora:RobinOS23
bzip2
_service:download_src_package:bzip2.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:bzip2.spec of Package bzip2
%global library_version 1.0.6 %define anolis_release 2 Summary: File compression utility Name: bzip2 Version: 1.0.6 Release: %{anolis_release}%{?dist} License: BSD URL: http://www.bzip.org/ Source0: https://sourceforge.net/projects/bzip2/files/%{name}-%{version}.tar.gz Source1: bzip2.pc Patch0001: 0001-bzip2-1.0.6-saneso-cflages.patch BuildRequires: gcc BuildRequires: make %description Bzip2 is a freely available, patent-free, high quality data compressor. Bzip2 compresses files to within 10 to 15 percent of the capabilities of the best techniques available. However, bzip2 has the added benefit of being approximately two times faster at compression and six times faster at decompression than those techniques. Bzip2 is not the fastest compression utility, but it does strike a balance between speed and compression capability. Install bzip2 if you need a compression utility. %package devel Summary: Libraries and header files for apps which will use bzip2 Requires: bzip2-libs%{?_isa} = %{version}-%{release} %description devel Header files and a library of bzip2 functions, for developing apps which will use the library. %package libs Summary: Libraries for applications using bzip2 %description libs Libraries for applications using the bzip2 compression format. %package static Summary: Libraries for applications using bzip2 %description static Static libraries for applications using the bzip2 compression format. %prep %setup -q %patch0001 -p1 cp -a %{SOURCE1} . sed -i "s|^libdir=|libdir=%{_libdir}|" bzip2.pc %build %make_build -f Makefile-libbz2_so CC="%{__cc}" AR="%{__ar}" RANLIB="ranlib" \ CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fpic -fPIC" \ LDFLAGS="%{__global_ldflags}" \ all rm -f *.o %make_build CC="%{__cc}" AR="%{__ar}" RANLIB="ranlib" \ CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" \ LDFLAGS="%{__global_ldflags}" \ all %install chmod 644 bzlib.h mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/pkgconfig,%{_includedir}} cp -p bzlib.h $RPM_BUILD_ROOT%{_includedir} install -m 755 libbz2.so.%{library_version} $RPM_BUILD_ROOT%{_libdir} install -m 644 libbz2.a $RPM_BUILD_ROOT%{_libdir} install -m 644 bzip2.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/bzip2.pc install -m 755 bzip2-shared $RPM_BUILD_ROOT%{_bindir}/bzip2 install -m 755 bzip2recover bzgrep bzdiff bzmore $RPM_BUILD_ROOT%{_bindir}/ cp -p bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/ ln -s bzip2 $RPM_BUILD_ROOT%{_bindir}/bunzip2 ln -s bzip2 $RPM_BUILD_ROOT%{_bindir}/bzcat ln -s bzdiff $RPM_BUILD_ROOT%{_bindir}/bzcmp ln -s bzmore $RPM_BUILD_ROOT%{_bindir}/bzless ln -s bzgrep $RPM_BUILD_ROOT%{_bindir}/bzegrep ln -s bzgrep $RPM_BUILD_ROOT%{_bindir}/bzfgrep ln -s libbz2.so.%{library_version} $RPM_BUILD_ROOT%{_libdir}/libbz2.so.1 ln -s libbz2.so.1 $RPM_BUILD_ROOT%{_libdir}/libbz2.so ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1 ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bunzip2.1 ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcat.1 ln -s bzdiff.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzcmp.1 ln -s bzmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzless.1 ln -s bzgrep.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzegrep.1 ln -s bzgrep.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzfgrep.1 %ldconfig_scriptlets libs %files %doc CHANGES README %license LICENSE %{_bindir}/* %{_mandir}/*/* %files libs %license LICENSE %{_libdir}/libbz2.so.1* %files static %license LICENSE %{_libdir}/libbz2.a %files devel %doc manual.html manual.pdf %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/bzip2.pc %changelog * Thu Mar 17 2022 liuzhilin <liuzhilin@uniontech.com> - 1.0.6-2 - Add patch:0001-bzip2-1.0.6-saneso-cflages.patch * Thu Mar 10 2022 liuzhilin <liuzhilin@uniontech.com> - 1.0.6-1 - Init for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2