3 %bcond_without appindicator # application indicators support
5 %define gtk3_ver 3.22.0
6 Summary: Integrates polkit authentication for MATE desktop
7 Summary(pl.UTF-8): Integracja uwierzytelniania polkit ze środowiskiem MATE
12 Group: X11/Applications
13 Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz
14 # Source0-md5: 531016f7981470f416ed9cd72b891e6d
15 URL: https://wiki.mate-desktop.org/mate-desktop/components/mate-polkit/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake >= 1:1.9
18 BuildRequires: gettext-tools >= 0.19.8
19 BuildRequires: glib2-devel >= 1:2.50.0
20 BuildRequires: gobject-introspection-devel >= 0.6.2
21 BuildRequires: gtk+3-devel >= %{gtk3_ver}
22 BuildRequires: gtk-doc >= 1.3
23 %if %{with appindicator}
24 BuildRequires: libappindicator-gtk3-devel >= 0.0.13
26 BuildRequires: libtool >= 2:2.2.6
27 BuildRequires: mate-common
28 BuildRequires: pkgconfig
29 BuildRequires: polkit-devel >= 0.97
30 BuildRequires: tar >= 1:1.22
32 # needed for gobject-introspection support (Gtk-3.0.gir -> Gdk-3.0.gir -> cairo-1.0.gir, which requires libcairo-gobject.so)
33 BuildRequires: cairo-gobject-devel
34 Requires: glib2 >= 1:2.50.0
35 Requires: gtk+3 >= %{gtk3_ver}
36 Requires: polkit-libs >= 0.97
37 %if %{with appindicator}
38 Requires: libappindicator-gtk3 >= 0.0.13
40 Obsoletes: mate-polkit-devel < 1.20
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 MATE polkit integrates polkit with the MATE Desktop environment. MATE
45 polkit is a fork of GNOME polkit.
47 %description -l pl.UTF-8
48 Integracja uwierzytelniania polkit ze środowiskiem MATE. MATE polkit
49 to odgałęzienie pakietu GNOME polkit.
61 %{!?with_appindicator:--disable-appindicator} \
62 --disable-silent-rules \
68 rm -rf $RPM_BUILD_ROOT
71 DESTDIR=$RPM_BUILD_ROOT
73 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,ku_IQ,ur_PK}
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog NEWS README
86 %attr(755,root,root) %{_libexecdir}/polkit-mate-authentication-agent-1
87 %{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop