Add a -static subpackage (see RHBZ#547011).
This commit is contained in:
parent
c7e91236f6
commit
083f3ed28e
24
xz.spec
24
xz.spec
@ -3,7 +3,7 @@
|
|||||||
Summary: LZMA compression utilities
|
Summary: LZMA compression utilities
|
||||||
Name: xz
|
Name: xz
|
||||||
Version: 5.1.2
|
Version: 5.1.2
|
||||||
Release: 8alpha%{?dist}
|
Release: 9alpha%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Applications/File
|
Group: Applications/File
|
||||||
# official upstream release
|
# official upstream release
|
||||||
@ -47,6 +47,15 @@ License: LGPLv2+
|
|||||||
%description libs
|
%description libs
|
||||||
Libraries for decoding files compressed with LZMA or XZ utils.
|
Libraries for decoding files compressed with LZMA or XZ utils.
|
||||||
|
|
||||||
|
%package static
|
||||||
|
Summary: Statically linked library for decoding LZMA compression
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
License: LGPLv2+
|
||||||
|
|
||||||
|
%description static
|
||||||
|
Statically linked library for decoding files compressed with LZMA or
|
||||||
|
XZ utils. Most users should *not* install this.
|
||||||
|
|
||||||
%package compat-libs
|
%package compat-libs
|
||||||
Summary: Compatibility libraries for decoding LZMA compression
|
Summary: Compatibility libraries for decoding LZMA compression
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -96,13 +105,13 @@ CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
|
|||||||
%endif
|
%endif
|
||||||
export CFLAGS
|
export CFLAGS
|
||||||
|
|
||||||
%configure --disable-static
|
%configure
|
||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
pushd %{compat_ver}
|
pushd %{compat_ver}
|
||||||
%configure --disable-static
|
%configure
|
||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -111,7 +120,6 @@ popd
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
||||||
rm -f %{buildroot}%{_libdir}/*.a
|
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
rm -f %{buildroot}%{_libdir}/*.la
|
||||||
rm -rf %{buildroot}%{_docdir}/%{name}
|
rm -rf %{buildroot}%{_docdir}/%{name}
|
||||||
rm -rf %{buildroot}%{_datadir}/locale
|
rm -rf %{buildroot}%{_datadir}/locale
|
||||||
@ -142,6 +150,11 @@ rm -rf %{buildroot}
|
|||||||
%doc COPYING*
|
%doc COPYING*
|
||||||
%{_libdir}/lib*.so.5*
|
%{_libdir}/lib*.so.5*
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING*
|
||||||
|
%{_libdir}/liblzma.a
|
||||||
|
|
||||||
%files compat-libs
|
%files compat-libs
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING*
|
%doc COPYING*
|
||||||
@ -161,6 +174,9 @@ rm -rf %{buildroot}
|
|||||||
%{_mandir}/man1/*lz*
|
%{_mandir}/man1/*lz*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 16 2014 Richard W.M. Jones <rjones@redhat.com> - 5.1.2-9alpha
|
||||||
|
- Add a -static subpackage (see RHBZ#547011).
|
||||||
|
|
||||||
* Wed Apr 02 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-8alpha
|
* Wed Apr 02 2014 Pavel Raiskup <praiskup@redhat.com> - 5.1.2-8alpha
|
||||||
- add _isa requirements where appropriate
|
- add _isa requirements where appropriate
|
||||||
- better check the version of less binary (#1015924)
|
- better check the version of less binary (#1015924)
|
||||||
|
Loading…
Reference in New Issue
Block a user