]>
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) | |
d05d9108 MB |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without qt # don't build packagekit-qt library | |
9b8153ef | 7 | %bcond_without doc # build without docs |
dac2b5e1 | 8 | %bcond_without gir # gobject introspection, time to time broken |
616fad64 ER |
9 | %bcond_without poldek # build Poldek backend |
10 | %bcond_without smart # build SMART backend | |
11 | %bcond_without yum # build YUM backend | |
12 | %bcond_with browser # build browser plugin (patrys says: it's flawed by concept) | |
dc10d5ba | 13 | |
0d5f415c | 14 | # default backend, configurable at runtime |
dc10d5ba | 15 | %define backend poldek |
48a22c3c | 16 | |
85d27e4f JB |
17 | Summary: System daemon that is a D-Bus abstraction layer for package management |
18 | Summary(pl.UTF-8): Demon systemowy będący warstwą abstrakcji D-Bus do zarządzania pakietami | |
a2d83637 | 19 | Name: PackageKit |
dac2b5e1 | 20 | Version: 0.6.13 |
7333f3ce | 21 | Release: 0.2 |
a2d83637 | 22 | License: GPL v2+ |
85d27e4f | 23 | Group: Applications/System |
74872af2 | 24 | Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.bz2 |
dac2b5e1 | 25 | # Source0-md5: afc7cfa2674e81511784af46f71f1142 |
d05d9108 | 26 | Patch1: %{name}-PLD.patch |
36ca2380 | 27 | Patch2: bashism.patch |
d6bb3abf | 28 | Patch3: smart-at-fix.patch |
a2d83637 MB |
29 | URL: http://www.packagekit.org/ |
30 | BuildRequires: NetworkManager-devel >= 0.6.5 | |
d05d9108 MB |
31 | %if %{with qt} |
32 | BuildRequires: QtCore-devel >= 4.4.0 | |
33 | BuildRequires: QtDBus-devel >= 4.4.0 | |
34 | BuildRequires: QtGui-devel >= 4.4.0 | |
27e89cfe MB |
35 | BuildRequires: QtSql-devel >= 4.4.0 |
36 | BuildRequires: QtXml-devel >= 4.4.0 | |
d05d9108 | 37 | %endif |
600be41c | 38 | BuildRequires: autoconf >= 2.65 |
dac2b5e1 | 39 | BuildRequires: automake >= 1.11 |
d05d9108 | 40 | %{?with_qt:BuildRequires: cppunit-devel} |
6808f644 | 41 | BuildRequires: dbus-devel >= 1.2.0 |
f5f5e3ff | 42 | BuildRequires: dbus-glib-devel >= 0.76 |
bdd8c0ca | 43 | BuildRequires: docbook-dtd412-xml |
44 | BuildRequires: docbook-dtd42-xml | |
dac2b5e1 | 45 | BuildRequires: fontconfig-devel |
a2d83637 | 46 | BuildRequires: gettext-devel |
9ed4ca79 | 47 | BuildRequires: glib2-devel >= 1:2.22.0 |
dac2b5e1 AF |
48 | %{?with_gir:BuildRequires: gobject-introspection-devel} |
49 | BuildRequires: gstreamer-devel | |
d05d9108 MB |
50 | BuildRequires: gstreamer-plugins-base-devel |
51 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
dac2b5e1 | 52 | BuildRequires: gtk+3-devel >= 3.0.0 |
9b8153ef | 53 | %{?with_doc:BuildRequires: gtk-doc >= 1.9} |
d05d9108 | 54 | BuildRequires: intltool >= 0.35.0 |
78293e06 | 55 | BuildRequires: libarchive-devel |
a2d83637 | 56 | BuildRequires: libtool |
dac2b5e1 AF |
57 | BuildRequires: libxslt-progs |
58 | BuildRequires: pango-devel | |
a2d83637 | 59 | BuildRequires: pkgconfig |
bdd8c0ca | 60 | BuildRequires: pm-utils |
dc10d5ba | 61 | %{?with_poldek:BuildRequires: poldek-devel >= 0.30-0.20080820.23.20} |
dac2b5e1 | 62 | BuildRequires: polkit-devel >= 0.97 |
a2d83637 | 63 | BuildRequires: python-devel |
d05d9108 | 64 | %{?with_qt:BuildRequires: qt4-build >= 4.4.0} |
a2d83637 | 65 | BuildRequires: rpm-pythonprov |
85d27e4f | 66 | BuildRequires: rpmbuild(macros) >= 1.311 |
a2d83637 | 67 | BuildRequires: sqlite3-devel |
9ed4ca79 | 68 | BuildRequires: udev-glib-devel |
dac2b5e1 AF |
69 | %if %{with browser} |
70 | BuildRequires: cairo-devel | |
71 | BuildRequires: nspr-devel | |
d05d9108 | 72 | BuildRequires: xulrunner-devel |
dac2b5e1 | 73 | %endif |
fcd0bc5c | 74 | Requires(post,postun): shared-mime-info |
0d5f415c | 75 | Requires: %{name}-backend |
a2d83637 | 76 | Requires: %{name}-libs = %{version}-%{release} |
9ed4ca79 | 77 | Requires: ConsoleKit |
8d48627e | 78 | Requires: crondaemon |
9ed4ca79 | 79 | Requires: polkit >= 0.92 |
a2d83637 MB |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
81 | ||
82 | %description | |
83 | PackageKit is a D-Bus abstraction layer that allows the session user | |
84 | to manage packages in a secure way using a cross-distro, | |
85 | cross-architecture API. | |
86 | ||
85d27e4f JB |
87 | %description -l pl.UTF-8 |
88 | PackageKit to warstwa abstrakcji D-Bus pozwalająca użytkownikowi | |
89 | sesyjnemu w bezpieczny sposob zarządzać pakietami przy użyciu API | |
90 | zgodnego z wieloma dystrybucjami i architekturami. | |
91 | ||
a2d83637 | 92 | %package libs |
d05d9108 MB |
93 | Summary: packagekit-glib library |
94 | Summary(pl.UTF-8): Biblioteka packagekit-glib | |
a2d83637 | 95 | Group: Libraries |
9ed4ca79 | 96 | Requires: glib2 >= 1:2.22.0 |
a2d83637 MB |
97 | |
98 | %description libs | |
d05d9108 | 99 | packagekit-glib library. |
a2d83637 MB |
100 | |
101 | %description libs -l pl.UTF-8 | |
d05d9108 | 102 | Biblioteka packagekit-glib. |
a2d83637 MB |
103 | |
104 | %package devel | |
d05d9108 MB |
105 | Summary: Header files for packagekit-glib library |
106 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki packagekit-glib | |
a2d83637 MB |
107 | Group: Development/Libraries |
108 | Requires: %{name}-libs = %{version}-%{release} | |
9ed4ca79 MB |
109 | Requires: dbus-devel >= 1.2.0 |
110 | Requires: glib2-devel >= 1:2.22.0 | |
111 | Requires: sqlite3-devel | |
a2d83637 MB |
112 | |
113 | %description devel | |
d05d9108 | 114 | Header files for packagekit-glib library. |
a2d83637 MB |
115 | |
116 | %description devel -l pl.UTF-8 | |
d05d9108 | 117 | Pliki nagłówkowe biblioteki packagekit-glib. |
a2d83637 MB |
118 | |
119 | %package static | |
d05d9108 MB |
120 | Summary: Static packagekit-glib library |
121 | Summary(pl.UTF-8): Statyczna biblioteka packagekit-glib | |
a2d83637 MB |
122 | Group: Development/Libraries |
123 | Requires: %{name}-devel = %{version}-%{release} | |
124 | ||
125 | %description static | |
d05d9108 | 126 | Static packagekit-glib library. |
a2d83637 MB |
127 | |
128 | %description static -l pl.UTF-8 | |
d05d9108 MB |
129 | Statyczna biblioteka packagekit-glib. |
130 | ||
0d5f415c ER |
131 | %package backend-poldek |
132 | Summary: PackageKit Poldek backend | |
133 | Group: Libraries | |
134 | Requires: %{name} = %{version}-%{release} | |
135 | Requires: poldek >= 0.30-0.20080820.23.20} | |
136 | Provides: %{name}-backend | |
137 | Conflicts: %{name} < 0.6.8-3 | |
138 | ||
139 | %description backend-poldek | |
140 | A backend for PackageKit to enable Poldek functionality. | |
141 | ||
616fad64 ER |
142 | %package backend-smart |
143 | Summary: PackageKit SMART backend | |
144 | Group: Libraries | |
145 | Requires: %{name} = %{version}-%{release} | |
146 | Requires: smart | |
147 | ||
148 | %description backend-smart | |
149 | A backend for PackageKit to enable SMART functionality. | |
150 | ||
151 | %package backend-yum | |
152 | Summary: PackageKit YUM backend | |
153 | Group: Libraries | |
154 | Requires: %{name} = %{version}-%{release} | |
155 | Requires: python-packagekit = %{version}-%{release} | |
156 | Requires: yum >= 3.2.19 | |
157 | Provides: %{name}-backend | |
158 | ||
159 | %description backend-yum | |
160 | A backend for PackageKit to enable yum functionality. | |
161 | ||
d05d9108 MB |
162 | %package qt |
163 | Summary: packagekit-qt library | |
164 | Summary(pl.UTF-8): Biblioteka packagekit-qt | |
165 | Group: Libraries | |
fdbb503b ER |
166 | Obsoletes: packagekit-qt < 0.4.0 |
167 | Obsoletes: qpackagekit < 0.4.0 | |
d05d9108 MB |
168 | |
169 | %description qt | |
170 | packagekit-qt library. | |
171 | ||
172 | %description qt -l pl.UTF-8 | |
173 | Biblioteka packagekit-qt. | |
174 | ||
175 | %package qt-devel | |
176 | Summary: Header files for packagekit-qt library | |
177 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki packagekit-qt | |
178 | Group: Development/Libraries | |
179 | Requires: %{name}-qt = %{version}-%{release} | |
27e89cfe MB |
180 | Requires: QtCore-devel >= 4.4.0 |
181 | Requires: QtDBus-devel >= 4.4.0 | |
182 | Requires: QtGui-devel >= 4.4.0 | |
183 | Requires: QtSql-devel >= 4.4.0 | |
184 | Requires: QtXml-devel >= 4.4.0 | |
fdbb503b | 185 | Obsoletes: qpackagekit-devel < 0.4.0 |
d05d9108 MB |
186 | |
187 | %description qt-devel | |
188 | Header files for packagekit-qt library. | |
189 | ||
190 | %description qt-devel -l pl.UTF-8 | |
191 | Pliki nagłówkowe biblioteki packagekit-qt. | |
192 | ||
193 | %package qt-static | |
194 | Summary: Static packagekit-qt library | |
195 | Summary(pl.UTF-8): Statyczna biblioteka packagekit-qt | |
196 | Group: Development/Libraries | |
197 | Requires: %{name}-qt-devel = %{version}-%{release} | |
198 | ||
199 | %description qt-static | |
200 | Static packagekit-qt library. | |
201 | ||
202 | %description qt-static -l pl.UTF-8 | |
203 | Statyczna biblioteka packagekit-qt. | |
a2d83637 MB |
204 | |
205 | %package apidocs | |
206 | Summary: PackageKit library API documentation | |
207 | Summary(pl.UTF-8): Dokumentacja API biblioteki PackageKit | |
208 | Group: Documentation | |
209 | Requires: gtk-doc-common | |
210 | ||
211 | %description apidocs | |
212 | PackageKit library API documentation. | |
213 | ||
214 | %description apidocs -l pl.UTF-8 | |
215 | Dokumentacja API biblioteki PackageKit. | |
216 | ||
d05d9108 MB |
217 | %package docs |
218 | Summary: PackageKit documentation | |
219 | Summary(pl.UTF-8): Dokumentacja PackageKit | |
220 | Group: Documentation | |
221 | ||
222 | %description docs | |
223 | PackageKit documentation. | |
224 | ||
225 | %description docs -l pl.UTF-8 | |
226 | Dokumentacja PackageKit. | |
227 | ||
228 | %package gstreamer-plugin | |
229 | Summary: GStreamer codecs installer | |
230 | Summary(pl.UTF-8): Instalator kodeków GStreamera | |
231 | Group: Applications | |
232 | Requires: %{name} = %{version}-%{release} | |
5baab3aa | 233 | Requires: %{name}-gtk-module = %{version}-%{release} |
d05d9108 MB |
234 | |
235 | %description gstreamer-plugin | |
236 | The PackageKit GStreamer plugin allows any GStreamer application to | |
237 | install codecs from configured repositories using PackageKit. | |
238 | ||
239 | %description gstreamer-plugin -l pl.UTF-8 | |
240 | Wtyczka GStreamer pozwala każdej aplikacji używającej GStreamera | |
241 | zainstalować kodeki ze skonfigurowanych źródeł PackageKit. | |
242 | ||
243 | %package gtk-module | |
244 | Summary: GTK+ module to detect and install missing fonts | |
245 | Summary(pl.UTF-8): Moduł GTK+ do wykrywania i instalowania brakujących czcionek | |
246 | Group: X11/Libraries | |
247 | ||
248 | %description gtk-module | |
249 | The PackageKit GTK+ module allows any pango application to install | |
250 | missing fonts from configured repositories using PackageKit. | |
251 | ||
252 | %description gtk-module -l pl.UTF-8 | |
253 | Moduł GTK+ pozwala każdej aplikacji używającej pango zainstalować | |
254 | brakującą czcionkę ze skonfigurowanych źródeł PackageKit. | |
255 | ||
dac2b5e1 AF |
256 | %package gtk3-module |
257 | Summary: GTK+ 3.x module to detect and install missing fonts | |
258 | Summary(pl.UTF-8): Moduł GTK+ 3.x do wykrywania i instalowania brakujących czcionek | |
259 | Group: X11/Libraries | |
260 | ||
261 | %description gtk3-module | |
262 | The PackageKit GTK+ 3.x module allows any pango application to install | |
263 | missing fonts from configured repositories using PackageKit. | |
264 | ||
265 | %description gtk3-module -l pl.UTF-8 | |
266 | Moduł GTK+ 3.x pozwala każdej aplikacji używającej pango zainstalować | |
267 | brakującą czcionkę ze skonfigurowanych źródeł PackageKit. | |
268 | ||
a2d83637 MB |
269 | %package -n bash-completion-packagekit |
270 | Summary: bash-completion for PackageKit | |
271 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla PackageKit | |
272 | Group: Applications/Shells | |
273 | Requires: bash-completion | |
274 | ||
275 | %description -n bash-completion-packagekit | |
276 | This package provides bash-completion for PackageKit. | |
277 | ||
278 | %description -n bash-completion-packagekit -l pl.UTF-8 | |
279 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla PackageKit. | |
280 | ||
281 | %package -n pm-utils-packagekit | |
282 | Summary: PackageKit script for pm-utils | |
85d27e4f | 283 | Summary(pl.UTF-8): Skrypt PackageKit dla pm-utils |
a2d83637 MB |
284 | Group: Applications/System |
285 | Requires: pm-utils | |
286 | ||
287 | %description -n pm-utils-packagekit | |
288 | PackageKit script for pm-utils. | |
289 | ||
85d27e4f JB |
290 | %description -n pm-utils-packagekit -l pl.UTF-8 |
291 | Skrypt PackageKit dla pm-utils. | |
292 | ||
a2d83637 MB |
293 | %package -n python-packagekit |
294 | Summary: PackageKit Python bindings | |
295 | Summary(pl.UTF-8): Wiązania PackageKit dla Pythona | |
296 | Group: Development/Languages/Python | |
297 | Requires: python-dbus | |
298 | Requires: python-pygobject | |
299 | ||
300 | %description -n python-packagekit | |
301 | PackageKit Python bindings. | |
302 | ||
86086d14 | 303 | %description -n python-packagekit -l pl.UTF-8 |
a2d83637 MB |
304 | Wiązania PackageKit dla Pythona. |
305 | ||
dac2b5e1 AF |
306 | %package -n browser-plugin-packagekit |
307 | Summary: PackageKit's browser plugin | |
308 | Summary(pl.UTF-8): Wtyczka PackageKit do przeglądarek WWW | |
309 | Group: X11/Libraries | |
310 | Requires: %{name} = %{version}-%{release} | |
311 | Requires: browser-plugins >= 2.0 | |
312 | Requires: browser-plugins(%{_target_base_arch}) | |
313 | ||
314 | %description -n browser-plugin-packagekit | |
315 | PackageKit's plugin for browsers. | |
316 | ||
317 | %description -n browser-plugin-packagekit -l pl.UTF-8 | |
318 | Wtyczka PackageKit do przeglądarek WWW. | |
319 | ||
a2d83637 MB |
320 | %prep |
321 | %setup -q | |
d05d9108 | 322 | %patch1 -p1 |
36ca2380 | 323 | %patch2 -p1 |
7333f3ce | 324 | %patch3 -p0 |
a2d83637 MB |
325 | |
326 | %build | |
9b8153ef | 327 | %if %{with doc} |
d05d9108 | 328 | %{__gtkdocize} |
d5617342 | 329 | %endif |
58e98be4 | 330 | %{__intltoolize} |
a2d83637 | 331 | %{__libtoolize} |
d05d9108 | 332 | %{__aclocal} -I m4 |
a2d83637 MB |
333 | %{__autoconf} |
334 | %{__autoheader} | |
335 | %{__automake} | |
336 | %configure \ | |
dac2b5e1 | 337 | --disable-silent-rules \ |
d05d9108 | 338 | --disable-dummy \ |
d05d9108 | 339 | --disable-command-not-found \ |
6e66a3a4 | 340 | %{!?with_gir:--disable-introspection} \ |
dac2b5e1 AF |
341 | %{__enable_disable browser browser-plugin} \ |
342 | %{__enable_disable poldek} \ | |
616fad64 | 343 | %{__enable_disable smart} \ |
dac2b5e1 AF |
344 | %{__enable_disable yum} \ |
345 | %{__enable_disable dok gtk-doc}\ | |
346 | %{__enable_disable qt} \ | |
fcd0bc5c | 347 | --with-html-dir=%{_gtkdocdir} \ |
dac2b5e1 AF |
348 | --with-default-backend=%{backend} \ |
349 | --with-security-framework=polkit \ | |
350 | --with-mozilla-plugin-dir=%{_browserpluginsdir} | |
a2d83637 MB |
351 | %{__make} |
352 | ||
353 | %install | |
354 | rm -rf $RPM_BUILD_ROOT | |
355 | ||
356 | %{__make} install \ | |
357 | DESTDIR=$RPM_BUILD_ROOT | |
358 | ||
d05d9108 MB |
359 | # use pk-gstreamer-install as codec installer |
360 | ln -s pk-gstreamer-install $RPM_BUILD_ROOT%{_libdir}/gst-install-plugins-helper | |
361 | ||
684bfa1d | 362 | install -d $RPM_BUILD_ROOT%{_libdir}/pm-utils/sleep.d |
aa2113f5 | 363 | install -p contrib/pm-utils/95packagekit $RPM_BUILD_ROOT%{_libdir}/pm-utils/sleep.d |
684bfa1d | 364 | |
dac2b5e1 AF |
365 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-{2,3}.0/modules/*.{la,a} |
366 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.{la,a} | |
367 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/libpk_backend_test_*.so | |
368 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
369 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/PackageKit/helpers/test_spawn | |
370 | ||
371 | %if %{with browser} | |
372 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a} | |
373 | %endif | |
a2d83637 | 374 | |
8c9d69e0 ER |
375 | %if %{with yum} |
376 | # yumBackend.py can't be compiled (invoked directly), other should be compiled | |
377 | %py_comp $RPM_BUILD_ROOT%{_datadir}/PackageKit/helpers/yum | |
378 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/PackageKit/helpers/yum | |
dac2b5e1 AF |
379 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/PackageKit/helpers/yum/yum{Comps,Filter}.py |
380 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/PackageKit/helpers/yum/yumBackend.py[co] | |
8c9d69e0 ER |
381 | %endif |
382 | ||
a2d83637 MB |
383 | %py_postclean |
384 | ||
6808f644 MB |
385 | %find_lang %{name} |
386 | ||
a2d83637 MB |
387 | %clean |
388 | rm -rf $RPM_BUILD_ROOT | |
389 | ||
fcd0bc5c MB |
390 | %post |
391 | %update_mime_database | |
392 | ||
393 | %postun | |
394 | %update_mime_database | |
395 | ||
85d27e4f | 396 | %post libs -p /sbin/ldconfig |
a2d83637 MB |
397 | %postun libs -p /sbin/ldconfig |
398 | ||
d05d9108 MB |
399 | %post qt -p /sbin/ldconfig |
400 | %postun qt -p /sbin/ldconfig | |
401 | ||
dac2b5e1 AF |
402 | %post -n browser-plugin-packagekit |
403 | %update_browser_plugins | |
404 | ||
405 | %postun -n browser-plugin-packagekit | |
406 | if [ "$1" = 0 ]; then | |
407 | %update_browser_plugins | |
408 | fi | |
409 | ||
6808f644 | 410 | %files -f %{name}.lang |
a2d83637 MB |
411 | %defattr(644,root,root,755) |
412 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
413 | %attr(755,root,root) %{_bindir}/packagekit-bugreport.sh | |
a2d83637 | 414 | %attr(755,root,root) %{_bindir}/pkcon |
78293e06 | 415 | %attr(755,root,root) %{_bindir}/pkgenpack |
a2d83637 | 416 | %attr(755,root,root) %{_bindir}/pkmon |
a382d619 | 417 | %attr(755,root,root) %{_bindir}/pk-debuginfo-install |
8d48627e | 418 | %attr(750,root,root) /etc/cron.daily/packagekit-background.cron |
a2d83637 | 419 | %dir %{_libdir}/packagekit-backend |
aa2113f5 | 420 | %attr(755,root,root) %{_libdir}/packagekitd |
9ed4ca79 | 421 | %attr(755,root,root) %{_sbindir}/pk-device-rebind |
a2d83637 MB |
422 | %dir %{_sysconfdir}/PackageKit |
423 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/PackageKit.conf | |
d05d9108 | 424 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Vendor.conf |
dac2b5e1 AF |
425 | %dir %{_sysconfdir}/PackageKit/events |
426 | %{_sysconfdir}/PackageKit/events/post-transaction.d | |
427 | %{_sysconfdir}/PackageKit/events/pre-transaction.d | |
5baab3aa ER |
428 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/packagekit-background |
429 | /etc/dbus-1/system.d/org.freedesktop.PackageKit.conf | |
d05d9108 | 430 | %dir %{_datadir}/PackageKit |
6e66a3a4 | 431 | %dir %{_datadir}/PackageKit/helpers |
d05d9108 | 432 | %attr(755,root,root) %{_datadir}/PackageKit/pk-upgrade-distro.sh |
f058dba9 | 433 | %{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy |
a2d83637 | 434 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
d05d9108 | 435 | %{_datadir}/mime/packages/packagekit-catalog.xml |
08c67dac | 436 | %{_datadir}/mime/packages/packagekit-package-list.xml |
437 | %{_datadir}/mime/packages/packagekit-servicepack.xml | |
a2d83637 | 438 | %{_mandir}/man1/pkcon.1* |
f058dba9 | 439 | %{_mandir}/man1/pk-debuginfo-install.1* |
9ed4ca79 | 440 | %{_mandir}/man1/pk-device-rebind.1* |
78293e06 MB |
441 | %{_mandir}/man1/pkgenpack.1* |
442 | %{_mandir}/man1/pkmon.1* | |
443 | %dir /var/cache/PackageKit | |
444 | %dir /var/cache/PackageKit/downloads | |
a2d83637 | 445 | %dir /var/lib/PackageKit |
d05d9108 | 446 | %ghost /var/lib/PackageKit/transactions.db |
a2d83637 MB |
447 | |
448 | %files libs | |
449 | %defattr(644,root,root,755) | |
74872af2 | 450 | %attr(755,root,root) %{_libdir}/libpackagekit-glib2.so.*.*.* |
aa2113f5 | 451 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-glib2.so.14 |
dac2b5e1 | 452 | %{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib |
08c67dac | 453 | |
a2d83637 MB |
454 | %files devel |
455 | %defattr(644,root,root,755) | |
74872af2 | 456 | %attr(755,root,root) %{_libdir}/libpackagekit-glib2.so |
74872af2 | 457 | %{_pkgconfigdir}/packagekit-glib2.pc |
d05d9108 MB |
458 | %dir %{_includedir}/PackageKit |
459 | %{_includedir}/PackageKit/backend | |
74872af2 | 460 | %{_includedir}/PackageKit/packagekit-glib2 |
dac2b5e1 | 461 | %{_datadir}/gir-1.0/PackageKitGlib-1.0.gir |
08c67dac | 462 | |
a2d83637 MB |
463 | %files static |
464 | %defattr(644,root,root,755) | |
74872af2 | 465 | %{_libdir}/libpackagekit-glib2.a |
d05d9108 | 466 | |
0d5f415c ER |
467 | %if %{with poldek} |
468 | %files backend-poldek | |
469 | %defattr(644,root,root,755) | |
470 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so | |
471 | %endif | |
472 | ||
616fad64 ER |
473 | %if %{with smart} |
474 | %files backend-smart | |
475 | %defattr(644,root,root,755) | |
476 | %{_libdir}/packagekit-backend/libpk_backend_smart.so | |
477 | %dir %{_datadir}/PackageKit/helpers/smart | |
9a97bfb7 | 478 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/smart/smartBackend.py |
616fad64 ER |
479 | %endif |
480 | ||
0d5f415c ER |
481 | %if %{with yum} |
482 | %files backend-yum | |
483 | %defattr(644,root,root,755) | |
484 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Yum.conf | |
485 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_yum.so | |
486 | %dir %{_datadir}/PackageKit/helpers/yum | |
487 | %{_datadir}/PackageKit/helpers/yum/licenses.txt | |
488 | %{_datadir}/PackageKit/helpers/yum/yum-comps-groups.conf | |
489 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/yum/yumBackend.py | |
490 | %{_datadir}/PackageKit/helpers/yum/yumComps.py[co] | |
491 | %{_datadir}/PackageKit/helpers/yum/yumFilter.py[co] | |
492 | ||
493 | # yum plugin | |
494 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/refresh-packagekit.conf | |
495 | %{_prefix}/lib/yum-plugins/refresh-packagekit.py | |
496 | %endif | |
497 | ||
5424bc1f | 498 | %if %{with qt} |
d05d9108 MB |
499 | %files qt |
500 | %defattr(644,root,root,755) | |
501 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so.*.*.* | |
aa2113f5 | 502 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-qt.so.14 |
d05d9108 MB |
503 | |
504 | %files qt-devel | |
505 | %defattr(644,root,root,755) | |
506 | %attr(755,root,root) %{_libdir}/libpackagekit-qt.so | |
d05d9108 MB |
507 | %{_pkgconfigdir}/packagekit-qt.pc |
508 | %{_includedir}/PackageKit/packagekit-qt | |
509 | %{_datadir}/cmake/Modules/FindQPackageKit.cmake | |
510 | ||
511 | %files qt-static | |
512 | %defattr(644,root,root,755) | |
08c67dac | 513 | %{_libdir}/libpackagekit-qt.a |
5424bc1f | 514 | %endif |
a2d83637 MB |
515 | |
516 | %files apidocs | |
517 | %defattr(644,root,root,755) | |
518 | %{_gtkdocdir}/PackageKit | |
519 | ||
d05d9108 MB |
520 | %files docs |
521 | %defattr(644,root,root,755) | |
522 | %{_datadir}/PackageKit/website | |
523 | ||
524 | %files gstreamer-plugin | |
525 | %defattr(644,root,root,755) | |
526 | %doc contrib/gstreamer-plugin/README | |
527 | %attr(755,root,root) %{_libdir}/gst-install-plugins-helper | |
528 | %attr(755,root,root) %{_libdir}/pk-gstreamer-install | |
529 | ||
530 | %files gtk-module | |
531 | %defattr(644,root,root,755) | |
532 | %doc contrib/gtk-module/{GLASS.txt,README} | |
533 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libpk-gtk-module.so | |
534 | ||
dac2b5e1 AF |
535 | %files gtk3-module |
536 | %defattr(644,root,root,755) | |
537 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libpk-gtk-module.so | |
538 | ||
a2d83637 MB |
539 | %files -n bash-completion-packagekit |
540 | %defattr(644,root,root,755) | |
541 | %{_sysconfdir}/bash_completion.d/pk-completion.bash | |
542 | ||
543 | %files -n pm-utils-packagekit | |
544 | %defattr(644,root,root,755) | |
d05d9108 | 545 | %attr(755,root,root) %{_libdir}/pm-utils/sleep.d/95packagekit |
a2d83637 MB |
546 | |
547 | %files -n python-packagekit | |
548 | %defattr(644,root,root,755) | |
549 | %dir %{py_sitescriptdir}/packagekit | |
550 | %{py_sitescriptdir}/packagekit/*.py[co] | |
dac2b5e1 AF |
551 | |
552 | %if %{with browser} | |
553 | %files -n browser-plugin-packagekit | |
554 | %defattr(644,root,root,755) | |
555 | %attr(755,root,root) %{_browserpluginsdir}/packagekit-plugin.so | |
556 | %endif |