2 %bcond_with gtk3 # build GTK+3 disables GTK+2
3 %bcond_without gtk2 # build with GTK+2
9 Summary: GTK+2 interface to XRandR for LXDE desktop
14 Group: X11/Applications
15 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
16 # Source0-md5: 250f0ebb09c1e02f430f951911ba1259
17 Patch0: mate-desktop.patch
18 URL: http://wiki.lxde.org/en/LXRandR
19 BuildRequires: gettext-tools
20 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
21 %{?with_gtk3:BuildRequires: gtk+3-devel}
22 BuildRequires: pkgconfig
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 A GTK+ interface to XRandR for LXDE desktop.
34 %{?with_gtk3:--enable-gtk3}
39 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
43 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ur_PK,tt_RU}
48 rm -rf $RPM_BUILD_ROOT
50 %files -f %{name}.lang
51 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_bindir}/lxrandr
54 %{_desktopdir}/lxrandr.desktop
55 %{_mandir}/man1/lxrandr*