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