SHA256
1
0
forked from pool/xz

- add optional -static-devel library package, intended to publish pixz for

OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=62
This commit is contained in:
Marcus Meissner 2013-12-10 17:06:54 +00:00 committed by Git OBS Bridge
parent 9c36d60610
commit 28c3a1dafb
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 24 16:25:53 UTC 2013 - andreas.stieger@gmx.de Sun Nov 24 16:25:53 UTC 2013 - andreas.stieger@gmx.de
- add optional -static library package, intended to publish pixz for - add optional -static-devel library package, intended to publish pixz for
CentOS / RHEL, default off CentOS / RHEL, default off
------------------------------------------------------------------- -------------------------------------------------------------------

View File

@ -95,12 +95,12 @@ This package contains the header files and libraries needed for
compiling programs using the LZMA library. compiling programs using the LZMA library.
%if %{with static_libs} %if %{with static_libs}
%package static %package static-devel
Summary: Static version of LZMA library Summary: Static version of LZMA library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: lzma-devel = %version Requires: lzma-devel = %version
%description static %description static-devel
Static library for the LZMA library Static library for the LZMA library
%endif %endif
@ -126,7 +126,7 @@ time make check
make clean make clean
export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir" export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir"
%configure \ %configure \
%if ! %{with static_libs} %if %{without static_libs}
--disable-static \ --disable-static \
%endif %endif
--with-pic \ --with-pic \
@ -174,7 +174,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%if %{with static_libs} %if %{with static_libs}
%files static %files static-devel
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/*.a %{_libdir}/*.a
%endif %endif