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