- 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
|
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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
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.
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user