Merge pull request !6 from syyhao/dev321
This commit is contained in:
openeuler-ci-bot 2020-03-21 22:46:00 +08:00 committed by Gitee
commit fc052800cf

27
xz.spec
View File

@ -1,6 +1,6 @@
Name: xz
Version: 5.2.4
Release: 9
Release: 10
Summary: A free general-purpose data compreession software with LZMA2 algorithm
License: Public Domain, LGPLv2.1 and GPLv2+
URL: http://tukaani.org/xz
@ -23,15 +23,22 @@ The primary compression algorithm is currently LZMA2, which is used inside the .
%package devel
Summary: Libraries & headers for xz
Requires: %{name} = %{version}-%{release}
Provides: lzma = %{version}
Provides: xz-static xz-lzma-compat
Obsoletes: lzma < %{version}
Obsoletes: xz-static xz-lzma-compat
Provides: xz-static
Obsoletes: xz-static
%description devel
This package mainly includes the following contents: static library,
the header file, example, tests use case, other development and use of content.
%package lzma-compat
Summary: Old LZMA format compatibility binaries
Requires: %{name} = %{version}-%{release}
Provides: lzma = %{version}
Obsoletes: lzma < %{version}
%description lzma-compat
This package contains the compatibility binaries for older LZMA.
%package libs
Summary: Libraries for xz
Obsoletes: %{name}-compat-libs < %{version}-%{release}
@ -68,7 +75,6 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
%doc %{_pkgdocdir}
%license %{_pkgdocdir}/COPYING*
%{_bindir}/*xz*
%{_bindir}/*lz*
%exclude %_pkgdocdir/examples*
%exclude %{_libdir}/*.la
@ -76,6 +82,9 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
%files libs
%{_libdir}/lib*.so.5*
%files lzma-compat
%{_bindir}/*lz*
%files devel
%dir %{_includedir}/lzma
%doc %_pkgdocdir/examples*
@ -91,6 +100,12 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
%{_mandir}/man1/*xz*
%changelog
* Sat Mar 21 2020 shenyangyang<shenyangyang4@huawei.com> - 5.2.4-10
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Split xz-lzma-compat subpackage
* Mon Feb 24 2020 chengquan<chengquan3@huawei.com> - 5.2.4-9
- Type:enhancement
- ID:NA