]> git.pld-linux.org Git - SPECS.git/blob - mate-polkit.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / mate-polkit.spec
1 #
2 # Conditional build:
3 %bcond_without  appindicator    # application indicators support
4
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
8 Name:           mate-polkit
9 Version:        1.26.1
10 Release:        1
11 License:        LGPL v2+
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
25 %endif
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
31 BuildRequires:  xz
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
39 %endif
40 Obsoletes:      mate-polkit-devel < 1.20
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 MATE polkit integrates polkit with the MATE Desktop environment. MATE
45 polkit is a fork of GNOME polkit.
46
47 %description -l pl.UTF-8
48 Integracja uwierzytelniania polkit ze środowiskiem MATE. MATE polkit
49 to odgałęzienie pakietu GNOME polkit.
50
51 %prep
52 %setup -q
53
54 %build
55 %{__libtoolize}
56 %{__aclocal} -I m4
57 %{__autoconf}
58 %{__autoheader}
59 %{__automake}
60 %configure \
61         %{!?with_appindicator:--disable-appindicator} \
62         --disable-silent-rules \
63         --disable-static
64
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,ku_IQ,ur_PK}
74
75 %find_lang %{name}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
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
This page took 0.057357 seconds and 3 git commands to generate.