- 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:
parent
9c36d60610
commit
28c3a1dafb
@ -1,7 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
8
xz.spec
8
xz.spec
@ -95,12 +95,12 @@ This package contains the header files and libraries needed for
|
||||
compiling programs using the LZMA library.
|
||||
|
||||
%if %{with static_libs}
|
||||
%package static
|
||||
%package static-devel
|
||||
Summary: Static version of LZMA library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: lzma-devel = %version
|
||||
|
||||
%description static
|
||||
%description static-devel
|
||||
Static library for the LZMA library
|
||||
%endif
|
||||
|
||||
@ -126,7 +126,7 @@ time make check
|
||||
make clean
|
||||
export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir"
|
||||
%configure \
|
||||
%if ! %{with static_libs}
|
||||
%if %{without static_libs}
|
||||
--disable-static \
|
||||
%endif
|
||||
--with-pic \
|
||||
@ -174,7 +174,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%if %{with static_libs}
|
||||
%files static
|
||||
%files static-devel
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/*.a
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user