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