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