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