[packages/mate-mintmenu] - cleanup
qboosh
qboosh at pld-linux.org
Fri Sep 27 20:31:13 CEST 2019
commit 600e600d21eb893a524548688b52fe9039977124
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Sep 27 20:34:21 2019 +0200
- cleanup
mate-mintmenu.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/mate-mintmenu.spec b/mate-mintmenu.spec
index 1340041..90d443d 100644
--- a/mate-mintmenu.spec
+++ b/mate-mintmenu.spec
@@ -43,13 +43,19 @@ Zaawansowane menu dla MATE.
%setup -qc
%patch0 -p1
%patch1 -p1
-mv mintmenu/* .
+# in case of patching fuzz
+rm -f mintmenu/usr/share/glib-2.0/schemas/com.linuxmint.mintmenu.gschema.xml.orig
+
+%{__mv} mintmenu/* .
%{__sed} -i 's,__DEB_VERSION__,%{version},' usr/lib/linuxmint/mintMenu/mintMenu.py
grep -rl 'usr/lib/linuxmint/mintMenu' usr | xargs %{__sed} -i 's,usr/lib/linuxmint/mintMenu,%{_datadir}/%{name},g'
grep -rl 'usr/share/linuxmint/mintmenu' usr | xargs %{__sed} -i 's,usr/share/linuxmint/mintmenu,%{_datadir}/%{name},g'
%{__sed} -i 's,^#!.*python.*,#!%{__python},' usr/lib/linuxmint/mintMenu/{,plugins/}*.py
+# cleanup
+%{__rm} -r usr/lib/linuxmint/mintMenu/__pycache__
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}}
@@ -86,6 +92,6 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/%{name}/*.ui
%{_datadir}/dbus-1/services/org.mate.panel.applet.MintMenuAppletFactory.service
%{_datadir}/glib-2.0/schemas/com.linuxmint.mintmenu.gschema.xml
-%{_mandir}/man1/mintmenu.1*
%{_datadir}/mate-panel/applets/org.mate.panel.MintMenuApplet.mate-panel-applet
+%{_mandir}/man1/mintmenu.1*
%{_pixmapsdir}/mintmenu.svg
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mate-mintmenu.git/commitdiff/600e600d21eb893a524548688b52fe9039977124
More information about the pld-cvs-commit
mailing list