Projects
openEuler:Mainline
bzip2
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:bzip2.spec
Changed
@@ -1,6 +1,6 @@ Name: bzip2 Version: 1.0.8 -Release: 4 +Release: 6 Summary: A high-quality data compressor License: BSD @@ -37,12 +37,21 @@ %autosetup -n %{name}-%{version} -p1 %build +%if "%toolchain" == "clang" +%make_build -f Makefile-libbz2_so "CFLAGS=%{optflags} -Winline -fpic -fPIC -D_FILE_OFFSET_BITS=64" CC=clang AR=llvm-ar RANLIB=llvm-ranlib +%make_build "CFLAGS=%{optflags} -fpic -fPIC -Winline -D_FILE_OFFSET_BITS=64" CC=clang AR=llvm-ar RANLIB=llvm-ranlib +%else %make_build -f Makefile-libbz2_so "CFLAGS=%{optflags} -Winline -fpic -fPIC -D_FILE_OFFSET_BITS=64" %make_build "CFLAGS=%{optflags} -fpic -fPIC -Winline -D_FILE_OFFSET_BITS=64" +%endif %install rm -rf %RPM_BUILD_ROOT +%if "%toolchain" == "clang" +%make_install PREFIX=%{buildroot}%{_prefix} CC=clang AR=llvm-ar RANLIB=llvm-ranlib +%else %make_install PREFIX=%{buildroot}%{_prefix} +%endif # Default install path is /usr/bin lib man, change dest dirs here. pushd %{buildroot}%{_prefix} @@ -55,7 +64,7 @@ ln -fs bzgrep %{buildroot}%{_bindir}/bzegrep ln -fs bzgrep %{buildroot}%{_bindir}/bzfgrep ln -fs bzmore %{buildroot}%{_bindir}/bzless -install -m 0755 *.so* %{buildroot}%{_libdir} +install -m 0755 libbz2.so.%{version} %{buildroot}%{_libdir} ln -s libbz2.so.%{version} %{buildroot}%{_libdir}/libbz2.so.1 ln -s libbz2.so.1 %{buildroot}%{_libdir}/libbz2.so cp %{SOURCE1} . @@ -90,6 +99,12 @@ %{_mandir}/man1/b*.1.gz %changelog +* Thu Apr 13 2023 Chenxi Mao <chenxi.mao@suse.com> - 1.0.8-6 +- Support build with clang. + +* Tue Sep 20 2022 zhoupengcheng <zhoupengcheng11@huawei.com> - 1.0.8-5 +- Delete redundant .so files + * Thu Jul 22 2021 wuchaochao <wuchaochao4@huawei.com> - 1.0.8-4 - Remove BuildRequires gdb
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/bzip2.git</param> - <param name="revision">3959fd5836def8cd7498571ea13d44f9de3f131f</param> + <param name="revision">master</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
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