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