- back to gtk+2, doesn't build with gtk+3 and even if forced to build
authorMarcin Krol <hawk@tld-linux.org>
Fri, 17 Jul 2015 16:25:53 +0000 (16:25 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Fri, 17 Jul 2015 16:25:53 +0000 (16:25 +0000)
  it doesn't work properly

lxpanel.spec

index 676b4a5334e4c4b1e165f52ebbd459d53392fa5a..3f2600269fc1147e951ddeda0649446ea04542c9 100644 (file)
@@ -1,8 +1,10 @@
 # TODO:  /etc/xdg/lxpanel - proper tags/flags etc.
+%bcond_with            gtk3    # build GTK+3 disables GTK+2
+%bcond_without         gtk2    # build with GTK+2
 Summary:       LXPanel is a lightweight X11 desktop panel
 Name:          lxpanel
 Version:       0.8.1
-Release:       3
+Release:       5
 License:       GPL v2
 Group:         X11/Applications
 Source0:       http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
@@ -12,7 +14,8 @@ BuildRequires:        autoconf
 BuildRequires: automake >= 1:1.12
 BuildRequires: alsa-lib-devel
 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: keybinder-devel
 BuildRequires: libfm-devel
@@ -52,7 +55,7 @@ Pliki nagłówkowe biblioteki lxpanel.
 %{__automake}
 %{__autoconf}
 %configure \
-       --enable-gtk3
+       %{?with_gtk3:--enable-gtk3}
 %{__make} V=1
 
 %install