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