[packages/lxrandr] hide from MATE preferences, mate has own display settings

glen glen at pld-linux.org
Sat Mar 30 13:54:31 CET 2013


commit fc460598dd1ced5c1504bfa16e6eedde24252c6b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Mar 30 14:54:14 2013 +0200

    hide from MATE preferences, mate has own display settings

 lxrandr.spec       | 6 ++++--
 mate-desktop.patch | 7 +++++++
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/lxrandr.spec b/lxrandr.spec
index 891825e..1ec74a8 100644
--- a/lxrandr.spec
+++ b/lxrandr.spec
@@ -10,11 +10,12 @@
 Summary:	a GTK+2 interface to XRandR for LXDE desktop
 Name:		lxrandr
 Version:	0.1.2
-Release:	2
+Release:	3
 License:	GPL v3
 Group:		X11/Applications
 Source0:	http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
 # Source0-md5:	8a7391581541bba58839ac11dbf5b575
+Patch0:		mate-desktop.patch
 URL:		http://wiki.lxde.org/en/LXRandR
 BuildRequires:	gettext-devel
 %{?with_gtk2:BuildRequires:	gtk+2-devel >= 2:2.12.0}
@@ -27,6 +28,7 @@ A GTK+ interface to XRandR for LXDE desktop.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
@@ -39,7 +41,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK,tt_RU}
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ur_PK,tt_RU}
 
 %find_lang %{name}
 
diff --git a/mate-desktop.patch b/mate-desktop.patch
new file mode 100644
index 0000000..ed1baf7
--- /dev/null
+++ b/mate-desktop.patch
@@ -0,0 +1,7 @@
+--- lxrandr-0.1.2/./data/lxrandr.desktop.in~	2011-07-23 18:33:48.000000000 +0300
++++ lxrandr-0.1.2/./data/lxrandr.desktop.in	2013-03-30 14:53:34.818033282 +0200
+@@ -6,3 +6,4 @@
+ Terminal=false
+ Type=Application
+ Categories=GTK;Settings;HardwareSettings;
++NotShowIn=GNOME;MATE;XFCE;KDE;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxrandr.git/commitdiff/fc460598dd1ced5c1504bfa16e6eedde24252c6b



More information about the pld-cvs-commit mailing list