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