diff --git a/sudo.spec b/sudo.spec index 13f0c4a..b777e28 100644 --- a/sudo.spec +++ b/sudo.spec @@ -1,7 +1,7 @@ Summary: Allows restricted root access for specified users Name: sudo Version: 1.8.8 -Release: 5%{?dist} +Release: 6%{?dist} License: ISC Group: Applications/System URL: http://www.courtesan.com/sudo/ @@ -112,6 +112,9 @@ chmod +x $RPM_BUILD_ROOT%{_libexecdir}/sudo/*.so # for stripping, reset in %%fil # Remove execute permission on this script so we don't pull in perl deps chmod -x $RPM_BUILD_ROOT%{_pkgdocdir}/sudoers2ldif +# Don't package LICENSE as a doc +rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}/LICENSE + %find_lang sudo %find_lang sudoers @@ -167,6 +170,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/visudo.8* %dir %{_pkgdocdir}/ %{_pkgdocdir}/* +%{!?_licensedir:%global license %%doc} +%license doc/LICENSE %exclude %{_pkgdocdir}/ChangeLog @@ -181,6 +186,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/sudo_plugin.8* %changelog +* Tue Aug 5 2014 Tom Callaway - 1.8.8-6 +- fix license handling + * Sun Jun 08 2014 Fedora Release Engineering - 1.8.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild