2 %bcond_with gtk3 # build GTK+3 disables GTK+2
3 %bcond_without gtk2 # build with GTK+2
9 Summary: LXPolkit is a simple PolicyKit authentication agent
14 Group: X11/Applications
15 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
16 # Source0-md5: 2597b00035fe1d695219e0f9bfa8c26f
17 # FIXME: check url, if site cames back online
18 URL: http://wiki.lxde.org/en/LXPolkit
19 BuildRequires: gettext-tools
20 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
21 %{?with_gtk3:BuildRequires: gtk+3-devel}
22 BuildRequires: intltool
23 BuildRequires: pkgconfig
24 BuildRequires: polkit-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 LXPolkit is a simple PolicyKit authentication agent.
35 %{?with_gtk3:--enable-gtk3}
39 rm -rf $RPM_BUILD_ROOT
41 DESTDIR=$RPM_BUILD_ROOT
43 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/tt_RU
48 rm -rf $RPM_BUILD_ROOT
50 %files -f %{name}.lang
51 %defattr(644,root,root,755)
53 /etc/xdg/autostart/lxpolkit.desktop
54 %attr(755,root,root) %{_libdir}/lxpolkit