From 766e677550101f6118334bf8de80c2ecae43c846 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Jul 31 2014 12:50:37 +0000 Subject: fix license handling --- diff --git a/policycoreutils.spec b/policycoreutils.spec index c61e81f..17592bd 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -7,7 +7,7 @@ Summary: SELinux policy core utilities Name: policycoreutils Version: 2.3 -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv2 Group: System Environment/Base # Based on git repository with tag 20101221 @@ -66,7 +66,6 @@ mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_mandir}/man5 mkdir -p %{buildroot}%{_mandir}/man8 %{__mkdir} -p %{buildroot}/%{_usr}/share/doc/%{name}/ -cp COPYING %{buildroot}/%{_usr}/share/doc/%{name}/ make LSPP_PRIV=y DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" SEMODULE_PATH="/usr/sbin" install make PYTHON=python3 LSPP_PRIV=y DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" SEMODULE_PATH="/usr/sbin" install @@ -351,6 +350,8 @@ fi %{_mandir}/man1/secon.1* %{_mandir}/ru/man1/secon.1* %{_mandir}/man8/genhomedircon.8* +%{!?_licensedir:%global license %%doc} +%license COPYING %doc %{_usr}/share/doc/%{name} %package restorecond @@ -370,6 +371,8 @@ The policycoreutils-restorecond package contains the restorecond service. %{_datadir}/dbus-1/services/org.selinux.Restorecond.service %{_mandir}/man8/restorecond.8* %{_mandir}/ru/man8/restorecond.8* +%{!?_licensedir:%global license %%doc} +%license COPYING %post restorecond %systemd_post restorecond.service @@ -381,6 +384,9 @@ The policycoreutils-restorecond package contains the restorecond service. %systemd_postun_with_restart restorecond.service %changelog +* Thu Jul 21 2014 Tom Callaway - 2.3-8 +- fix license handling + * Wed Jul 23 2014 Miroslav Grepl - 2.3-7 - Examples are no longer in the main semanage man page (#1084390) - Add support for Fedora22 man pages. We need to fix it to not using hardcoding.