]>
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 |
27dd9833 | 6 | Version: 0.3 |
3a108ab0 | 7 | Release: 2 |
928b0ef1 | 8 | License: GPL v2 |
6727d68f | 9 | Group: Libraries |
27dd9833 PZ |
10 | Source0: http://people.freedesktop.org/~david/dist/%{name}-%{version}.tar.gz |
11 | # Source0-md5: 8d61312abb40227a8487433872063ccf | |
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-* |
27dd9833 PZ |
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 |
183aac36 JB |
135 | %{_sysconfdir}/PolicyKit |
136 | /etc/pam.d/polkit | |
137 | #%attr(775,polkit,polkit) /var/lib/PolicyKit | |
138 | #%attr(775,polkit,polkit) /var/run/PolicyKit | |
139 | %{_mandir}/man1/* | |
140 | %{_mandir}/man8/* | |
27dd9833 PZ |
141 | |
142 | %files apidocs | |
143 | %defattr(644,root,root,755) | |
144 | %{_gtkdocdir}/polkit | |
145 | %{_gtkdocdir}/polkit-dbus | |
146 | %{_gtkdocdir}/polkit-grant | |
6727d68f | 147 | |
4342a6d9 JB |
148 | %files libs |
149 | %defattr(644,root,root,755) | |
183aac36 JB |
150 | # notes which license applies to which package part, AFL text (and GPL text copy) |
151 | %doc COPYING | |
4342a6d9 | 152 | %attr(755,root,root) %{_libdir}/libpolkit.so.*.*.* |
27dd9833 | 153 | %attr(755,root,root) %{_libdir}/libpolkit-dbus.so.*.*.* |
183aac36 | 154 | %attr(755,root,root) %{_libdir}/libpolkit-grant.so.*.*.* |
4342a6d9 | 155 | |
6727d68f AM |
156 | %files devel |
157 | %defattr(644,root,root,755) | |
183aac36 JB |
158 | %attr(755,root,root) %{_libdir}/libpolkit.so |
159 | %attr(755,root,root) %{_libdir}/libpolkit-dbus.so | |
160 | %attr(755,root,root) %{_libdir}/libpolkit-grant.so | |
161 | %{_libdir}/libpolkit.la | |
162 | %{_libdir}/libpolkit-dbus.la | |
163 | %{_libdir}/libpolkit-grant.la | |
27dd9833 | 164 | %{_includedir}/PolicyKit |
4342a6d9 | 165 | %{_pkgconfigdir}/polkit.pc |
27dd9833 PZ |
166 | %{_pkgconfigdir}/polkit-dbus.pc |
167 | %{_pkgconfigdir}/polkit-grant.pc | |
7a09d427 | 168 | %{_gtkdocdir}/polkit |
6727d68f AM |
169 | |
170 | %files static | |
171 | %defattr(644,root,root,755) | |
183aac36 JB |
172 | %{_libdir}/libpolkit.a |
173 | %{_libdir}/libpolkit-dbus.a | |
174 | %{_libdir}/libpolkit-grant.a |