From 1eee46f00d353b12c16eb2a40ada65865e63d390 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Thu, 17 Jul 2014 14:07:33 -0400 Subject: [PATCH] fix license handling --- libarchive.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/libarchive.spec b/libarchive.spec index 379da38..ea85268 100644 --- a/libarchive.spec +++ b/libarchive.spec @@ -1,6 +1,6 @@ Name: libarchive Version: 3.1.2 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A library for handling streaming archive formats Group: System Environment/Libraries @@ -140,7 +140,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc COPYING README NEWS +%{!?_licensedir:%global license %%doc} +%license COPYING +%doc README NEWS %{_libdir}/libarchive.so.13* %{_mandir}/*/cpio.* %{_mandir}/*/mtree.* @@ -157,18 +159,25 @@ rm -rf $RPM_BUILD_ROOT %files -n bsdtar %defattr(-,root,root,-) -%doc COPYING README NEWS +%{!?_licensedir:%global license %%doc} +%license COPYING +%doc README NEWS %{_bindir}/bsdtar %{_mandir}/*/bsdtar* %files -n bsdcpio %defattr(-,root,root,-) -%doc COPYING README NEWS +%{!?_licensedir:%global license %%doc} +%license COPYING +%doc README NEWS %{_bindir}/bsdcpio %{_mandir}/*/bsdcpio* %changelog +* Thu Jul 17 2014 Tom Callaway - 3.1.2-9 +- fix license handling + * Sat Jun 07 2014 Fedora Release Engineering - 3.1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild