]>
Commit | Line | Data |
---|---|---|
d05d9108 MB |
1 | # TODO: |
2 | # - BASH command-not-found functionality disabled for now as it needs patched bash | |
3 | # (details in bash from Fedora Rawhide) | |
4 | # - package browser plugin | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_without qt # don't build packagekit-qt library | |
9b8153ef | 8 | %bcond_without doc # build without docs |
d05d9108 | 9 | # |
85d27e4f JB |
10 | Summary: System daemon that is a D-Bus abstraction layer for package management |
11 | Summary(pl.UTF-8): Demon systemowy będący warstwą abstrakcji D-Bus do zarządzania pakietami | |
a2d83637 | 12 | Name: PackageKit |
4d99f546 | 13 | Version: 0.6.1 |
4c95b1f9 | 14 | Release: 2 |
a2d83637 | 15 | License: GPL v2+ |
85d27e4f | 16 | Group: Applications/System |
74872af2 | 17 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.bz2 |
4d99f546 | 18 | # Source0-md5: d3835290e88e534a60ca18bd4efa0479 |
d05d9108 | 19 | Patch1: %{name}-PLD.patch |
36ca2380 | 20 | Patch2: bashism.patch |
a2d83637 MB |
21 | URL: http://www.packagekit.org/ |
22 | BuildRequires: NetworkManager-devel >= 0.6.5 | |
d05d9108 MB |
23 | %if %{with qt} |
24 | BuildRequires: QtCore-devel >= 4.4.0 | |
25 | BuildRequires: QtDBus-devel >= 4.4.0 | |
26 | BuildRequires: QtGui-devel >= 4.4.0 | |
27e89cfe MB |
27 | BuildRequires: QtSql-devel >= 4.4.0 |
28 | BuildRequires: QtXml-devel >= 4.4.0 | |
d05d9108 | 29 | %endif |
600be41c | 30 | BuildRequires: autoconf >= 2.65 |
a2d83637 | 31 | BuildRequires: automake |
d05d9108 | 32 | %{?with_qt:BuildRequires: cppunit-devel} |
6808f644 | 33 | BuildRequires: dbus-devel >= 1.2.0 |
f5f5e3ff | 34 | BuildRequires: dbus-glib-devel >= 0.76 |
bdd8c0ca | 35 | BuildRequires: docbook-dtd412-xml |
36 | BuildRequires: docbook-dtd42-xml | |
a2d83637 | 37 | BuildRequires: gettext-devel |
9ed4ca79 | 38 | BuildRequires: glib2-devel >= 1:2.22.0 |
d05d9108 MB |
39 | BuildRequires: gstreamer-plugins-base-devel |
40 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
9b8153ef | 41 | %{?with_doc:BuildRequires: gtk-doc >= 1.9} |
d05d9108 | 42 | BuildRequires: intltool >= 0.35.0 |
78293e06 | 43 | BuildRequires: libarchive-devel |
a2d83637 MB |
44 | BuildRequires: libtool |
45 | BuildRequires: pkgconfig | |
bdd8c0ca | 46 | BuildRequires: pm-utils |
ab6f5cbf | 47 | BuildRequires: poldek-devel >= 0.30-0.20080820.23.20 |
9ed4ca79 | 48 | BuildRequires: polkit-devel >= 0.92 |
a2d83637 | 49 | BuildRequires: python-devel |
d05d9108 | 50 | %{?with_qt:BuildRequires: qt4-build >= 4.4.0} |
bdd8c0ca | 51 | BuildRequires: readline-devel |
a2d83637 | 52 | BuildRequires: rpm-pythonprov |
85d27e4f | 53 | BuildRequires: rpmbuild(macros) >= 1.311 |
a2d83637 | 54 | BuildRequires: sqlite3-devel |
9ed4ca79 | 55 | BuildRequires: udev-glib-devel |
bdd8c0ca | 56 | BuildRequires: xorg-lib-libXt-devel |
d05d9108 | 57 | BuildRequires: xulrunner-devel |
fcd0bc5c | 58 | Requires(post,postun): shared-mime-info |
a2d83637 | 59 | Requires: %{name}-libs = %{version}-%{release} |
9ed4ca79 | 60 | Requires: ConsoleKit |
8d48627e | 61 | Requires: crondaemon |
ab6f5cbf | 62 | Requires: poldek >= 0.30-0.20080820.23.20 |
9ed4ca79 | 63 | Requires: polkit >= 0.92 |
a2d83637 MB |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
66 | %description | |
67 | PackageKit is a D-Bus abstraction layer that allows the session user | |
68 | to manage packages in a secure way using a cross-distro, | |
69 | cross-architecture API. | |
70 | ||
85d27e4f JB |
71 | %description -l pl.UTF-8 |
72 | PackageKit to warstwa abstrakcji D-Bus pozwalająca użytkownikowi | |
73 | sesyjnemu w bezpieczny sposob zarządzać pakietami przy użyciu API | |
74 | zgodnego z wieloma dystrybucjami i architekturami. | |
75 | ||
a2d83637 | 76 | %package libs |
d05d9108 MB |
77 | Summary: packagekit-glib library |
78 | Summary(pl.UTF-8): Biblioteka packagekit-glib | |
a2d83637 | 79 | Group: Libraries |
9ed4ca79 | 80 | Requires: glib2 >= 1:2.22.0 |
a2d83637 MB |
81 | |
82 | %description libs | |
d05d9108 | 83 | packagekit-glib library. |
a2d83637 MB |
84 | |
85 | %description libs -l pl.UTF-8 | |
d05d9108 | 86 | Biblioteka packagekit-glib. |
a2d83637 MB |
87 | |
88 | %package devel | |
d05d9108 MB |
89 | Summary: Header files for packagekit-glib library |
90 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki packagekit-glib | |
a2d83637 MB |
91 | Group: Development/Libraries |
92 | Requires: %{name}-libs = %{version}-%{release} | |
9ed4ca79 MB |
93 | Requires: dbus-devel >= 1.2.0 |
94 | Requires: glib2-devel >= 1:2.22.0 | |
95 | Requires: sqlite3-devel | |
a2d83637 MB |
96 | |
97 | %description devel | |
d05d9108 | 98 | Header files for packagekit-glib library. |
a2d83637 MB |
99 | |
100 | %description devel -l pl.UTF-8 | |
d05d9108 | 101 | Pliki nagłówkowe biblioteki packagekit-glib. |
a2d83637 MB |
102 | |
103 | %package static | |
d05d9108 MB |
104 | Summary: Static packagekit-glib library |
105 | Summary(pl.UTF-8): Statyczna biblioteka packagekit-glib | |
a2d83637 MB |
106 | Group: Development/Libraries |
107 | Requires: %{name}-devel = %{version}-%{release} | |
108 | ||
109 | %description static | |
d05d9108 | 110 | Static packagekit-glib library. |
a2d83637 MB |
111 | |
112 | %description static -l pl.UTF-8 | |
d05d9108 MB |
113 | Statyczna biblioteka packagekit-glib. |
114 | ||
115 | %package qt | |
116 | Summary: packagekit-qt library | |
117 | Summary(pl.UTF-8): Biblioteka packagekit-qt | |
118 | Group: Libraries | |
119 | Obsoletes: qpackagekit | |
120 | ||
121 | %description qt | |
122 | packagekit-qt library. | |
123 | ||
124 | %description qt -l pl.UTF-8 | |
125 | Biblioteka packagekit-qt. | |
126 | ||
127 | %package qt-devel | |
128 | Summary: Header files for packagekit-qt library | |
129 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki packagekit-qt | |
130 | Group: Development/Libraries | |
131 | Requires: %{name}-qt = %{version}-%{release} | |
27e89cfe MB |
132 | Requires: QtCore-devel >= 4.4.0 |
133 | Requires: QtDBus-devel >= 4.4.0 | |
134 | Requires: QtGui-devel >= 4.4.0 | |
135 | Requires: QtSql-devel >= 4.4.0 | |
136 | Requires: QtXml-devel >= 4.4.0 | |
d05d9108 MB |
137 | Obsoletes: qpackagekit-devel |
138 | ||
139 | %description qt-devel | |
140 | Header files for packagekit-qt library. | |
141 | ||
142 | %description qt-devel -l pl.UTF-8 | |
143 | Pliki nagłówkowe biblioteki packagekit-qt. | |
144 | ||
145 | %package qt-static | |
146 | Summary: Static packagekit-qt library | |
147 | Summary(pl.UTF-8): Statyczna biblioteka packagekit-qt | |
148 | Group: Development/Libraries | |
149 | Requires: %{name}-qt-devel = %{version}-%{release} | |
150 | ||
151 | %description qt-static | |
152 | Static packagekit-qt library. | |
153 | ||
154 | %description qt-static -l pl.UTF-8 | |
155 | Statyczna biblioteka packagekit-qt. | |
a2d83637 MB |
156 | |
157 | %package apidocs | |
158 | Summary: PackageKit library API documentation | |
159 | Summary(pl.UTF-8): Dokumentacja API biblioteki PackageKit | |
160 | Group: Documentation | |
161 | Requires: gtk-doc-common | |
162 | ||
163 | %description apidocs | |
164 | PackageKit library API documentation. | |
165 | ||
166 | %description apidocs -l pl.UTF-8 | |
167 | Dokumentacja API biblioteki PackageKit. | |
168 | ||
d05d9108 MB |
169 | %package docs |
170 | Summary: PackageKit documentation | |
171 | Summary(pl.UTF-8): Dokumentacja PackageKit | |
172 | Group: Documentation | |
173 | ||
174 | %description docs | |
175 | PackageKit documentation. | |
176 | ||
177 | %description docs -l pl.UTF-8 | |
178 | Dokumentacja PackageKit. | |
179 | ||
180 | %package gstreamer-plugin | |
181 | Summary: GStreamer codecs installer | |
182 | Summary(pl.UTF-8): Instalator kodeków GStreamera | |
183 | Group: Applications | |
184 | Requires: %{name} = %{version}-%{release} | |
5baab3aa | 185 | Requires: %{name}-gtk-module = %{version}-%{release} |
d05d9108 MB |
186 | |
187 | %description gstreamer-plugin | |
188 | The PackageKit GStreamer plugin allows any GStreamer application to | |
189 | install codecs from configured repositories using PackageKit. | |
190 | ||
191 | %description gstreamer-plugin -l pl.UTF-8 | |
192 | Wtyczka GStreamer pozwala każdej aplikacji używającej GStreamera | |
193 | zainstalować kodeki ze skonfigurowanych źródeł PackageKit. | |
194 | ||
195 | %package gtk-module | |
196 | Summary: GTK+ module to detect and install missing fonts | |
197 | Summary(pl.UTF-8): Moduł GTK+ do wykrywania i instalowania brakujących czcionek | |
198 | Group: X11/Libraries | |
199 | ||
200 | %description gtk-module | |
201 | The PackageKit GTK+ module allows any pango application to install | |
202 | missing fonts from configured repositories using PackageKit. | |
203 | ||
204 | %description gtk-module -l pl.UTF-8 | |
205 | Moduł GTK+ pozwala każdej aplikacji używającej pango zainstalować | |
206 | brakującą czcionkę ze skonfigurowanych źródeł PackageKit. | |
207 | ||
a2d83637 MB |
208 | %package -n bash-completion-packagekit |
209 | Summary: bash-completion for PackageKit | |
210 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla PackageKit | |
211 | Group: Applications/Shells | |
212 | Requires: bash-completion | |
213 | ||
214 | %description -n bash-completion-packagekit | |
215 | This package provides bash-completion for PackageKit. | |
216 | ||
217 | %description -n bash-completion-packagekit -l pl.UTF-8 | |
218 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla PackageKit. | |
219 | ||
220 | %package -n pm-utils-packagekit | |
221 | Summary: PackageKit script for pm-utils | |
85d27e4f | 222 | Summary(pl.UTF-8): Skrypt PackageKit dla pm-utils |
a2d83637 MB |
223 | Group: Applications/System |
224 | Requires: pm-utils | |
225 | ||
226 | %description -n pm-utils-packagekit | |
227 | PackageKit script for pm-utils. | |
228 | ||
85d27e4f JB |
229 | %description -n pm-utils-packagekit -l pl.UTF-8 |
230 | Skrypt PackageKit dla pm-utils. | |
231 | ||
a2d83637 MB |
232 | %package -n python-packagekit |
233 | Summary: PackageKit Python bindings | |
234 | Summary(pl.UTF-8): Wiązania PackageKit dla Pythona | |
235 | Group: Development/Languages/Python | |
236 | Requires: python-dbus | |
237 | Requires: python-pygobject | |
238 | ||
239 | %description -n python-packagekit | |
240 | PackageKit Python bindings. | |
241 | ||
242 | %description -n python-packagekit | |
243 | Wiązania PackageKit dla Pythona. | |
244 | ||
245 | %prep | |
246 | %setup -q | |
d05d9108 | 247 | %patch1 -p1 |
36ca2380 | 248 | %patch2 -p1 |
a2d83637 MB |
249 | |
250 | %build | |
9b8153ef | 251 | %if %{with doc} |
d05d9108 | 252 | %{__gtkdocize} |
d5617342 | 253 | %endif |
58e98be4 | 254 | %{__intltoolize} |
a2d83637 | 255 | %{__libtoolize} |
d05d9108 | 256 | %{__aclocal} -I m4 |
a2d83637 MB |
257 | %{__autoconf} |
258 | %{__autoheader} | |
259 | %{__automake} | |
260 | %configure \ | |
d05d9108 MB |
261 | --disable-dummy \ |
262 | --disable-ruck \ | |
263 | --disable-command-not-found \ | |
a2d83637 | 264 | --enable-poldek \ |
9b8153ef | 265 | --%{!?with_doc:dis}%{?with_doc:en}able-gtk-doc \ |
d05d9108 | 266 | --%{?with_qt:en}%{!?with_qt:dis}able-qt \ |
fcd0bc5c MB |
267 | --with-html-dir=%{_gtkdocdir} \ |
268 | --with-default-backend=poldek | |
a2d83637 MB |
269 | %{__make} |
270 | ||
271 | %install | |
272 | rm -rf $RPM_BUILD_ROOT | |
273 | ||
274 | %{__make} install \ | |
275 | DESTDIR=$RPM_BUILD_ROOT | |
276 | ||
d05d9108 MB |
277 | # use pk-gstreamer-install as codec installer |
278 | ln -s pk-gstreamer-install $RPM_BUILD_ROOT%{_libdir}/gst-install-plugins-helper | |
279 | ||
684bfa1d | 280 | install -d $RPM_BUILD_ROOT%{_libdir}/pm-utils/sleep.d |
281 | cp contrib/pm-utils/95packagekit $RPM_BUILD_ROOT%{_libdir}/pm-utils/sleep.d/ | |
282 | ||
d05d9108 MB |
283 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a} |
284 | rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.{la,a} | |
a2d83637 | 285 | rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.{la,a} |
d05d9108 | 286 | rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/libpk_backend_test_*.so |
f058dba9 | 287 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} |
d05d9108 MB |
288 | rm -f $RPM_BUILD_ROOT%{_libdir}/PackageKitDbusTest.py |
289 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit{Apt,Test}Backend.conf | |
290 | rm -f $RPM_BUILD_ROOT%{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit{Apt,Test}Backend.service | |
291 | rm -rf $RPM_BUILD_ROOT%{_datadir}/PackageKit/helpers/test_spawn | |
a2d83637 MB |
292 | |
293 | %py_postclean | |
294 | ||
6808f644 MB |
295 | %find_lang %{name} |
296 | ||
a2d83637 MB |
297 | %clean |
298 | rm -rf $RPM_BUILD_ROOT | |
299 | ||
fcd0bc5c MB |
300 | %post |
301 | %update_mime_database | |
302 | ||
303 | %postun | |
304 | %update_mime_database | |
305 | ||
85d27e4f | 306 | %post libs -p /sbin/ldconfig |
a2d83637 MB |
307 | %postun libs -p /sbin/ldconfig |
308 | ||
d05d9108 MB |
309 | %post qt -p /sbin/ldconfig |
310 | %postun qt -p /sbin/ldconfig | |
311 | ||
6808f644 | 312 | %files -f %{name}.lang |
a2d83637 MB |
313 | %defattr(644,root,root,755) |
314 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
315 | %attr(755,root,root) %{_bindir}/packagekit-bugreport.sh | |
a2d83637 | 316 | %attr(755,root,root) %{_bindir}/pkcon |
78293e06 | 317 | %attr(755,root,root) %{_bindir}/pkgenpack |
a2d83637 | 318 | %attr(755,root,root) %{_bindir}/pkmon |
a382d619 | 319 | %attr(755,root,root) %{_bindir}/pk-debuginfo-install |
8d48627e | 320 | %attr(750,root,root) /etc/cron.daily/packagekit-background.cron |
a2d83637 MB |
321 | %dir %{_libdir}/packagekit-backend |
322 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so | |
f058dba9 | 323 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpackagekit-action-lookup.so |
a2d83637 | 324 | %attr(755,root,root) %{_sbindir}/packagekitd |
9ed4ca79 | 325 | %attr(755,root,root) %{_sbindir}/pk-device-rebind |
a2d83637 MB |
326 | %dir %{_sysconfdir}/PackageKit |
327 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/PackageKit.conf | |
d05d9108 | 328 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Vendor.conf |
5baab3aa ER |
329 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/packagekit-background |
330 | /etc/dbus-1/system.d/org.freedesktop.PackageKit.conf | |
d05d9108 MB |
331 | %dir %{_datadir}/PackageKit |
332 | %attr(755,root,root) %{_datadir}/PackageKit/pk-upgrade-distro.sh | |
f058dba9 | 333 | %{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy |
a2d83637 | 334 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
d05d9108 | 335 | %{_datadir}/mime/packages/packagekit-catalog.xml |
08c67dac | 336 | %{_datadir}/mime/packages/packagekit-package-list.xml |
337 | %{_datadir}/mime/packages/packagekit-servicepack.xml | |
a2d83637 | 338 | %{_mandir}/man1/pkcon.1* |
f058dba9 | 339 | %{_mandir}/man1/pk-debuginfo-install.1* |
9ed4ca79 | 340 | %{_mandir}/man1/pk-device-rebind.1* |
78293e06 MB |
341 | %{_mandir}/man1/pkgenpack.1* |
342 | %{_mandir}/man1/pkmon.1* | |
343 | %dir /var/cache/PackageKit | |
344 | %dir /var/cache/PackageKit/downloads | |
a2d83637 | 345 | %dir /var/lib/PackageKit |
d05d9108 | 346 | %ghost /var/lib/PackageKit/transactions.db |
a2d83637 MB |
347 | |
348 | %files libs | |
349 | %defattr(644,root,root,755) | |
74872af2 | 350 | %attr(755,root,root) %{_libdir}/libpackagekit-glib2.so.*.*.* |
684bfa1d | 351 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-glib2.so.13 |
08c67dac | 352 | |
a2d83637 MB |
353 | %files devel |
354 | %defattr(644,root,root,755) | |
74872af2 | 355 | %attr(755,root,root) %{_libdir}/libpackagekit-glib2.so |
74872af2 | 356 | %{_libdir}/libpackagekit-glib2.la |
74872af2 | 357 | %{_pkgconfigdir}/packagekit-glib2.pc |
d05d9108 MB |
358 | %dir %{_includedir}/PackageKit |
359 | %{_includedir}/PackageKit/backend | |
74872af2 | 360 | %{_includedir}/PackageKit/packagekit-glib2 |
08c67dac | 361 | |
a2d83637 MB |
362 | %files static |
363 | %defattr(644,root,root,755) | |
74872af2 | 364 | %{_libdir}/libpackagekit-glib2.a |
d05d9108 | 365 | |
5424bc1f | 366 | %if %{with qt} |
d05d9108 MB |
367 | %files qt |
368 | %defattr(644,root,root,755) | |
369 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so.*.*.* | |
684bfa1d | 370 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-qt.so.13 |
d05d9108 MB |
371 | |
372 | %files qt-devel | |
373 | %defattr(644,root,root,755) | |
374 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so | |
375 | %{_libdir}/libpackagekit-qt.la | |
376 | %{_pkgconfigdir}/packagekit-qt.pc | |
377 | %{_includedir}/PackageKit/packagekit-qt | |
378 | %{_datadir}/cmake/Modules/FindQPackageKit.cmake | |
379 | ||
380 | %files qt-static | |
381 | %defattr(644,root,root,755) | |
08c67dac | 382 | %{_libdir}/libpackagekit-qt.a |
5424bc1f | 383 | %endif |
a2d83637 MB |
384 | |
385 | %files apidocs | |
386 | %defattr(644,root,root,755) | |
387 | %{_gtkdocdir}/PackageKit | |
388 | ||
d05d9108 MB |
389 | %files docs |
390 | %defattr(644,root,root,755) | |
391 | %{_datadir}/PackageKit/website | |
392 | ||
393 | %files gstreamer-plugin | |
394 | %defattr(644,root,root,755) | |
395 | %doc contrib/gstreamer-plugin/README | |
396 | %attr(755,root,root) %{_libdir}/gst-install-plugins-helper | |
397 | %attr(755,root,root) %{_libdir}/pk-gstreamer-install | |
398 | ||
399 | %files gtk-module | |
400 | %defattr(644,root,root,755) | |
401 | %doc contrib/gtk-module/{GLASS.txt,README} | |
402 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libpk-gtk-module.so | |
403 | ||
a2d83637 MB |
404 | %files -n bash-completion-packagekit |
405 | %defattr(644,root,root,755) | |
406 | %{_sysconfdir}/bash_completion.d/pk-completion.bash | |
407 | ||
408 | %files -n pm-utils-packagekit | |
409 | %defattr(644,root,root,755) | |
d05d9108 | 410 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/95packagekit |
a2d83637 MB |
411 | |
412 | %files -n python-packagekit | |
413 | %defattr(644,root,root,755) | |
414 | %dir %{py_sitescriptdir}/packagekit | |
415 | %{py_sitescriptdir}/packagekit/*.py[co] |