Blame SOURCES/policycoreutils-preserve-timestamps-for-.py-files.patch

20e462
From 86f7072e9e76e4c0391eff3323cb9d8843e1b78d Mon Sep 17 00:00:00 2001
20e462
From: Petr Lautrbach <plautrba@redhat.com>
20e462
Date: Wed, 3 Aug 2016 09:12:24 +0200
20e462
Subject: [PATCH] policycoreutils: preserve timestamps for .py files
20e462
20e462
Mainly in in gui/ and sepolicy/ to avoid python multilib issues reported
20e462
by rpmdiff.
20e462
---
20e462
 policycoreutils/gui/Makefile      | 22 +++++++++++-----------
20e462
 policycoreutils/sepolicy/Makefile |  2 +-
20e462
 2 files changed, 12 insertions(+), 12 deletions(-)
20e462
20e462
diff --git a/policycoreutils/gui/Makefile b/policycoreutils/gui/Makefile
20e462
index 0c2b390..4feacc5 100644
20e462
--- a/policycoreutils/gui/Makefile
20e462
+++ b/policycoreutils/gui/Makefile
20e462
@@ -31,17 +31,17 @@ install: all
20e462
 	-mkdir -p $(DATADIR)/icons/hicolor/24x24/apps
20e462
 	-mkdir -p $(SYSCONFDIR)
20e462
 	-mkdir -p $(DATADIR)/polkit-1/actions/
20e462
-	install -m 755 system-config-selinux.py $(SHAREDIR)
20e462
-	install -m 755 system-config-selinux $(BINDIR)
20e462
-	install -m 755 polgengui.py $(SHAREDIR)
20e462
-	install -m 644 $(TARGETS) $(SHAREDIR)
20e462
-	install -m 644 system-config-selinux.8 $(MANDIR)/man8
20e462
-	install -m 644 selinux-polgengui.8 $(MANDIR)/man8
20e462
-	install -m 644 system-config-selinux.png $(DATADIR)/pixmaps
20e462
-	install -m 644 system-config-selinux.png $(DATADIR)/icons/hicolor/24x24/apps
20e462
-	install -m 644 system-config-selinux.png $(DATADIR)/system-config-selinux
20e462
-	install -m 644 *.desktop $(DATADIR)/system-config-selinux
20e462
-	install -m 644 org.selinux.config.policy $(DATADIR)/polkit-1/actions/
20e462
+	install -p -m 755 system-config-selinux.py $(SHAREDIR)
20e462
+	install -p -m 755 system-config-selinux $(BINDIR)
20e462
+	install -p -m 755 polgengui.py $(SHAREDIR)
20e462
+	install -p -m 644 $(TARGETS) $(SHAREDIR)
20e462
+	install -p -m 644 system-config-selinux.8 $(MANDIR)/man8
20e462
+	install -p -m 644 selinux-polgengui.8 $(MANDIR)/man8
20e462
+	install -p -m 644 system-config-selinux.png $(DATADIR)/pixmaps
20e462
+	install -p -m 644 system-config-selinux.png $(DATADIR)/icons/hicolor/24x24/apps
20e462
+	install -p -m 644 system-config-selinux.png $(DATADIR)/system-config-selinux
20e462
+	install -p -m 644 *.desktop $(DATADIR)/system-config-selinux
20e462
+	install -p -m 644 org.selinux.config.policy $(DATADIR)/polkit-1/actions/
20e462
 clean:
20e462
 
20e462
 indent:
20e462
diff --git a/policycoreutils/sepolicy/Makefile b/policycoreutils/sepolicy/Makefile
20e462
index 39d46e8..5491d79 100644
20e462
--- a/policycoreutils/sepolicy/Makefile
20e462
+++ b/policycoreutils/sepolicy/Makefile
20e462
@@ -47,7 +47,7 @@ install:
20e462
 	-mkdir -p $(DESTDIR)/usr/share/polkit-1/actions/
20e462
 	install -m 644 org.selinux.policy $(DESTDIR)/usr/share/polkit-1/actions/
20e462
 	-mkdir -p $(DESTDIR)/usr/share/system-config-selinux
20e462
-	install -m 755 selinux_server.py $(DESTDIR)/usr/share/system-config-selinux
20e462
+	install -p -m 755 selinux_server.py $(DESTDIR)/usr/share/system-config-selinux
20e462
 	install -m 644 *.desktop $(DATADIR)/system-config-selinux
20e462
 	-mkdir -p $(DESTDIR) $(DATADIR)/pixmaps
20e462
 	install -m 644 sepolicy_256.png $(DATADIR)/pixmaps/sepolicy.png
20e462
-- 
20e462
1.8.3.1
20e462