]>
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 |
f058dba9 | 12 | Version: 0.5.0 |
0caf22a5 | 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 |
f058dba9 | 17 | # Source0-md5: e4d442646be7a3a71ed3970ad551a645 |
d05d9108 | 18 | Patch1: %{name}-PLD.patch |
a2d83637 MB |
19 | URL: http://www.packagekit.org/ |
20 | BuildRequires: NetworkManager-devel >= 0.6.5 | |
d05d9108 MB |
21 | %if %{with qt} |
22 | BuildRequires: QtCore-devel >= 4.4.0 | |
23 | BuildRequires: QtDBus-devel >= 4.4.0 | |
24 | BuildRequires: QtGui-devel >= 4.4.0 | |
27e89cfe MB |
25 | BuildRequires: QtSql-devel >= 4.4.0 |
26 | BuildRequires: QtXml-devel >= 4.4.0 | |
d05d9108 | 27 | %endif |
a2d83637 MB |
28 | BuildRequires: autoconf >= 2.52 |
29 | BuildRequires: automake | |
d05d9108 | 30 | %{?with_qt:BuildRequires: cppunit-devel} |
6808f644 | 31 | BuildRequires: dbus-devel >= 1.2.0 |
f5f5e3ff | 32 | BuildRequires: dbus-glib-devel >= 0.76 |
c26aaa93 | 33 | BuildRequires: docbook-to-man |
a2d83637 | 34 | BuildRequires: gettext-devel |
6808f644 | 35 | BuildRequires: glib2-devel >= 1:2.16.1 |
d05d9108 MB |
36 | BuildRequires: gstreamer-plugins-base-devel |
37 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
a2d83637 | 38 | BuildRequires: gtk-doc >= 1.9 |
d05d9108 | 39 | BuildRequires: intltool >= 0.35.0 |
78293e06 | 40 | BuildRequires: libarchive-devel |
a2d83637 MB |
41 | BuildRequires: libtool |
42 | BuildRequires: pkgconfig | |
d05d9108 | 43 | BuildRequires: poldek-devel >= 0.30-0.20080820.23.20 |
f058dba9 | 44 | BuildRequires: polkit-devel |
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} | |
27e89cfe MB |
121 | Requires: QtCore-devel >= 4.4.0 |
122 | Requires: QtDBus-devel >= 4.4.0 | |
123 | Requires: QtGui-devel >= 4.4.0 | |
124 | Requires: QtSql-devel >= 4.4.0 | |
125 | Requires: QtXml-devel >= 4.4.0 | |
d05d9108 MB |
126 | Obsoletes: qpackagekit-devel |
127 | ||
128 | %description qt-devel | |
129 | Header files for packagekit-qt library. | |
130 | ||
131 | %description qt-devel -l pl.UTF-8 | |
132 | Pliki nagłówkowe biblioteki packagekit-qt. | |
133 | ||
134 | %package qt-static | |
135 | Summary: Static packagekit-qt library | |
136 | Summary(pl.UTF-8): Statyczna biblioteka packagekit-qt | |
137 | Group: Development/Libraries | |
138 | Requires: %{name}-qt-devel = %{version}-%{release} | |
139 | ||
140 | %description qt-static | |
141 | Static packagekit-qt library. | |
142 | ||
143 | %description qt-static -l pl.UTF-8 | |
144 | Statyczna biblioteka packagekit-qt. | |
a2d83637 MB |
145 | |
146 | %package apidocs | |
147 | Summary: PackageKit library API documentation | |
148 | Summary(pl.UTF-8): Dokumentacja API biblioteki PackageKit | |
149 | Group: Documentation | |
150 | Requires: gtk-doc-common | |
151 | ||
152 | %description apidocs | |
153 | PackageKit library API documentation. | |
154 | ||
155 | %description apidocs -l pl.UTF-8 | |
156 | Dokumentacja API biblioteki PackageKit. | |
157 | ||
d05d9108 MB |
158 | %package docs |
159 | Summary: PackageKit documentation | |
160 | Summary(pl.UTF-8): Dokumentacja PackageKit | |
161 | Group: Documentation | |
162 | ||
163 | %description docs | |
164 | PackageKit documentation. | |
165 | ||
166 | %description docs -l pl.UTF-8 | |
167 | Dokumentacja PackageKit. | |
168 | ||
169 | %package gstreamer-plugin | |
170 | Summary: GStreamer codecs installer | |
171 | Summary(pl.UTF-8): Instalator kodeków GStreamera | |
172 | Group: Applications | |
173 | Requires: %{name} = %{version}-%{release} | |
5baab3aa | 174 | Requires: %{name}-gtk-module = %{version}-%{release} |
d05d9108 MB |
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 | |
d05d9108 MB |
236 | %patch1 -p1 |
237 | mkdir m4 | |
a2d83637 MB |
238 | |
239 | %build | |
d05d9108 | 240 | %{__gtkdocize} |
58e98be4 | 241 | %{__intltoolize} |
a2d83637 | 242 | %{__libtoolize} |
d05d9108 | 243 | %{__aclocal} -I m4 |
a2d83637 MB |
244 | %{__autoconf} |
245 | %{__autoheader} | |
246 | %{__automake} | |
247 | %configure \ | |
d05d9108 MB |
248 | --disable-dummy \ |
249 | --disable-ruck \ | |
250 | --disable-command-not-found \ | |
a2d83637 | 251 | --enable-poldek \ |
d05d9108 | 252 | --%{?with_qt:en}%{!?with_qt:dis}able-qt \ |
fcd0bc5c MB |
253 | --with-html-dir=%{_gtkdocdir} \ |
254 | --with-default-backend=poldek | |
a2d83637 MB |
255 | %{__make} |
256 | ||
257 | %install | |
258 | rm -rf $RPM_BUILD_ROOT | |
259 | ||
260 | %{__make} install \ | |
261 | DESTDIR=$RPM_BUILD_ROOT | |
262 | ||
d05d9108 MB |
263 | # use pk-gstreamer-install as codec installer |
264 | ln -s pk-gstreamer-install $RPM_BUILD_ROOT%{_libdir}/gst-install-plugins-helper | |
265 | ||
266 | rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{la,a} | |
267 | rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.{la,a} | |
a2d83637 | 268 | rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.{la,a} |
d05d9108 | 269 | rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/libpk_backend_test_*.so |
f058dba9 | 270 | rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.{la,a} |
d05d9108 MB |
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 |
f058dba9 | 302 | %attr(755,root,root) %{_libexecdir}/pk-debuginfo-install |
8d48627e | 303 | %attr(750,root,root) /etc/cron.daily/packagekit-background.cron |
a2d83637 MB |
304 | %dir %{_libdir}/packagekit-backend |
305 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so | |
f058dba9 | 306 | %attr(755,root,root) %{_libdir}/polkit-1/extensions/libpackagekit-action-lookup.so |
a2d83637 MB |
307 | %attr(755,root,root) %{_sbindir}/packagekitd |
308 | %dir %{_sysconfdir}/PackageKit | |
309 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/PackageKit.conf | |
d05d9108 | 310 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Vendor.conf |
5baab3aa ER |
311 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/packagekit-background |
312 | /etc/dbus-1/system.d/org.freedesktop.PackageKit.conf | |
d05d9108 MB |
313 | %dir %{_datadir}/PackageKit |
314 | %attr(755,root,root) %{_datadir}/PackageKit/pk-upgrade-distro.sh | |
f058dba9 | 315 | %{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy |
a2d83637 | 316 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
d05d9108 | 317 | %{_datadir}/mime/packages/packagekit-catalog.xml |
08c67dac | 318 | %{_datadir}/mime/packages/packagekit-package-list.xml |
319 | %{_datadir}/mime/packages/packagekit-servicepack.xml | |
a2d83637 | 320 | %{_mandir}/man1/pkcon.1* |
f058dba9 | 321 | %{_mandir}/man1/pk-debuginfo-install.1* |
78293e06 MB |
322 | %{_mandir}/man1/pkgenpack.1* |
323 | %{_mandir}/man1/pkmon.1* | |
324 | %dir /var/cache/PackageKit | |
325 | %dir /var/cache/PackageKit/downloads | |
a2d83637 | 326 | %dir /var/lib/PackageKit |
d05d9108 | 327 | %ghost /var/lib/PackageKit/transactions.db |
a2d83637 MB |
328 | |
329 | %files libs | |
330 | %defattr(644,root,root,755) | |
08c67dac | 331 | %attr(755,root,root) %{_libdir}/libpackagekit-glib.so.*.*.* |
f058dba9 | 332 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-glib.so.12 |
08c67dac | 333 | |
a2d83637 MB |
334 | %files devel |
335 | %defattr(644,root,root,755) | |
404651ec | 336 | %attr(755,root,root) %{_libdir}/libpackagekit-glib.so |
af5efbd7 | 337 | %{_libdir}/libpackagekit-glib.la |
08c67dac | 338 | %{_pkgconfigdir}/packagekit-glib.pc |
d05d9108 MB |
339 | %dir %{_includedir}/PackageKit |
340 | %{_includedir}/PackageKit/backend | |
341 | %{_includedir}/PackageKit/packagekit-glib | |
08c67dac | 342 | |
a2d83637 MB |
343 | %files static |
344 | %defattr(644,root,root,755) | |
08c67dac | 345 | %{_libdir}/libpackagekit-glib.a |
d05d9108 | 346 | |
5424bc1f | 347 | %if %{with qt} |
d05d9108 MB |
348 | %files qt |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so.*.*.* | |
f058dba9 | 351 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-qt.so.12 |
d05d9108 MB |
352 | |
353 | %files qt-devel | |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so | |
356 | %{_libdir}/libpackagekit-qt.la | |
357 | %{_pkgconfigdir}/packagekit-qt.pc | |
358 | %{_includedir}/PackageKit/packagekit-qt | |
359 | %{_datadir}/cmake/Modules/FindQPackageKit.cmake | |
360 | ||
361 | %files qt-static | |
362 | %defattr(644,root,root,755) | |
08c67dac | 363 | %{_libdir}/libpackagekit-qt.a |
5424bc1f | 364 | %endif |
a2d83637 MB |
365 | |
366 | %files apidocs | |
367 | %defattr(644,root,root,755) | |
368 | %{_gtkdocdir}/PackageKit | |
369 | ||
d05d9108 MB |
370 | %files docs |
371 | %defattr(644,root,root,755) | |
372 | %{_datadir}/PackageKit/website | |
373 | ||
374 | %files gstreamer-plugin | |
375 | %defattr(644,root,root,755) | |
376 | %doc contrib/gstreamer-plugin/README | |
377 | %attr(755,root,root) %{_libdir}/gst-install-plugins-helper | |
378 | %attr(755,root,root) %{_libdir}/pk-gstreamer-install | |
379 | ||
380 | %files gtk-module | |
381 | %defattr(644,root,root,755) | |
382 | %doc contrib/gtk-module/{GLASS.txt,README} | |
383 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libpk-gtk-module.so | |
384 | ||
a2d83637 MB |
385 | %files -n bash-completion-packagekit |
386 | %defattr(644,root,root,755) | |
387 | %{_sysconfdir}/bash_completion.d/pk-completion.bash | |
388 | ||
389 | %files -n pm-utils-packagekit | |
390 | %defattr(644,root,root,755) | |
d05d9108 | 391 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/95packagekit |
a2d83637 MB |
392 | |
393 | %files -n python-packagekit | |
394 | %defattr(644,root,root,755) | |
395 | %dir %{py_sitescriptdir}/packagekit | |
396 | %{py_sitescriptdir}/packagekit/*.py[co] |