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