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