]>
Commit | Line | Data |
---|---|---|
a91c2820 | 1 | # |
14eed758 BZ |
2 | # Conditional build: |
3 | %bcond_without apidocs # build without apidocs | |
a91c2820 | 4 | # |
a5863912 PZ |
5 | Summary: A framework for defining policy for system-wide components |
6 | Summary(pl.UTF-8): Szkielet do definiowania polityki dla komponentów systemowych | |
7 | Name: polkit | |
0ae27131 CM |
8 | Version: 0.100 |
9 | Release: 1 | |
a5863912 PZ |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
0ae27131 | 13 | # Source0-md5: 9f957bf046ff5a32b0fa0ffe1e35c09c |
3310eb44 | 14 | URL: http://www.freedesktop.org/wiki/Software/PolicyKit |
a5863912 PZ |
15 | BuildRequires: autoconf >= 2.60 |
16 | BuildRequires: automake >= 1:1.7 | |
1528e92c | 17 | BuildRequires: docbook-dtd412-xml |
3310eb44 | 18 | BuildRequires: docbook-style-xsl |
39a23f16 | 19 | BuildRequires: eggdbus-devel >= 0.6 |
a5863912 | 20 | BuildRequires: expat-devel >= 1:1.95.8 |
df23ce59 | 21 | BuildRequires: gettext-devel |
cf0a7407 | 22 | BuildRequires: glib2-devel >= 1:2.25.12 |
1528e92c | 23 | BuildRequires: glibc-misc |
e3a98c17 | 24 | BuildRequires: gobject-introspection-devel >= 0.6.2 |
14eed758 | 25 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
3310eb44 | 26 | BuildRequires: gtk-doc-automake |
df23ce59 | 27 | BuildRequires: intltool >= 0.40.0 |
a5863912 | 28 | BuildRequires: libtool |
3310eb44 | 29 | BuildRequires: libxslt-progs |
a5863912 PZ |
30 | BuildRequires: pam-devel >= 0.80 |
31 | BuildRequires: pkgconfig | |
1528e92c | 32 | BuildRequires: python-modules |
3310eb44 | 33 | BuildRequires: rpmbuild(macros) >= 1.527 |
a5863912 | 34 | Requires: %{name}-libs = %{version}-%{release} |
2789bcb6 | 35 | Requires: ConsoleKit >= 0.4.1 |
a5863912 PZ |
36 | Requires: dbus >= 1.1.2-5 |
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 | ||
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. | |
47 | ||
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 | ||
60 | %package libs | |
61 | Summary: PolicyKit libraries | |
62 | Summary(pl.UTF-8): Biblioteki PolicyKit | |
63 | Group: Libraries | |
df23ce59 | 64 | Requires: dbus-libs >= 1.1.2-5 |
cf0a7407 | 65 | Requires: glib2 >= 1:2.25.12 |
a5863912 PZ |
66 | Conflicts: PolicyKit < 0.1-0.20061203.6 |
67 | ||
68 | %description libs | |
69 | PolicyKit libraries. | |
70 | ||
71 | %description libs -l pl.UTF-8 | |
72 | Biblioteki PolicyKit. | |
73 | ||
74 | %package devel | |
75 | Summary: Header files for PolicyKit | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit | |
77 | Group: Development/Libraries | |
78 | Requires: %{name}-libs = %{version}-%{release} | |
79 | Requires: expat-devel >= 1:1.95.8 | |
cf0a7407 | 80 | Requires: glib2-devel >= 1:2.25.12 |
a5863912 PZ |
81 | |
82 | %description devel | |
83 | Header files for PolicyKit. | |
84 | ||
85 | %description devel -l pl.UTF-8 | |
86 | Pliki nagłówkowe PolicyKit. | |
87 | ||
88 | %package static | |
89 | Summary: Static PolicyKit libraries | |
90 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit | |
91 | Group: Development/Libraries | |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | ||
94 | %description static | |
95 | Static PolicyKit libraries. | |
96 | ||
97 | %description static -l pl.UTF-8 | |
98 | Statyczne biblioteki PolicyKit. | |
99 | ||
100 | %prep | |
101 | %setup -q | |
102 | ||
103 | %build | |
3310eb44 | 104 | %{?with_apidocs:%{__gtkdocize}} |
df23ce59 | 105 | %{__intltoolize} |
a5863912 PZ |
106 | %{__libtoolize} |
107 | %{__aclocal} | |
108 | %{__autoconf} | |
109 | %{__autoheader} | |
110 | %{__automake} | |
111 | %configure \ | |
3310eb44 | 112 | %{__enable_disable apidocs gtk-doc} \ |
a91c2820 | 113 | --disable-silent-rules \ |
a5863912 PZ |
114 | --with-html-dir=%{_gtkdocdir} \ |
115 | --with-pam-include=system-auth \ | |
116 | --with-pam-module-dir=/%{_lib}/security | |
117 | %{__make} | |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %{__make} install \ | |
123 | DESTDIR=$RPM_BUILD_ROOT | |
124 | ||
125 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} | |
126 | ||
127 | %find_lang polkit-1 | |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post libs -p /sbin/ldconfig | |
133 | %postun libs -p /sbin/ldconfig | |
134 | ||
135 | %files -f polkit-1.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS README | |
138 | %attr(755,root,root) %{_bindir}/pkaction | |
139 | %attr(755,root,root) %{_bindir}/pkcheck | |
140 | %attr(4755,root,root) %{_bindir}/pkexec | |
141 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 | |
0c630415 | 142 | %attr(755,root,root) %{_libexecdir}/polkitd |
a5863912 PZ |
143 | %dir %{_libdir}/polkit-1 |
144 | %dir %{_libdir}/polkit-1/extensions | |
0c630415 PZ |
145 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libnullbackend.so |
146 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpkexec-action-lookup.so | |
a5863912 PZ |
147 | %dir %{_sysconfdir}/polkit-1 |
148 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
149 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
041ba5a3 MB |
150 | %attr(700,root,root) %dir %{_sysconfdir}/polkit-1/localauthority |
151 | %dir %{_sysconfdir}/polkit-1/localauthority/10-vendor.d | |
152 | %dir %{_sysconfdir}/polkit-1/localauthority/20-org.d | |
153 | %dir %{_sysconfdir}/polkit-1/localauthority/30-site.d | |
154 | %dir %{_sysconfdir}/polkit-1/localauthority/50-local.d | |
155 | %dir %{_sysconfdir}/polkit-1/localauthority/90-mandatory.d | |
a5863912 PZ |
156 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d |
157 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
158 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
159 | /etc/pam.d/polkit-1 | |
160 | %{_datadir}/polkit-1 | |
161 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
162 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
041ba5a3 MB |
163 | %dir /var/lib/polkit-1/localauthority |
164 | %dir /var/lib/polkit-1/localauthority/10-vendor.d | |
165 | %dir /var/lib/polkit-1/localauthority/20-org.d | |
166 | %dir /var/lib/polkit-1/localauthority/30-site.d | |
167 | %dir /var/lib/polkit-1/localauthority/50-local.d | |
168 | %dir /var/lib/polkit-1/localauthority/90-mandatory.d | |
a5863912 PZ |
169 | %{_mandir}/man1/pkaction.1* |
170 | %{_mandir}/man1/pkcheck.1* | |
171 | %{_mandir}/man1/pkexec.1* | |
0c630415 PZ |
172 | %{_mandir}/man8/pklocalauthority.8* |
173 | %{_mandir}/man8/polkit.8* | |
174 | %{_mandir}/man8/polkitd.8* | |
a5863912 | 175 | |
14eed758 | 176 | %if %{with apidocs} |
a5863912 PZ |
177 | %files apidocs |
178 | %defattr(644,root,root,755) | |
179 | %{_gtkdocdir}/polkit-1 | |
14eed758 | 180 | %endif |
a5863912 PZ |
181 | |
182 | %files libs | |
183 | %defattr(644,root,root,755) | |
184 | # notes which license applies to which package part, AFL text (and GPL text copy) | |
185 | %doc COPYING | |
186 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.* | |
187 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0 | |
188 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.* | |
189 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0 | |
190 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.* | |
191 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0 | |
a91c2820 | 192 | %{_libdir}/girepository-1.0/Polkit-1.0.typelib |
a5863912 PZ |
193 | |
194 | %files devel | |
195 | %defattr(644,root,root,755) | |
a5863912 PZ |
196 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so |
197 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so | |
198 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so | |
199 | %{_libdir}/libpolkit-agent-1.la | |
200 | %{_libdir}/libpolkit-backend-1.la | |
201 | %{_libdir}/libpolkit-gobject-1.la | |
202 | %{_includedir}/polkit-1 | |
203 | %{_pkgconfigdir}/polkit-agent-1.pc | |
204 | %{_pkgconfigdir}/polkit-backend-1.pc | |
205 | %{_pkgconfigdir}/polkit-gobject-1.pc | |
a91c2820 | 206 | %{_datadir}/gir-1.0/Polkit-1.0.gir |
a5863912 PZ |
207 | |
208 | %files static | |
209 | %defattr(644,root,root,755) | |
210 | %{_libdir}/libpolkit-agent-1.a | |
211 | %{_libdir}/libpolkit-backend-1.a | |
212 | %{_libdir}/libpolkit-gobject-1.a |