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