]> TLD Linux GIT Repositories - packages/lxappearance.git/blobdiff - lxappearance.spec
- updated to 0.6.3
[packages/lxappearance.git] / lxappearance.spec
index 189bfdc70dbbccf9d01bda5cba39dddae275a3ae..a8ba2aaabfb05a6415a0d2a56e9ead26d3b392be 100644 (file)
@@ -1,15 +1,23 @@
+# 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
+Version:       0.6.3
+Release:       1
 License:       GPL v3
 Group:         X11/Applications
 Source0:       http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
-# Source0-md5: 79740125628a8374c1101cf26e558fa5
-Patch0:                mate-desktop.patch
+# Source0-md5: f10345313e2c12bad51c1b58bd46b454
 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
@@ -30,11 +38,10 @@ Header files for lxappearance.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
 %configure \
-       --enable-gtk3
+       %{?with_gtk3:--enable-gtk3}
 %{__make} V=1
 
 %install