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