]>
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 | |
c2613d38 | 8 | Version: 0.95 |
9 | Release: 1 | |
a5863912 PZ |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
12 | Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz | |
c2613d38 | 13 | # Source0-md5: 10971f5d334550025897b02d779fddd1 |
a5863912 PZ |
14 | URL: http://people.freedesktop.org/~david/polkit-spec.html |
15 | BuildRequires: autoconf >= 2.60 | |
16 | BuildRequires: automake >= 1:1.7 | |
1528e92c | 17 | BuildRequires: docbook-dtd412-xml |
39a23f16 | 18 | BuildRequires: eggdbus-devel >= 0.6 |
a5863912 | 19 | BuildRequires: expat-devel >= 1:1.95.8 |
df23ce59 | 20 | BuildRequires: gettext-devel |
485bcc8b | 21 | BuildRequires: gir-repository-devel |
14eed758 | 22 | BuildRequires: glib2-devel >= 1:2.21.4 |
1528e92c | 23 | BuildRequires: glibc-misc |
e3a98c17 | 24 | BuildRequires: gobject-introspection-devel >= 0.6.2 |
14eed758 | 25 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.3} |
df23ce59 | 26 | BuildRequires: intltool >= 0.40.0 |
a5863912 PZ |
27 | BuildRequires: libtool |
28 | BuildRequires: pam-devel >= 0.80 | |
29 | BuildRequires: pkgconfig | |
1528e92c | 30 | BuildRequires: python-modules |
a5863912 | 31 | Requires: %{name}-libs = %{version}-%{release} |
2789bcb6 | 32 | Requires: ConsoleKit >= 0.4.1 |
a5863912 PZ |
33 | Requires: dbus >= 1.1.2-5 |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | PolicyKit is a framework for defining policy for system-wide | |
38 | components and for desktop pieces to configure it. It is used by HAL. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | PolicyKit to szkielet do definiowania polityki dla komponentów | |
42 | systemowych oraz składników pulpitu do konfigurowania ich. Jest | |
43 | używany przez HAL-a. | |
44 | ||
45 | %package apidocs | |
46 | Summary: PolicyKit API documentation | |
47 | Summary(pl.UTF-8): Dokumentacja API PolicyKit | |
48 | Group: Documentation | |
49 | Requires: gtk-doc-common | |
50 | ||
51 | %description apidocs | |
52 | PolicyKit API documentation. | |
53 | ||
54 | %description apidocs -l pl.UTF-8 | |
55 | Dokumentacja API PolicyKit. | |
56 | ||
57 | %package libs | |
58 | Summary: PolicyKit libraries | |
59 | Summary(pl.UTF-8): Biblioteki PolicyKit | |
60 | Group: Libraries | |
df23ce59 MB |
61 | Requires: dbus-libs >= 1.1.2-5 |
62 | Requires: glib2 >= 1:2.18.0 | |
a5863912 PZ |
63 | Conflicts: PolicyKit < 0.1-0.20061203.6 |
64 | ||
65 | %description libs | |
66 | PolicyKit libraries. | |
67 | ||
68 | %description libs -l pl.UTF-8 | |
69 | Biblioteki PolicyKit. | |
70 | ||
71 | %package devel | |
72 | Summary: Header files for PolicyKit | |
73 | Summary(pl.UTF-8): Pliki nagłówkowe PolicyKit | |
74 | Group: Development/Libraries | |
75 | Requires: %{name}-libs = %{version}-%{release} | |
76 | Requires: expat-devel >= 1:1.95.8 | |
df23ce59 | 77 | Requires: glib2-devel >= 1:2.18.0 |
a5863912 PZ |
78 | |
79 | %description devel | |
80 | Header files for PolicyKit. | |
81 | ||
82 | %description devel -l pl.UTF-8 | |
83 | Pliki nagłówkowe PolicyKit. | |
84 | ||
85 | %package static | |
86 | Summary: Static PolicyKit libraries | |
87 | Summary(pl.UTF-8): Statyczne biblioteki PolicyKit | |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | ||
91 | %description static | |
92 | Static PolicyKit libraries. | |
93 | ||
94 | %description static -l pl.UTF-8 | |
95 | Statyczne biblioteki PolicyKit. | |
96 | ||
97 | %prep | |
98 | %setup -q | |
99 | ||
100 | %build | |
e3a98c17 | 101 | %{__gtkdocize} |
df23ce59 | 102 | %{__intltoolize} |
a5863912 PZ |
103 | %{__libtoolize} |
104 | %{__aclocal} | |
105 | %{__autoconf} | |
106 | %{__autoheader} | |
107 | %{__automake} | |
108 | %configure \ | |
14eed758 | 109 | --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \ |
a5863912 PZ |
110 | --with-html-dir=%{_gtkdocdir} \ |
111 | --with-pam-include=system-auth \ | |
112 | --with-pam-module-dir=/%{_lib}/security | |
113 | %{__make} | |
114 | ||
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %{__make} install \ | |
119 | DESTDIR=$RPM_BUILD_ROOT | |
120 | ||
121 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} | |
122 | ||
123 | %find_lang polkit-1 | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post libs -p /sbin/ldconfig | |
129 | %postun libs -p /sbin/ldconfig | |
130 | ||
131 | %files -f polkit-1.lang | |
132 | %defattr(644,root,root,755) | |
133 | %doc AUTHORS README | |
134 | %attr(755,root,root) %{_bindir}/pkaction | |
135 | %attr(755,root,root) %{_bindir}/pkcheck | |
136 | %attr(4755,root,root) %{_bindir}/pkexec | |
137 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 | |
0c630415 | 138 | %attr(755,root,root) %{_libexecdir}/polkitd |
a5863912 PZ |
139 | %dir %{_libdir}/polkit-1 |
140 | %dir %{_libdir}/polkit-1/extensions | |
0c630415 PZ |
141 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libnullbackend.so |
142 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpkexec-action-lookup.so | |
a5863912 PZ |
143 | %dir %{_sysconfdir}/polkit-1 |
144 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
145 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
146 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d | |
147 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
148 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
149 | /etc/pam.d/polkit-1 | |
150 | %{_datadir}/polkit-1 | |
151 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
152 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
153 | %{_mandir}/man1/pkaction.1* | |
154 | %{_mandir}/man1/pkcheck.1* | |
155 | %{_mandir}/man1/pkexec.1* | |
0c630415 PZ |
156 | %{_mandir}/man8/pklocalauthority.8* |
157 | %{_mandir}/man8/polkit.8* | |
158 | %{_mandir}/man8/polkitd.8* | |
a5863912 | 159 | |
14eed758 | 160 | %if %{with apidocs} |
a5863912 PZ |
161 | %files apidocs |
162 | %defattr(644,root,root,755) | |
163 | %{_gtkdocdir}/polkit-1 | |
14eed758 | 164 | %endif |
a5863912 PZ |
165 | |
166 | %files libs | |
167 | %defattr(644,root,root,755) | |
168 | # notes which license applies to which package part, AFL text (and GPL text copy) | |
169 | %doc COPYING | |
170 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.* | |
171 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0 | |
172 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.* | |
173 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0 | |
174 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.* | |
175 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0 | |
485bcc8b | 176 | %{_libdir}/girepository-1.0/*.typelib |
a5863912 PZ |
177 | |
178 | %files devel | |
179 | %defattr(644,root,root,755) | |
a5863912 PZ |
180 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so |
181 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so | |
182 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so | |
183 | %{_libdir}/libpolkit-agent-1.la | |
184 | %{_libdir}/libpolkit-backend-1.la | |
185 | %{_libdir}/libpolkit-gobject-1.la | |
186 | %{_includedir}/polkit-1 | |
187 | %{_pkgconfigdir}/polkit-agent-1.pc | |
188 | %{_pkgconfigdir}/polkit-backend-1.pc | |
189 | %{_pkgconfigdir}/polkit-gobject-1.pc | |
485bcc8b | 190 | %{_datadir}/gir-1.0/*.gir |
a5863912 PZ |
191 | |
192 | %files static | |
193 | %defattr(644,root,root,755) | |
194 | %{_libdir}/libpolkit-agent-1.a | |
195 | %{_libdir}/libpolkit-backend-1.a | |
196 | %{_libdir}/libpolkit-gobject-1.a |