From 1d2d2bc1cea97fd0a5e96f97ba1511cd84c01448 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Thu, 19 Apr 2018 08:24:41 +0200 Subject: [PATCH] Drop python2 sepolicy gui files from policycoreutils-gui Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1566618 --- policycoreutils.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/policycoreutils.spec b/policycoreutils.spec index 0c3be16..5bad8cb 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -9,7 +9,7 @@ Summary: SELinux policy core utilities Name: policycoreutils Version: 2.7 -Release: 19%{?dist} +Release: 20%{?dist} License: GPLv2 # https://github.com/SELinuxProject/selinux/wiki/Releases Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/policycoreutils-2.7.tar.gz @@ -156,6 +156,12 @@ rm -f %{buildroot}%{_datadir}/system-config-selinux/selinux-polgengui.desktop rm -f %{buildroot}%{_datadir}/system-config-selinux/sepolicy.desktop rm -f %{buildroot}%{_datadir}/system-config-selinux/system-config-selinux.desktop +# https://bugzilla.redhat.com/show_bug.cgi?id=1566618 +# we don't need python2 sepolicy gui files anymore +rm -f %{buildroot}%{python2_sitelib}/sepolicy/gui.* +rm -f %{buildroot}%{python2_sitelib}/sepolicy/sepolicy.glade +rm -rf %{buildroot}%{python2_sitelib}/sepolicy/help + # https://bugzilla.redhat.com/show_bug.cgi?id=1328825 mkdir -m 755 -p %{buildroot}/%{_unitdir}/basic.target.wants/ mkdir -m 755 -p %{buildroot}/%{generatorsdir} @@ -402,10 +408,6 @@ system-config-selinux is a utility for managing the SELinux environment %{_datadir}/system-config-selinux/polgengui.py* %{_datadir}/system-config-selinux/system-config-selinux.py* %{_datadir}/system-config-selinux/*.ui -%{python2_sitelib}/sepolicy/gui.py* -%{python2_sitelib}/sepolicy/sepolicy.glade -%dir %{python2_sitelib}/sepolicy/help -%{python2_sitelib}/sepolicy/help/* %{python3_sitelib}/sepolicy/gui.py* %{python3_sitelib}/sepolicy/sepolicy.glade %{_datadir}/icons/hicolor/*/apps/sepolicy.png @@ -498,6 +500,9 @@ The policycoreutils-restorecond package contains the restorecond service. %systemd_postun_with_restart restorecond.service %changelog +* Thu Apr 19 2018 Petr Lautrbach - 2.7-20 +- Drop python2 sepolicy gui files from policycoreutils-gui (#1566618) + * Wed Apr 18 2018 Iryna Shcherbina - 2.7-19 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)