]>
Commit | Line | Data |
---|---|---|
14eed758 BZ |
1 | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # build without apidocs | |
4 | ||
a5863912 PZ |
5 | Summary: A framework for defining policy for system-wide components |
6 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych | |
7 | Name: polkit | |
485bcc8b | 8 | Version: 0.94 |
2789bcb6 | 9 | Release: 2 |
a5863912 PZ |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
485bcc8b | 13 | # Source0-md5: 5abc9f858e7b614ef41161db36d53915 |
a5863912 PZ |
14 | URL: http://people.freedesktop.org/~david/polkit-spec.html |
15 | BuildRequires: autoconf >= 2.60 | |
16 | BuildRequires: automake >= 1:1.7 | |
485bcc8b | 17 | BuildRequires: eggdbus-devel >= 0.5 |
a5863912 | 18 | BuildRequires: expat-devel >= 1:1.95.8 |
df23ce59 | 19 | BuildRequires: gettext-devel |
485bcc8b | 20 | BuildRequires: gir-repository-devel |
14eed758 | 21 | BuildRequires: glib2-devel >= 1:2.21.4 |
485bcc8b | 22 | BuildRequires: gobject-introspection-devel |
14eed758 | 23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
df23ce59 | 24 | BuildRequires: intltool >= 0.40.0 |
a5863912 PZ |
25 | BuildRequires: libtool |
26 | BuildRequires: pam-devel >= 0.80 | |
27 | BuildRequires: pkgconfig | |
a5863912 | 28 | Requires: %{name}-libs = %{version}-%{release} |
2789bcb6 | 29 | Requires: ConsoleKit >= 0.4.1 |
a5863912 PZ |
30 | Requires: dbus >= 1.1.2-5 |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | PolicyKit is a framework for defining policy for system-wide | |
35 | components and for desktop pieces to configure it. It is used by HAL. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | PolicyKit to szkielet do definiowania polityki dla komponentów | |
39 | systemowych oraz składników pulpitu do konfigurowania ich. Jest | |
40 | używany przez HAL-a. | |
41 | ||
42 | %package apidocs | |
43 | Summary: PolicyKit API documentation | |
44 | Summary(pl.UTF-8): Dokumentacja API PolicyKit | |
45 | Group: Documentation | |
46 | Requires: gtk-doc-common | |
47 | ||
48 | %description apidocs | |
49 | PolicyKit API documentation. | |
50 | ||
51 | %description apidocs -l pl.UTF-8 | |
52 | Dokumentacja API PolicyKit. | |
53 | ||
54 | %package libs | |
55 | Summary: PolicyKit libraries | |
56 | Summary(pl.UTF-8): Biblioteki PolicyKit | |
57 | Group: Libraries | |
df23ce59 MB |
58 | Requires: dbus-libs >= 1.1.2-5 |
59 | Requires: glib2 >= 1:2.18.0 | |
a5863912 PZ |
60 | Conflicts: PolicyKit < 0.1-0.20061203.6 |
61 | ||
62 | %description libs | |
63 | PolicyKit libraries. | |
64 | ||
65 | %description libs -l pl.UTF-8 | |
66 | Biblioteki PolicyKit. | |
67 | ||
68 | %package devel | |
69 | Summary: Header files for PolicyKit | |
70 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-libs = %{version}-%{release} | |
73 | Requires: expat-devel >= 1:1.95.8 | |
df23ce59 | 74 | Requires: glib2-devel >= 1:2.18.0 |
a5863912 PZ |
75 | |
76 | %description devel | |
77 | Header files for PolicyKit. | |
78 | ||
79 | %description devel -l pl.UTF-8 | |
80 | Pliki nagłówkowe PolicyKit. | |
81 | ||
82 | %package static | |
83 | Summary: Static PolicyKit libraries | |
84 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit | |
85 | Group: Development/Libraries | |
86 | Requires: %{name}-devel = %{version}-%{release} | |
87 | ||
88 | %description static | |
89 | Static PolicyKit libraries. | |
90 | ||
91 | %description static -l pl.UTF-8 | |
92 | Statyczne biblioteki PolicyKit. | |
93 | ||
94 | %prep | |
95 | %setup -q | |
96 | ||
97 | %build | |
df23ce59 | 98 | %{__intltoolize} |
a5863912 PZ |
99 | %{__libtoolize} |
100 | %{__aclocal} | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | %configure \ | |
14eed758 | 105 | --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \ |
a5863912 PZ |
106 | --with-html-dir=%{_gtkdocdir} \ |
107 | --with-pam-include=system-auth \ | |
108 | --with-pam-module-dir=/%{_lib}/security | |
109 | %{__make} | |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %{__make} install \ | |
115 | DESTDIR=$RPM_BUILD_ROOT | |
116 | ||
117 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} | |
118 | ||
119 | %find_lang polkit-1 | |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post libs -p /sbin/ldconfig | |
125 | %postun libs -p /sbin/ldconfig | |
126 | ||
127 | %files -f polkit-1.lang | |
128 | %defattr(644,root,root,755) | |
129 | %doc AUTHORS README | |
130 | %attr(755,root,root) %{_bindir}/pkaction | |
131 | %attr(755,root,root) %{_bindir}/pkcheck | |
132 | %attr(4755,root,root) %{_bindir}/pkexec | |
133 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 | |
0c630415 | 134 | %attr(755,root,root) %{_libexecdir}/polkitd |
a5863912 PZ |
135 | %dir %{_libdir}/polkit-1 |
136 | %dir %{_libdir}/polkit-1/extensions | |
0c630415 PZ |
137 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libnullbackend.so |
138 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpkexec-action-lookup.so | |
a5863912 PZ |
139 | %dir %{_sysconfdir}/polkit-1 |
140 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
141 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
142 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d | |
143 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
144 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
145 | /etc/pam.d/polkit-1 | |
146 | %{_datadir}/polkit-1 | |
147 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
148 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
149 | %{_mandir}/man1/pkaction.1* | |
150 | %{_mandir}/man1/pkcheck.1* | |
151 | %{_mandir}/man1/pkexec.1* | |
0c630415 PZ |
152 | %{_mandir}/man8/pklocalauthority.8* |
153 | %{_mandir}/man8/polkit.8* | |
154 | %{_mandir}/man8/polkitd.8* | |
a5863912 | 155 | |
14eed758 | 156 | %if %{with apidocs} |
a5863912 PZ |
157 | %files apidocs |
158 | %defattr(644,root,root,755) | |
159 | %{_gtkdocdir}/polkit-1 | |
14eed758 | 160 | %endif |
a5863912 PZ |
161 | |
162 | %files libs | |
163 | %defattr(644,root,root,755) | |
164 | # notes which license applies to which package part, AFL text (and GPL text copy) | |
165 | %doc COPYING | |
166 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.* | |
167 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0 | |
168 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.* | |
169 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0 | |
170 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.* | |
171 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0 | |
485bcc8b | 172 | %{_libdir}/girepository-1.0/*.typelib |
a5863912 PZ |
173 | |
174 | %files devel | |
175 | %defattr(644,root,root,755) | |
176 | %attr(755,root,root) %{_bindir}/pk-example-frobnicate | |
177 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so | |
178 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so | |
179 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so | |
180 | %{_libdir}/libpolkit-agent-1.la | |
181 | %{_libdir}/libpolkit-backend-1.la | |
182 | %{_libdir}/libpolkit-gobject-1.la | |
183 | %{_includedir}/polkit-1 | |
184 | %{_pkgconfigdir}/polkit-agent-1.pc | |
185 | %{_pkgconfigdir}/polkit-backend-1.pc | |
186 | %{_pkgconfigdir}/polkit-gobject-1.pc | |
485bcc8b | 187 | %{_datadir}/gir-1.0/*.gir |
a5863912 PZ |
188 | |
189 | %files static | |
190 | %defattr(644,root,root,755) | |
191 | %{_libdir}/libpolkit-agent-1.a | |
192 | %{_libdir}/libpolkit-backend-1.a | |
193 | %{_libdir}/libpolkit-gobject-1.a |