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