]>
Commit | Line | Data |
---|---|---|
14eed758 BZ |
1 | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # build without apidocs | |
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 | |
0c630415 | 8 | Version: 0.93 |
a5863912 PZ |
9 | Release: 1 |
10 | License: LGPL v2+ | |
11 | Group: Libraries | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
0c630415 | 13 | # Source0-md5: 16e9361b6c8dbbecc29ee263d7880998 |
a5863912 PZ |
14 | URL: http://people.freedesktop.org/~david/polkit-spec.html |
15 | BuildRequires: autoconf >= 2.60 | |
16 | BuildRequires: automake >= 1:1.7 | |
df23ce59 | 17 | BuildRequires: eggdbus-devel >= 0.4 |
a5863912 | 18 | BuildRequires: expat-devel >= 1:1.95.8 |
df23ce59 | 19 | BuildRequires: gettext-devel |
14eed758 BZ |
20 | BuildRequires: glib2-devel >= 1:2.21.4 |
21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} | |
df23ce59 | 22 | BuildRequires: intltool >= 0.40.0 |
a5863912 PZ |
23 | BuildRequires: libtool |
24 | BuildRequires: pam-devel >= 0.80 | |
25 | BuildRequires: pkgconfig | |
a5863912 PZ |
26 | Requires: %{name}-libs = %{version}-%{release} |
27 | Requires: ConsoleKit >= 0.2.1 | |
28 | Requires: dbus >= 1.1.2-5 | |
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 | ||
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. | |
39 | ||
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 | ||
52 | %package libs | |
53 | Summary: PolicyKit libraries | |
54 | Summary(pl.UTF-8): Biblioteki PolicyKit | |
55 | Group: Libraries | |
df23ce59 MB |
56 | Requires: dbus-libs >= 1.1.2-5 |
57 | Requires: glib2 >= 1:2.18.0 | |
a5863912 PZ |
58 | Conflicts: PolicyKit < 0.1-0.20061203.6 |
59 | ||
60 | %description libs | |
61 | PolicyKit libraries. | |
62 | ||
63 | %description libs -l pl.UTF-8 | |
64 | Biblioteki PolicyKit. | |
65 | ||
66 | %package devel | |
67 | Summary: Header files for PolicyKit | |
68 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-libs = %{version}-%{release} | |
71 | Requires: expat-devel >= 1:1.95.8 | |
df23ce59 | 72 | Requires: glib2-devel >= 1:2.18.0 |
a5863912 PZ |
73 | |
74 | %description devel | |
75 | Header files for PolicyKit. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe PolicyKit. | |
79 | ||
80 | %package static | |
81 | Summary: Static PolicyKit libraries | |
82 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | Static PolicyKit libraries. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczne biblioteki PolicyKit. | |
91 | ||
92 | %prep | |
93 | %setup -q | |
94 | ||
95 | %build | |
df23ce59 | 96 | %{__intltoolize} |
a5863912 PZ |
97 | %{__libtoolize} |
98 | %{__aclocal} | |
99 | %{__autoconf} | |
100 | %{__autoheader} | |
101 | %{__automake} | |
102 | %configure \ | |
14eed758 | 103 | --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \ |
a5863912 PZ |
104 | --with-html-dir=%{_gtkdocdir} \ |
105 | --with-pam-include=system-auth \ | |
106 | --with-pam-module-dir=/%{_lib}/security | |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
115 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} | |
116 | ||
117 | %find_lang polkit-1 | |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post libs -p /sbin/ldconfig | |
123 | %postun libs -p /sbin/ldconfig | |
124 | ||
125 | %files -f polkit-1.lang | |
126 | %defattr(644,root,root,755) | |
127 | %doc AUTHORS README | |
128 | %attr(755,root,root) %{_bindir}/pkaction | |
129 | %attr(755,root,root) %{_bindir}/pkcheck | |
130 | %attr(4755,root,root) %{_bindir}/pkexec | |
131 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 | |
0c630415 | 132 | %attr(755,root,root) %{_libexecdir}/polkitd |
a5863912 PZ |
133 | %dir %{_libdir}/polkit-1 |
134 | %dir %{_libdir}/polkit-1/extensions | |
0c630415 PZ |
135 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libnullbackend.so |
136 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpkexec-action-lookup.so | |
a5863912 PZ |
137 | %dir %{_sysconfdir}/polkit-1 |
138 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
139 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
140 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d | |
141 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
142 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
143 | /etc/pam.d/polkit-1 | |
144 | %{_datadir}/polkit-1 | |
145 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
146 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
147 | %{_mandir}/man1/pkaction.1* | |
148 | %{_mandir}/man1/pkcheck.1* | |
149 | %{_mandir}/man1/pkexec.1* | |
0c630415 PZ |
150 | %{_mandir}/man8/pklocalauthority.8* |
151 | %{_mandir}/man8/polkit.8* | |
152 | %{_mandir}/man8/polkitd.8* | |
a5863912 | 153 | |
14eed758 | 154 | %if %{with apidocs} |
a5863912 PZ |
155 | %files apidocs |
156 | %defattr(644,root,root,755) | |
157 | %{_gtkdocdir}/polkit-1 | |
14eed758 | 158 | %endif |
a5863912 PZ |
159 | |
160 | %files libs | |
161 | %defattr(644,root,root,755) | |
162 | # notes which license applies to which package part, AFL text (and GPL text copy) | |
163 | %doc COPYING | |
164 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.* | |
165 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0 | |
166 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.* | |
167 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0 | |
168 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.* | |
169 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0 | |
170 | ||
171 | %files devel | |
172 | %defattr(644,root,root,755) | |
173 | %attr(755,root,root) %{_bindir}/pk-example-frobnicate | |
174 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so | |
175 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so | |
176 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so | |
177 | %{_libdir}/libpolkit-agent-1.la | |
178 | %{_libdir}/libpolkit-backend-1.la | |
179 | %{_libdir}/libpolkit-gobject-1.la | |
180 | %{_includedir}/polkit-1 | |
181 | %{_pkgconfigdir}/polkit-agent-1.pc | |
182 | %{_pkgconfigdir}/polkit-backend-1.pc | |
183 | %{_pkgconfigdir}/polkit-gobject-1.pc | |
184 | ||
185 | %files static | |
186 | %defattr(644,root,root,755) | |
187 | %{_libdir}/libpolkit-agent-1.a | |
188 | %{_libdir}/libpolkit-backend-1.a | |
189 | %{_libdir}/libpolkit-gobject-1.a |