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