Accepting request 104194 from Archiving
- Put libraries back into %{_libdir}, /usr merge project. (forwarded request 104180 from elvigia) OBS-URL: https://build.opensuse.org/request/show/104194 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bzip2?expand=0&rev=42
This commit is contained in:
commit
a66533048e
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 12 23:00:21 UTC 2012 - crrodriguez@opensuse.org
|
||||
|
||||
- Put libraries back into %{_libdir}, /usr merge project.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 26 09:38:00 UTC 2012 - sitter@kde.org
|
||||
|
||||
|
17
bzip2.spec
17
bzip2.spec
@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: bzip2
|
||||
Version: 1.0.6
|
||||
Release: 0
|
||||
@ -95,9 +96,7 @@ autoreconf -fiv
|
||||
%if %{do_profiling}
|
||||
export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_generate}"
|
||||
%endif
|
||||
%configure\
|
||||
--libdir=/%{_lib}\
|
||||
--disable-static
|
||||
%configure --with-pic --disable-static
|
||||
%if %{do_profiling}
|
||||
make %{?_smp_mflags}
|
||||
profile_bzip2
|
||||
@ -106,21 +105,17 @@ mv .libs/*.gcda .libs.save/
|
||||
make clean
|
||||
mv .libs.save .libs
|
||||
export CFLAGS="$RPM_OPT_FLAGS %{cflags_profile_feedback}"
|
||||
%configure \
|
||||
--libdir=/%{_lib}\
|
||||
--disable-static
|
||||
%configure --with-pic --disable-static
|
||||
%endif
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall pkgconfigdir=%{_libdir}/pkgconfig
|
||||
rm $RPM_BUILD_ROOT/%{_lib}/libbz2.so $RPM_BUILD_ROOT/%{_lib}/libbz2.la
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||
ln -sf ../../%{_lib}/libbz2.so.1 $RPM_BUILD_ROOT%{_libdir}/libbz2.so
|
||||
gzip -9 manual.ps
|
||||
gzip -dc %{SOURCE1} > bznew
|
||||
install -D -m 755 bznew $RPM_BUILD_ROOT%{_bindir}/bznew
|
||||
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
rm -vf %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%post -n libbz2-1 -p /sbin/ldconfig
|
||||
|
||||
@ -137,8 +132,8 @@ install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
|
||||
%files -n libbz2-1
|
||||
%defattr(-,root,root)
|
||||
/%{_lib}/libbz2.so.1
|
||||
/%{_lib}/libbz2.so.1.*
|
||||
%{_libdir}/libbz2.so.1
|
||||
%{_libdir}/libbz2.so.1.*
|
||||
|
||||
%files -n libbz2-devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user