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