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