]>
Commit | Line | Data |
---|---|---|
4813e2b2 | 1 | # TODO: package bash-completion in proper way |
6727d68f | 2 | Summary: A framework for defining policy for system-wide components |
ec26c0e8 | 3 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych |
6727d68f | 4 | Name: PolicyKit |
bfa77eca MB |
5 | Version: 0.8 |
6 | Release: 1 | |
204749d0 | 7 | License: MIT |
6727d68f | 8 | Group: Libraries |
5623b4a4 | 9 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz |
bfa77eca | 10 | # Source0-md5: 5c1a4445dbd5cb853132766c5d0ab336 |
27dd9833 | 11 | URL: http://people.freedesktop.org/~david/polkit-spec.html |
183aac36 | 12 | BuildRequires: autoconf >= 2.60 |
23049034 | 13 | BuildRequires: automake >= 1:1.7 |
183aac36 | 14 | BuildRequires: dbus-devel >= 1.0 |
4813e2b2 | 15 | BuildRequires: dbus-glib-devel >= 0.73 |
b9051385 | 16 | BuildRequires: expat-devel >= 1:1.95.8 |
7a09d427 JB |
17 | BuildRequires: glib2-devel >= 1:2.6.0 |
18 | BuildRequires: gtk-doc >= 1.3 | |
23049034 | 19 | BuildRequires: libselinux-devel >= 1.30 |
6727d68f AM |
20 | BuildRequires: libtool |
21 | BuildRequires: pam-devel >= 0.80 | |
7a09d427 JB |
22 | BuildRequires: pkgconfig |
23 | BuildRequires: rpmbuild(macros) >= 1.268 | |
6727d68f | 24 | BuildRequires: xmlto |
c0001c5d PZ |
25 | Requires(postun): /usr/sbin/groupdel |
26 | Requires(postun): /usr/sbin/userdel | |
27 | Requires(pre): /bin/id | |
28 | Requires(pre): /usr/bin/getgid | |
29 | Requires(pre): /usr/lib/rpm/user_group.sh | |
30 | Requires(pre): /usr/sbin/groupadd | |
31 | Requires(pre): /usr/sbin/useradd | |
32 | Requires(pre): /usr/sbin/usermod | |
b9051385 | 33 | Requires(triggerpostun): /sbin/chkconfig |
4342a6d9 | 34 | Requires: %{name}-libs = %{version}-%{release} |
616120d3 | 35 | Requires: ConsoleKit >= 0.2.1 |
ea89b22a | 36 | Requires: dbus >= 1.1.2-5 |
c0001c5d PZ |
37 | Provides: group(polkituser) |
38 | Provides: user(polkituser) | |
6727d68f AM |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
1df708eb AM |
41 | %define _libexecdir %{_libdir}/%{name} |
42 | ||
6727d68f AM |
43 | %description |
44 | PolicyKit is a framework for defining policy for system-wide | |
45 | components and for desktop pieces to configure it. It is used by HAL. | |
46 | ||
6678f48b JR |
47 | %description -l pl.UTF-8 |
48 | PolicyKit to szkielet do definiowania polityki dla komponentów | |
49 | systemowych oraz składników pulpitu do konfigurowania ich. Jest | |
50 | używany przez HAL-a. | |
df978f17 | 51 | |
27dd9833 PZ |
52 | %package apidocs |
53 | Summary: PolicyKit API documentation | |
54 | Summary(pl.UTF-8): Dokumentacja API PolicyKit | |
55 | Group: Documentation | |
56 | Requires: gtk-doc-common | |
57 | ||
58 | %description apidocs | |
59 | PolicyKit API documentation. | |
60 | ||
61 | %description apidocs -l pl.UTF-8 | |
62 | Dokumentacja API PolicyKit. | |
63 | ||
4342a6d9 JB |
64 | %package libs |
65 | Summary: PolicyKit libraries | |
ec26c0e8 | 66 | Summary(pl.UTF-8): Biblioteki PolicyKit |
4342a6d9 | 67 | Group: Libraries |
b9051385 JB |
68 | Requires: dbus-libs >= 1.0 |
69 | Requires: glib2 >= 1:2.6.0 | |
4342a6d9 JB |
70 | Conflicts: PolicyKit < 0.1-0.20061203.6 |
71 | ||
72 | %description libs | |
73 | PolicyKit libraries. | |
74 | ||
6678f48b | 75 | %description libs -l pl.UTF-8 |
4342a6d9 JB |
76 | Biblioteki PolicyKit. |
77 | ||
6727d68f | 78 | %package devel |
df978f17 | 79 | Summary: Header files for PolicyKit |
ec26c0e8 | 80 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit |
6727d68f | 81 | Group: Development/Libraries |
4342a6d9 | 82 | Requires: %{name}-libs = %{version}-%{release} |
b9051385 | 83 | Requires: expat-devel >= 1:1.95.8 |
4813e2b2 JB |
84 | # polkit-grant |
85 | #Requires: glib2-devel >= 1:2.6.0 | |
23049034 | 86 | # polkit-dbus and polkit-grant |
b9051385 | 87 | #Requires: dbus-devel >= 1.0 |
23049034 JB |
88 | # polkit-dbus |
89 | #Requires: libselinux-devel >= 1.30 | |
6727d68f AM |
90 | |
91 | %description devel | |
df978f17 | 92 | Header files for PolicyKit. |
6727d68f | 93 | |
6678f48b JR |
94 | %description devel -l pl.UTF-8 |
95 | Pliki nagłówkowe PolicyKit. | |
6727d68f AM |
96 | |
97 | %package static | |
df978f17 | 98 | Summary: Static PolicyKit libraries |
ec26c0e8 | 99 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit |
6727d68f AM |
100 | Group: Development/Libraries |
101 | Requires: %{name}-devel = %{version}-%{release} | |
102 | ||
103 | %description static | |
df978f17 | 104 | Static PolicyKit libraries. |
6727d68f | 105 | |
6678f48b | 106 | %description static -l pl.UTF-8 |
df978f17 | 107 | Statyczne biblioteki PolicyKit. |
6727d68f AM |
108 | |
109 | %prep | |
27dd9833 | 110 | %setup -q |
6727d68f AM |
111 | |
112 | %build | |
4342a6d9 JB |
113 | %{__libtoolize} |
114 | %{__aclocal} | |
115 | %{__autoconf} | |
116 | %{__autoheader} | |
117 | %{__automake} | |
6727d68f | 118 | %configure \ |
7a09d427 | 119 | --with-html-dir=%{_gtkdocdir} \ |
23049034 | 120 | --with-pam-include=system-auth \ |
6727d68f | 121 | --with-pam-module-dir=/%{_lib}/security |
bfa77eca | 122 | %{__make} |
6727d68f AM |
123 | |
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
bfa77eca | 127 | %{__make} install \ |
6727d68f AM |
128 | DESTDIR=$RPM_BUILD_ROOT |
129 | ||
183aac36 | 130 | rm -f $RPM_BUILD_ROOT%{_libdir}/PolicyKit/modules/*.{la,a} |
7a09d427 | 131 | |
6727d68f AM |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
4813e2b2 | 135 | %triggerun -- PolicyKit < 0.3 |
183aac36 JB |
136 | %service -q PolicyKit stop |
137 | /sbin/chkconfig --del PolicyKit | |
138 | ||
c0001c5d PZ |
139 | %pre |
140 | %groupadd -g 220 polkituser | |
141 | %useradd -u 220 -d %{_datadir}/empty -c "PolicyKit User" -g polkituser polkituser | |
142 | ||
4813e2b2 JB |
143 | %post |
144 | umask 022 | |
145 | touch /var/lib/misc/PolicyKit.reload | |
bfa77eca MB |
146 | chown polkituser:polkituser /var/lib/misc/PolicyKit.reload |
147 | chmod 775 /var/lib/misc/PolicyKit.reload | |
4813e2b2 | 148 | |
c0001c5d PZ |
149 | %postun |
150 | if [ "$1" = "0" ]; then | |
151 | %userremove polkituser | |
152 | %groupremove polkituser | |
153 | fi | |
154 | ||
4342a6d9 JB |
155 | %post libs -p /sbin/ldconfig |
156 | %postun libs -p /sbin/ldconfig | |
6727d68f AM |
157 | |
158 | %files | |
159 | %defattr(644,root,root,755) | |
27dd9833 | 160 | %doc AUTHORS README doc/TODO |
4813e2b2 JB |
161 | %attr(755,root,root) %{_bindir}/polkit-action |
162 | %attr(755,root,root) %{_bindir}/polkit-auth | |
163 | %attr(755,root,root) %{_bindir}/polkit-config-file-validate | |
164 | %attr(755,root,root) %{_bindir}/polkit-policy-file-validate | |
1df708eb | 165 | %dir %{_libexecdir} |
4813e2b2 | 166 | %attr(2755,root,polkituser) %{_libexecdir}/polkit-explicit-grant-helper |
1df708eb | 167 | %attr(2755,root,polkituser) %{_libexecdir}/polkit-grant-helper |
4813e2b2 JB |
168 | %attr(4754,root,polkituser) %{_libexecdir}/polkit-grant-helper-pam |
169 | %attr(2755,root,polkituser) %{_libexecdir}/polkit-read-auth-helper | |
bfa77eca | 170 | %attr(4755,root,polkituser) %{_libexecdir}/polkit-resolve-exe-helper |
4813e2b2 | 171 | %attr(2755,root,polkituser) %{_libexecdir}/polkit-revoke-helper |
bfa77eca | 172 | %attr(4755,polkituser,root) %{_libexecdir}/polkit-set-default-helper |
4813e2b2 | 173 | %attr(755,root,root) %{_libexecdir}/polkitd |
5623b4a4 | 174 | %dir %{_sysconfdir}/PolicyKit |
175 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PolicyKit/PolicyKit.conf | |
4813e2b2 | 176 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit.conf |
183aac36 | 177 | /etc/pam.d/polkit |
4813e2b2 JB |
178 | %{_datadir}/PolicyKit |
179 | %{_datadir}/dbus-1/interfaces/org.freedesktop.PolicyKit.AuthenticationAgent.xml | |
180 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit.service | |
bfa77eca | 181 | %attr(775,polkituser,polkituser) %ghost /var/lib/misc/PolicyKit.reload |
4813e2b2 | 182 | %attr(770,root,polkituser) /var/lib/PolicyKit |
bfa77eca | 183 | %attr(755,polkituser,root) /var/lib/PolicyKit-public |
4813e2b2 JB |
184 | %attr(770,root,polkituser) /var/run/PolicyKit |
185 | %{_mandir}/man1/polkit-action.1* | |
186 | %{_mandir}/man1/polkit-auth.1* | |
5623b4a4 | 187 | %{_mandir}/man1/polkit-config-file-validate.1* |
5623b4a4 | 188 | %{_mandir}/man1/polkit-policy-file-validate.1* |
189 | %{_mandir}/man5/PolicyKit.conf.5* | |
190 | %{_mandir}/man8/PolicyKit.8* | |
191 | ||
27dd9833 PZ |
192 | %files apidocs |
193 | %defattr(644,root,root,755) | |
194 | %{_gtkdocdir}/polkit | |
6727d68f | 195 | |
4342a6d9 JB |
196 | %files libs |
197 | %defattr(644,root,root,755) | |
183aac36 JB |
198 | # notes which license applies to which package part, AFL text (and GPL text copy) |
199 | %doc COPYING | |
4342a6d9 | 200 | %attr(755,root,root) %{_libdir}/libpolkit.so.*.*.* |
4813e2b2 | 201 | %attr(755,root,root) %ghost %{_libdir}/libpolkit.so.2 |
27dd9833 | 202 | %attr(755,root,root) %{_libdir}/libpolkit-dbus.so.*.*.* |
4813e2b2 | 203 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-dbus.so.2 |
183aac36 | 204 | %attr(755,root,root) %{_libdir}/libpolkit-grant.so.*.*.* |
4813e2b2 | 205 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-grant.so.2 |
4342a6d9 | 206 | |
6727d68f AM |
207 | %files devel |
208 | %defattr(644,root,root,755) | |
183aac36 JB |
209 | %attr(755,root,root) %{_libdir}/libpolkit.so |
210 | %attr(755,root,root) %{_libdir}/libpolkit-dbus.so | |
211 | %attr(755,root,root) %{_libdir}/libpolkit-grant.so | |
212 | %{_libdir}/libpolkit.la | |
213 | %{_libdir}/libpolkit-dbus.la | |
214 | %{_libdir}/libpolkit-grant.la | |
27dd9833 | 215 | %{_includedir}/PolicyKit |
4342a6d9 | 216 | %{_pkgconfigdir}/polkit.pc |
27dd9833 PZ |
217 | %{_pkgconfigdir}/polkit-dbus.pc |
218 | %{_pkgconfigdir}/polkit-grant.pc | |
6727d68f AM |
219 | |
220 | %files static | |
221 | %defattr(644,root,root,755) | |
183aac36 JB |
222 | %{_libdir}/libpolkit.a |
223 | %{_libdir}/libpolkit-dbus.a | |
224 | %{_libdir}/libpolkit-grant.a |