Use relative path for COPYING files so that rpm moves them to correct place

Related: rhbz#1741074
This commit is contained in:
Petr Kubat 2019-08-21 11:45:10 +02:00
parent f8dce18f57
commit e9c4d62f1d

12
xz.spec
View File

@ -4,7 +4,7 @@
Summary: LZMA compression utilities
Name: xz
Version: 5.2.4
Release: 6%{?dist}
Release: 7%{?dist}
# Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are
# GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its
@ -122,7 +122,7 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
%files -f %{name}.lang
%license %{_pkgdocdir}/COPYING*
%license COPYING*
%doc %{_pkgdocdir}
%exclude %_pkgdocdir/examples*
%{_bindir}/*xz*
@ -131,12 +131,12 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
%files libs
%license %{_pkgdocdir}/COPYING
%license COPYING
%{_libdir}/lib*.so.5*
%files static
%license %{_pkgdocdir}/COPYING
%license COPYING
%{_libdir}/liblzma.a
@ -155,6 +155,10 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
%changelog
* Wed Aug 21 2019 Petr Kubat <pkubat@redhat.com> - 5.2.4-7
- Use relative path for COPYING files so that rpm moves them to correct place
Related: rhbz#1741074
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild