3 %bcond_with gtk3 # build GTK+3 disables GTK+2
4 %bcond_without gtk2 # build with GTK+2
10 Summary: a GTK+2 interface to XRandR for LXDE desktop
15 Group: X11/Applications
16 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
17 # Source0-md5: 8a7391581541bba58839ac11dbf5b575
18 Patch0: mate-desktop.patch
19 URL: http://wiki.lxde.org/en/LXRandR
20 BuildRequires: gettext-tools
21 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
22 %{?with_gtk3:BuildRequires: gtk+3-devel}
23 BuildRequires: pkgconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A GTK+ interface to XRandR for LXDE desktop.
35 %{?with_gtk3:--enable-gtk3}
40 rm -rf $RPM_BUILD_ROOT
42 DESTDIR=$RPM_BUILD_ROOT
44 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ur_PK,tt_RU}
49 rm -rf $RPM_BUILD_ROOT
51 %files -f %{name}.lang
52 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_bindir}/lxrandr
55 %{_desktopdir}/lxrandr.desktop
56 %{_mandir}/man1/lxrandr*