]> TLD Linux GIT Repositories - packages/lxappearance.git/blobdiff - lxappearance.spec
- back to gtk+2, lxpanel isn't fully compatible with gtk+3
[packages/lxappearance.git] / lxappearance.spec
index 189bfdc70dbbccf9d01bda5cba39dddae275a3ae..ca2c41d0ec8decb8d20a76de2fcd2a9d85be0093 100644 (file)
@@ -1,7 +1,16 @@
+#
+# 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
@@ -9,7 +18,8 @@ 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
@@ -34,7 +44,7 @@ Header files for lxappearance.
 
 %build
 %configure \
-       --enable-gtk3
+       %{?with_gtk3:--enable-gtk3}
 %{__make} V=1
 
 %install