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