diff --git a/xz.changes b/xz.changes index e5d8c2c..1728c06 100644 --- a/xz.changes +++ b/xz.changes @@ -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 ------------------------------------------------------------------- diff --git a/xz.spec b/xz.spec index 9f5c3fc..9103b70 100644 --- a/xz.spec +++ b/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