# 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
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
%{__automake}
%{__autoconf}
%configure \
- --enable-gtk3
+ %{?with_gtk3:--enable-gtk3}
%{__make} V=1
%install