]>
Commit | Line | Data |
---|---|---|
7a09d427 | 1 | # TODO: |
23049034 | 2 | # - polkituser user/group |
6727d68f | 3 | Summary: A framework for defining policy for system-wide components |
ec26c0e8 | 4 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych |
6727d68f | 5 | Name: PolicyKit |
5623b4a4 | 6 | Version: 0.5 |
7 | Release: 1 | |
928b0ef1 | 8 | License: GPL v2 |
6727d68f | 9 | Group: Libraries |
5623b4a4 | 10 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz |
11 | # Source0-md5: e5632c984df948edffb49659e76b6e96 | |
27dd9833 | 12 | URL: http://people.freedesktop.org/~david/polkit-spec.html |
183aac36 | 13 | BuildRequires: autoconf >= 2.60 |
23049034 | 14 | BuildRequires: automake >= 1:1.7 |
183aac36 | 15 | BuildRequires: dbus-devel >= 1.0 |
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} |
c0001c5d PZ |
35 | Provides: group(polkituser) |
36 | Provides: user(polkituser) | |
6727d68f AM |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | PolicyKit is a framework for defining policy for system-wide | |
41 | components and for desktop pieces to configure it. It is used by HAL. | |
42 | ||
6678f48b JR |
43 | %description -l pl.UTF-8 |
44 | PolicyKit to szkielet do definiowania polityki dla komponentów | |
45 | systemowych oraz składników pulpitu do konfigurowania ich. Jest | |
46 | używany przez HAL-a. | |
df978f17 | 47 | |
27dd9833 PZ |
48 | %package apidocs |
49 | Summary: PolicyKit API documentation | |
50 | Summary(pl.UTF-8): Dokumentacja API PolicyKit | |
51 | Group: Documentation | |
52 | Requires: gtk-doc-common | |
53 | ||
54 | %description apidocs | |
55 | PolicyKit API documentation. | |
56 | ||
57 | %description apidocs -l pl.UTF-8 | |
58 | Dokumentacja API PolicyKit. | |
59 | ||
4342a6d9 JB |
60 | %package libs |
61 | Summary: PolicyKit libraries | |
ec26c0e8 | 62 | Summary(pl.UTF-8): Biblioteki PolicyKit |
928b0ef1 | 63 | License: AFL v2.1 or GPL v2 |
4342a6d9 | 64 | Group: Libraries |
b9051385 JB |
65 | Requires: dbus-libs >= 1.0 |
66 | Requires: glib2 >= 1:2.6.0 | |
4342a6d9 JB |
67 | Conflicts: PolicyKit < 0.1-0.20061203.6 |
68 | ||
69 | %description libs | |
70 | PolicyKit libraries. | |
71 | ||
6678f48b | 72 | %description libs -l pl.UTF-8 |
4342a6d9 JB |
73 | Biblioteki PolicyKit. |
74 | ||
6727d68f | 75 | %package devel |
df978f17 | 76 | Summary: Header files for PolicyKit |
ec26c0e8 | 77 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit |
928b0ef1 | 78 | License: AFL v2.1 or GPL v2 |
6727d68f | 79 | Group: Development/Libraries |
4342a6d9 | 80 | Requires: %{name}-libs = %{version}-%{release} |
b9051385 JB |
81 | Requires: expat-devel >= 1:1.95.8 |
82 | Requires: glib2-devel >= 1:2.6.0 | |
23049034 | 83 | # polkit-dbus and polkit-grant |
b9051385 | 84 | #Requires: dbus-devel >= 1.0 |
23049034 JB |
85 | # polkit-dbus |
86 | #Requires: libselinux-devel >= 1.30 | |
6727d68f AM |
87 | |
88 | %description devel | |
df978f17 | 89 | Header files for PolicyKit. |
6727d68f | 90 | |
6678f48b JR |
91 | %description devel -l pl.UTF-8 |
92 | Pliki nagłówkowe PolicyKit. | |
6727d68f AM |
93 | |
94 | %package static | |
df978f17 | 95 | Summary: Static PolicyKit libraries |
ec26c0e8 | 96 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit |
928b0ef1 | 97 | License: AFL v2.1 or GPL v2 |
6727d68f AM |
98 | Group: Development/Libraries |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | ||
101 | %description static | |
df978f17 | 102 | Static PolicyKit libraries. |
6727d68f | 103 | |
6678f48b | 104 | %description static -l pl.UTF-8 |
df978f17 | 105 | Statyczne biblioteki PolicyKit. |
6727d68f AM |
106 | |
107 | %prep | |
27dd9833 | 108 | %setup -q |
6727d68f AM |
109 | |
110 | %build | |
4342a6d9 JB |
111 | %{__libtoolize} |
112 | %{__aclocal} | |
113 | %{__autoconf} | |
114 | %{__autoheader} | |
115 | %{__automake} | |
6727d68f | 116 | %configure \ |
7a09d427 | 117 | --with-html-dir=%{_gtkdocdir} \ |
23049034 | 118 | --with-pam-include=system-auth \ |
6727d68f | 119 | --with-pam-module-dir=/%{_lib}/security |
e7d78954 | 120 | %{__make} -j1 |
6727d68f AM |
121 | |
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
e7d78954 | 125 | %{__make} -j1 install \ |
6727d68f AM |
126 | DESTDIR=$RPM_BUILD_ROOT |
127 | ||
183aac36 | 128 | rm -f $RPM_BUILD_ROOT%{_libdir}/PolicyKit/modules/*.{la,a} |
7a09d427 | 129 | |
6727d68f AM |
130 | %clean |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
c0001c5d | 133 | %triggerun -- PolicyKit < 0.3 |
183aac36 JB |
134 | %service -q PolicyKit stop |
135 | /sbin/chkconfig --del PolicyKit | |
136 | ||
c0001c5d PZ |
137 | %pre |
138 | %groupadd -g 220 polkituser | |
139 | %useradd -u 220 -d %{_datadir}/empty -c "PolicyKit User" -g polkituser polkituser | |
140 | ||
141 | %postun | |
142 | if [ "$1" = "0" ]; then | |
143 | %userremove polkituser | |
144 | %groupremove polkituser | |
145 | fi | |
146 | ||
4342a6d9 JB |
147 | %post libs -p /sbin/ldconfig |
148 | %postun libs -p /sbin/ldconfig | |
6727d68f AM |
149 | |
150 | %files | |
151 | %defattr(644,root,root,755) | |
27dd9833 | 152 | %doc AUTHORS README doc/TODO |
6727d68f | 153 | %attr(755,root,root) %{_bindir}/polkit-* |
c0001c5d PZ |
154 | %attr(2755,root,polkituser) %{_libdir}/polkit-grant-helper |
155 | #%attr(755,root,root) %{_libdir}/polkit-grant-helper | |
156 | %attr(4755,root,root) %{_libdir}/polkit-grant-helper-pam | |
157 | #%attr(755,root,root) %{_libdir}/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 |