]>
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 |
485bcc8b | 24 | BuildRequires: gobject-introspection-devel |
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 | |
df23ce59 | 101 | %{__intltoolize} |
a5863912 PZ |
102 | %{__libtoolize} |
103 | %{__aclocal} | |
104 | %{__autoconf} | |
105 | %{__autoheader} | |
106 | %{__automake} | |
107 | %configure \ | |
14eed758 | 108 | --%{!?with_apidocs:dis}%{?with_apidocs:en}able-gtk-doc \ |
a5863912 PZ |
109 | --with-html-dir=%{_gtkdocdir} \ |
110 | --with-pam-include=system-auth \ | |
111 | --with-pam-module-dir=/%{_lib}/security | |
112 | %{__make} | |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} | |
121 | ||
122 | %find_lang polkit-1 | |
123 | ||
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post libs -p /sbin/ldconfig | |
128 | %postun libs -p /sbin/ldconfig | |
129 | ||
130 | %files -f polkit-1.lang | |
131 | %defattr(644,root,root,755) | |
132 | %doc AUTHORS README | |
133 | %attr(755,root,root) %{_bindir}/pkaction | |
134 | %attr(755,root,root) %{_bindir}/pkcheck | |
135 | %attr(4755,root,root) %{_bindir}/pkexec | |
136 | %attr(4755,root,root) %{_libexecdir}/polkit-agent-helper-1 | |
0c630415 | 137 | %attr(755,root,root) %{_libexecdir}/polkitd |
a5863912 PZ |
138 | %dir %{_libdir}/polkit-1 |
139 | %dir %{_libdir}/polkit-1/extensions | |
0c630415 PZ |
140 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libnullbackend.so |
141 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpkexec-action-lookup.so | |
a5863912 PZ |
142 | %dir %{_sysconfdir}/polkit-1 |
143 | %dir %{_sysconfdir}/polkit-1/localauthority.conf.d | |
144 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/localauthority.conf.d/*.conf | |
145 | %dir %{_sysconfdir}/polkit-1/nullbackend.conf.d | |
146 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/polkit-1/nullbackend.conf.d/*.conf | |
147 | /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf | |
148 | /etc/pam.d/polkit-1 | |
149 | %{_datadir}/polkit-1 | |
150 | %{_datadir}/dbus-1/system-services/org.freedesktop.PolicyKit1.service | |
151 | %attr(700,root,root) %dir /var/lib/polkit-1 | |
152 | %{_mandir}/man1/pkaction.1* | |
153 | %{_mandir}/man1/pkcheck.1* | |
154 | %{_mandir}/man1/pkexec.1* | |
0c630415 PZ |
155 | %{_mandir}/man8/pklocalauthority.8* |
156 | %{_mandir}/man8/polkit.8* | |
157 | %{_mandir}/man8/polkitd.8* | |
a5863912 | 158 | |
14eed758 | 159 | %if %{with apidocs} |
a5863912 PZ |
160 | %files apidocs |
161 | %defattr(644,root,root,755) | |
162 | %{_gtkdocdir}/polkit-1 | |
14eed758 | 163 | %endif |
a5863912 PZ |
164 | |
165 | %files libs | |
166 | %defattr(644,root,root,755) | |
167 | # notes which license applies to which package part, AFL text (and GPL text copy) | |
168 | %doc COPYING | |
169 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-agent-1.so.0 | |
171 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-backend-1.so.0 | |
173 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so.*.*.* | |
174 | %attr(755,root,root) %ghost %{_libdir}/libpolkit-gobject-1.so.0 | |
485bcc8b | 175 | %{_libdir}/girepository-1.0/*.typelib |
a5863912 PZ |
176 | |
177 | %files devel | |
178 | %defattr(644,root,root,755) | |
a5863912 PZ |
179 | %attr(755,root,root) %{_libdir}/libpolkit-agent-1.so |
180 | %attr(755,root,root) %{_libdir}/libpolkit-backend-1.so | |
181 | %attr(755,root,root) %{_libdir}/libpolkit-gobject-1.so | |
182 | %{_libdir}/libpolkit-agent-1.la | |
183 | %{_libdir}/libpolkit-backend-1.la | |
184 | %{_libdir}/libpolkit-gobject-1.la | |
185 | %{_includedir}/polkit-1 | |
186 | %{_pkgconfigdir}/polkit-agent-1.pc | |
187 | %{_pkgconfigdir}/polkit-backend-1.pc | |
188 | %{_pkgconfigdir}/polkit-gobject-1.pc | |
485bcc8b | 189 | %{_datadir}/gir-1.0/*.gir |
a5863912 PZ |
190 | |
191 | %files static | |
192 | %defattr(644,root,root,755) | |
193 | %{_libdir}/libpolkit-agent-1.a | |
194 | %{_libdir}/libpolkit-backend-1.a | |
195 | %{_libdir}/libpolkit-gobject-1.a |