- release 2
[packages/lxpolkit.git] / lxpolkit.spec
1 # Conditional build:
2 %bcond_with             gtk3    # build GTK+3 disables GTK+2
3 %bcond_without          gtk2    # build with GTK+2
4
5 %if %{with gtk3}
6 %undefine       with_gtk2
7 %endif
8
9 Summary:        LXPolkit is a simple PolicyKit authentication agent
10 Name:           lxpolkit
11 Version:        0.1.0
12 Release:        2
13 License:        GPL v3
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)
26
27 %description
28 LXPolkit is a simple PolicyKit authentication agent.
29
30 %prep
31 %setup -q
32
33 %build
34 %configure \
35         %{?with_gtk3:--enable-gtk3}
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 %{__make} install \
41         DESTDIR=$RPM_BUILD_ROOT
42
43 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/tt_RU
44
45 %find_lang %{name}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files -f %{name}.lang
51 %defattr(644,root,root,755)
52 %doc AUTHORS README
53 /etc/xdg/autostart/lxpolkit.desktop
54 %attr(755,root,root) %{_libdir}/lxpolkit
55 %{_datadir}/lxpolkit