+#
+# Conditional build:
+%bcond_with gtk3 # build GTK+3 disables GTK+2
+%bcond_without gtk2 # build with GTK+2
+
+%if %{with gtk3}
+%undefine with_gtk2
+%endif
+
Summary: Desktop-independent theme switcher for GTK+
Name: lxappearance
Version: 0.6.1
-Release: 2
+Release: 3
License: GPL v3
Group: X11/Applications
Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
Patch0: mate-desktop.patch
URL: http://wiki.lxde.org/en/LXAppearance
BuildRequires: gettext-tools
-BuildRequires: gtk+3-devel >= 3.0.0
+%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
+%{?with_gtk3:BuildRequires: gtk+3-devel}
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: tar >= 1:1.22
%build
%configure \
- --enable-gtk3
+ %{?with_gtk3:--enable-gtk3}
%{__make} V=1
%install