]>
Commit | Line | Data |
---|---|---|
d9c1c6d8 | 1 | # TODO: recheck cairo-gobject BR |
c02ebaff JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
5 | ||
c25c3ae4 ER |
6 | %define gtk2_ver 2:2.24.0 |
7 | %define gtk3_ver 3.0.0 | |
16e8f251 | 8 | Summary: Integrates polkit authentication for MATE desktop |
d9c1c6d8 | 9 | Summary(pl.UTF-8): Integracja uwierzytelniania polkit ze środowiskiem MATE |
16e8f251 | 10 | Name: mate-polkit |
f37ee643 | 11 | Version: 1.10.2 |
27e01c5b | 12 | Release: 1 |
16e8f251 ER |
13 | License: LGPL v2+ |
14 | Group: X11/Applications | |
27e01c5b | 15 | Source0: http://pub.mate-desktop.org/releases/1.10/%{name}-%{version}.tar.xz |
f37ee643 | 16 | # Source0-md5: ebb243e915020380f11726c64daf31f7 |
c0cdb16f | 17 | URL: http://wiki.mate-desktop.org/mate-polkit |
c02ebaff | 18 | BuildRequires: autoconf >= 2.50 |
562f0bda | 19 | BuildRequires: automake >= 1:1.9 |
6267fb6c | 20 | BuildRequires: gettext-tools >= 0.10.40 |
27e01c5b | 21 | BuildRequires: glib2-devel >= 1:2.36.0 |
c0cdb16f | 22 | BuildRequires: gobject-introspection-devel >= 0.6.2 |
c25c3ae4 ER |
23 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= %{gtk2_ver}} |
24 | %{?with_gtk3:BuildRequires: gtk+3-devel >= %{gtk3_ver}} | |
d9c1c6d8 JB |
25 | BuildRequires: gtk-doc >= 1.3 |
26 | BuildRequires: intltool >= 0.35.0 | |
562f0bda | 27 | BuildRequires: libtool |
16e8f251 | 28 | BuildRequires: mate-common |
d9c1c6d8 | 29 | BuildRequires: pkgconfig |
c0cdb16f | 30 | BuildRequires: polkit-devel >= 0.97 |
0a8f42f2 ER |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
16e8f251 ER |
33 | # needed for gobject-introspection support somehow, |
34 | # https://bugzilla.redhat.com/show_bug.cgi?id=847419#c17 asserts this is a bug (elsewhere) | |
35 | # but I'm not entirely sure -- rex | |
36 | BuildRequires: cairo-gobject-devel | |
27e01c5b | 37 | Requires: glib2 >= 1:2.36.0 |
c25c3ae4 ER |
38 | %{!?with_gtk3:Requires: gtk+2 >= %{gtk2_ver}} |
39 | %{?with_gtk3:Requires: gtk+3 >= %{gtk3_ver}} | |
d9c1c6d8 | 40 | Requires: polkit-libs >= 0.97 |
16e8f251 ER |
41 | #Provides: PolicyKit-authentication-agent |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
c25c3ae4 ER |
45 | MATE polkit integrates polkit with the MATE Desktop environment. MATE |
46 | polkit is a fork of GNOME polkit. | |
d9c1c6d8 JB |
47 | |
48 | %description -l pl.UTF-8 | |
49 | Integracja uwierzytelniania polkit ze środowiskiem MATE. MATE polkit | |
50 | to odgałęzienie pakietu GNOME polkit. | |
16e8f251 ER |
51 | |
52 | %package devel | |
d9c1c6d8 JB |
53 | Summary: Development files for mate-polkit library |
54 | Summary(pl.UTF-8): Pliki programistyczne biblioteki mate-polkit | |
16e8f251 | 55 | Group: Development/Libraries |
0a8f42f2 | 56 | Requires: %{name} = %{version}-%{release} |
27e01c5b | 57 | Requires: glib2-devel >= 1:2.36.0 |
c25c3ae4 ER |
58 | %{!?with_gtk3:Requires: gtk+2-devel >= %{gtk2_ver}} |
59 | %{?with_gtk3:Requires: gtk+3-devel >= %{gtk3_ver}} | |
d9c1c6d8 | 60 | Requires: polkit-devel >= 0.97 |
16e8f251 ER |
61 | |
62 | %description devel | |
d9c1c6d8 JB |
63 | Development files for mate-polkit library. |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki programistyczne biblioteki mate-polkit. | |
16e8f251 ER |
67 | |
68 | %prep | |
69 | %setup -q | |
16e8f251 ER |
70 | |
71 | %build | |
562f0bda JP |
72 | %{__libtoolize} |
73 | %{__aclocal} -I m4 | |
74 | %{__autoconf} | |
75 | %{__autoheader} | |
76 | %{__automake} | |
16e8f251 | 77 | %configure \ |
d9c1c6d8 | 78 | --disable-silent-rules \ |
c02ebaff JB |
79 | --disable-static \ |
80 | %{?with_gtk3:--with-gtk=3.0} | |
16e8f251 ER |
81 | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
801319ce | 89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libpolkit-gtk-mate-1.la |
16e8f251 | 90 | |
801319ce | 91 | %find_lang %{name} |
16e8f251 ER |
92 | |
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files -f %{name}.lang | |
100 | %defattr(644,root,root,755) | |
d9c1c6d8 | 101 | %doc AUTHORS ChangeLog README |
16e8f251 | 102 | %attr(755,root,root) %{_libdir}/libpolkit-gtk-mate-1.so.*.*.* |
d9c1c6d8 | 103 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gtk-mate-1.so.0 |
16e8f251 | 104 | %{_libdir}/girepository-1.0/PolkitGtkMate-1.0.typelib |
d9c1c6d8 JB |
105 | %attr(755,root,root) %{_libexecdir}/polkit-mate-authentication-agent-1 |
106 | %{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop | |
16e8f251 ER |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
d9c1c6d8 | 110 | %attr(755,root,root) %{_libdir}/libpolkit-gtk-mate-1.so |
16e8f251 ER |
111 | %{_includedir}/polkit-gtk-mate-1 |
112 | %{_datadir}/gir-1.0/PolkitGtkMate-1.0.gir | |
d9c1c6d8 | 113 | %{_pkgconfigdir}/polkit-gtk-mate-1.pc |