]>
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: | |
53810c7c JB |
6 | %bcond_without doc # build without docs |
7 | %bcond_without introspection # gobject introspection, time to time broken | |
d06070b1 | 8 | %bcond_with alpm # ALPM (Arch Linux package manager) backend |
04e18045 JB |
9 | %bcond_with apt # APT (Debian/Ubuntu) backend using C++ API |
10 | %bcond_with entropy # Entropy (Sabayon) backend (Python) | |
11 | %bcond_with hif # HIF (Fedora/RHEL) backend | |
12 | %bcond_with katja # Katja (Slackware) backend | |
13 | %bcond_with pisi # PiSi (Pardus) backend (Python) | |
14 | %bcond_without poldek # Poldek (PLD) backend | |
15 | %bcond_with portage # portage (Gentoo) backend (Python) | |
16 | %bcond_with ports # ports (FreeBSD) backend (Ruby) | |
17 | %bcond_with urpmi # urpmi (Mandriva/Mageia) backend (Perl) | |
18 | %bcond_with zypp # ZYPP (openSUSE/SLE) backend | |
19 | %bcond_without python # Python binding (only for a few backends) | |
8ad97aee | 20 | %bcond_without vala # Vala binding |
53810c7c | 21 | %bcond_with browser # browser plugin (patrys says: it's flawed by concept) |
04e18045 JB |
22 | # python binding is built when building any python binding |
23 | %if %{without entropy} && %{without pisi} && %{without ports} | |
24 | %undefine with_python | |
25 | %endif | |
85d27e4f JB |
26 | Summary: System daemon that is a D-Bus abstraction layer for package management |
27 | Summary(pl.UTF-8): Demon systemowy będący warstwą abstrakcji D-Bus do zarządzania pakietami | |
a2d83637 | 28 | Name: PackageKit |
3965d296 | 29 | Version: 1.0.9 |
02b3d2d3 | 30 | Release: 1 |
a2d83637 | 31 | License: GPL v2+ |
85d27e4f | 32 | Group: Applications/System |
66e86606 | 33 | Source0: http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz |
3965d296 | 34 | # Source0-md5: a54db27ae808fe728142c42093781f14 |
02b3d2d3 JB |
35 | Patch0: %{name}-poldek.patch |
36 | Patch1: %{name}-bashcomp.patch | |
04e18045 | 37 | Patch2: %{name}-format.patch |
bcd7526e | 38 | Patch3: consolekit-fallback.patch |
a2d83637 MB |
39 | URL: http://www.packagekit.org/ |
40 | BuildRequires: NetworkManager-devel >= 0.6.5 | |
d06070b1 JB |
41 | # pkgconfig(libalpm) >= 8.2.0 |
42 | %{?with_alpm:BuildRequires: alpm-devel >= 4} | |
ee375c30 | 43 | %{?with_hif:BuildRequires: appstream-glib-devel} |
04e18045 | 44 | %{?with_apt:BuildRequires: apt-devel >= 0.7} |
600be41c | 45 | BuildRequires: autoconf >= 2.65 |
577193a4 JB |
46 | BuildRequires: automake >= 1:1.11 |
47 | BuildRequires: connman-devel | |
04e18045 | 48 | %{?with_katja:BuildRequires: curl-devel} |
6808f644 | 49 | BuildRequires: dbus-devel >= 1.2.0 |
f5f5e3ff | 50 | BuildRequires: dbus-glib-devel >= 0.76 |
bdd8c0ca | 51 | BuildRequires: docbook-dtd412-xml |
52 | BuildRequires: docbook-dtd42-xml | |
dac2b5e1 | 53 | BuildRequires: fontconfig-devel |
a0f1aeda | 54 | BuildRequires: gettext-tools |
53810c7c JB |
55 | BuildRequires: glib2-devel >= 1:2.32.0 |
56 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.9.9} | |
7cd3cbcf MB |
57 | BuildRequires: gstreamer-devel >= 1.0.0 |
58 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.0 | |
d05d9108 | 59 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
dac2b5e1 | 60 | BuildRequires: gtk+3-devel >= 3.0.0 |
577193a4 | 61 | %{?with_doc:BuildRequires: gtk-doc >= 1.11} |
d05d9108 | 62 | BuildRequires: intltool >= 0.35.0 |
78293e06 | 63 | BuildRequires: libarchive-devel |
ee375c30 | 64 | %{?with_hif:BuildRequires: libhif-devel >= 0.1.7} |
a2d83637 | 65 | BuildRequires: libtool |
dac2b5e1 | 66 | BuildRequires: libxslt-progs |
04e18045 | 67 | %{?with_zypp:BuildRequires: libzypp-devel >= 6.16.0} |
dac2b5e1 | 68 | BuildRequires: pango-devel |
a2d83637 | 69 | BuildRequires: pkgconfig |
7cd3cbcf | 70 | %{?with_poldek:BuildRequires: poldek-devel >= 0.30-1.rc6.4} |
577193a4 | 71 | BuildRequires: polkit-devel >= 0.98 |
02b3d2d3 | 72 | %{?with_python:BuildRequires: python-devel >= 1:2.7} |
827cd5e7 | 73 | BuildRequires: readline-devel |
a2d83637 | 74 | BuildRequires: rpm-pythonprov |
85d27e4f | 75 | BuildRequires: rpmbuild(macros) >= 1.311 |
577193a4 | 76 | BuildRequires: sqlite3-devel >= 3 |
8ad97aee | 77 | BuildRequires: systemd-devel >= 1:209 |
e216f3d9 | 78 | BuildRequires: tar >= 1:1.22 |
9ed4ca79 | 79 | BuildRequires: udev-glib-devel |
8ad97aee | 80 | %{?with_vala:BuildRequires: vala >= 2:0.16} |
e216f3d9 | 81 | BuildRequires: xz |
dac2b5e1 AF |
82 | %if %{with browser} |
83 | BuildRequires: cairo-devel | |
a92a33f7 | 84 | BuildRequires: nspr-devel >= 4.8 |
04e18045 | 85 | BuildRequires: pango-devel |
a92a33f7 | 86 | BuildRequires: xulrunner-devel >= 8.0 |
dac2b5e1 | 87 | %endif |
fcd0bc5c | 88 | Requires(post,postun): shared-mime-info |
0d5f415c | 89 | Requires: %{name}-backend |
a2d83637 | 90 | Requires: %{name}-libs = %{version}-%{release} |
8d48627e | 91 | Requires: crondaemon |
53810c7c | 92 | Requires: polkit >= 0.98 |
48178e4e | 93 | Suggests: ConsoleKit-x11 |
02b3d2d3 JB |
94 | Obsoletes: PackageKit-backend-smart |
95 | Obsoletes: PackageKit-backend-yum | |
7cd3cbcf | 96 | Obsoletes: PackageKit-docs < 0.8.4 |
d113818a | 97 | Obsoletes: pm-utils-packagekit |
a2d83637 MB |
98 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
99 | ||
100 | %description | |
101 | PackageKit is a D-Bus abstraction layer that allows the session user | |
102 | to manage packages in a secure way using a cross-distro, | |
103 | cross-architecture API. | |
104 | ||
85d27e4f JB |
105 | %description -l pl.UTF-8 |
106 | PackageKit to warstwa abstrakcji D-Bus pozwalająca użytkownikowi | |
107 | sesyjnemu w bezpieczny sposob zarządzać pakietami przy użyciu API | |
108 | zgodnego z wieloma dystrybucjami i architekturami. | |
109 | ||
a2d83637 | 110 | %package libs |
d05d9108 MB |
111 | Summary: packagekit-glib library |
112 | Summary(pl.UTF-8): Biblioteka packagekit-glib | |
a2d83637 | 113 | Group: Libraries |
53810c7c | 114 | Requires: glib2 >= 1:2.32.0 |
a2d83637 MB |
115 | |
116 | %description libs | |
d05d9108 | 117 | packagekit-glib library. |
a2d83637 MB |
118 | |
119 | %description libs -l pl.UTF-8 | |
d05d9108 | 120 | Biblioteka packagekit-glib. |
a2d83637 MB |
121 | |
122 | %package devel | |
d05d9108 MB |
123 | Summary: Header files for packagekit-glib library |
124 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki packagekit-glib | |
a2d83637 MB |
125 | Group: Development/Libraries |
126 | Requires: %{name}-libs = %{version}-%{release} | |
9ed4ca79 | 127 | Requires: dbus-devel >= 1.2.0 |
53810c7c | 128 | Requires: glib2-devel >= 1:2.32.0 |
9ed4ca79 | 129 | Requires: sqlite3-devel |
a2d83637 MB |
130 | |
131 | %description devel | |
d05d9108 | 132 | Header files for packagekit-glib library. |
a2d83637 MB |
133 | |
134 | %description devel -l pl.UTF-8 | |
d05d9108 | 135 | Pliki nagłówkowe biblioteki packagekit-glib. |
a2d83637 MB |
136 | |
137 | %package static | |
d05d9108 MB |
138 | Summary: Static packagekit-glib library |
139 | Summary(pl.UTF-8): Statyczna biblioteka packagekit-glib | |
a2d83637 MB |
140 | Group: Development/Libraries |
141 | Requires: %{name}-devel = %{version}-%{release} | |
142 | ||
143 | %description static | |
d05d9108 | 144 | Static packagekit-glib library. |
a2d83637 MB |
145 | |
146 | %description static -l pl.UTF-8 | |
d05d9108 MB |
147 | Statyczna biblioteka packagekit-glib. |
148 | ||
8ad97aee JB |
149 | %package -n vala-packagekit |
150 | Summary: Vala API for PackageKit library | |
151 | Summary(pl.UTF-8): API języka Vala do biblioteki PackageKitu | |
152 | Group: Development/Libraries | |
153 | Requires: %{name}-devel = %{version}-%{release} | |
154 | Requires: vala >= 2:0.16 | |
155 | ||
156 | %description -n vala-packagekit | |
157 | Vala API for PackageKit library. | |
158 | ||
159 | %description -n vala-packagekit -l pl.UTF-8 | |
160 | API języka Vala do biblioteki PackageKitu. | |
161 | ||
16acf8d5 JB |
162 | %package apidocs |
163 | Summary: PackageKit library API documentation | |
164 | Summary(pl.UTF-8): Dokumentacja API biblioteki PackageKit | |
165 | Group: Documentation | |
166 | Requires: gtk-doc-common | |
2aa4ef3d ER |
167 | %if "%{_rpmversion}" >= "5" |
168 | BuildArch: noarch | |
169 | %endif | |
16acf8d5 JB |
170 | |
171 | %description apidocs | |
172 | PackageKit library API documentation. | |
173 | ||
174 | %description apidocs -l pl.UTF-8 | |
175 | Dokumentacja API biblioteki PackageKit. | |
176 | ||
d06070b1 JB |
177 | %package backend-alpm |
178 | Summary: PackageKit ALPM backend | |
179 | Summary(pl.UTF-8): Backend PackageKit oparty na bibliotece ALPM | |
180 | Group: Libraries | |
181 | Requires: %{name} = %{version}-%{release} | |
182 | Provides: %{name}-backend = %{version}-%{release} | |
d06070b1 JB |
183 | |
184 | %description backend-alpm | |
185 | A backend for PackageKit to enable Arch Linux packages via ALPM | |
186 | library. | |
187 | ||
188 | %description backend-alpm -l pl.UTF-8 | |
189 | Backend PackageKit dodający obsługę pakietów Arch Linuksa poprzez | |
190 | bibliotekę ALPM. | |
191 | ||
04e18045 JB |
192 | %package backend-aptcc |
193 | Summary: PackageKit APTcc backend | |
194 | Summary(pl.UTF-8): Backend PackageKit APTcc | |
195 | Group: Libraries | |
196 | Requires: %{name} = %{version}-%{release} | |
197 | Provides: %{name}-backend = %{version}-%{release} | |
198 | ||
199 | %description backend-aptcc | |
200 | A backend for PackageKit to enable APT support via C++ API. | |
201 | ||
202 | %description backend-aptcc -l pl.UTF-8 | |
203 | Backend PackageKit dodający obsługę zarządcy pakietów APT poprzez API | |
204 | C++. | |
205 | ||
206 | %package backend-entropy | |
207 | Summary: PackageKit Entropy backend | |
208 | Summary(pl.UTF-8): Backend PackageKit Entropy | |
209 | Group: Libraries | |
210 | Requires: %{name} = %{version}-%{release} | |
211 | Requires: python-packagekit = %{version}-%{release} | |
212 | #Requires: python-entropy | |
213 | Provides: %{name}-backend = %{version}-%{release} | |
214 | ||
215 | %description backend-entropy | |
216 | A backend for PackageKit to enable Sabayon packages support through | |
217 | Entropy package manager. | |
218 | ||
219 | %description backend-entropy -l pl.UTF-8 | |
220 | Backend PackageKit dodający obsługę pakietów dystrybucji Sabayon przy | |
221 | użyciu zarządcy pakietów Entropy. | |
222 | ||
ee375c30 JB |
223 | %package backend-hif |
224 | Summary: PackageKit hif backend | |
225 | Summary(pl.UTF-8): Backend PackageKit oparty na bibliotece hif | |
226 | Group: Libraries | |
227 | Requires: %{name} = %{version}-%{release} | |
228 | Requires: libhif >= 0.1.7 | |
229 | Provides: %{name}-backend = %{version}-%{release} | |
230 | Obsoletes: PackageKit-backend-hawkey | |
ee375c30 JB |
231 | |
232 | %description backend-hif | |
04e18045 JB |
233 | A backend for PackageKit to enable RPM packages support via hif |
234 | library (used in Fedora). | |
ee375c30 JB |
235 | |
236 | %description backend-hif -l pl.UTF-8 | |
04e18045 JB |
237 | Backend PackageKit dodający obsługę pakietów RPM poprzez bibliotekę |
238 | hif (używaną w dystrybucji Fedora). | |
239 | ||
240 | %package backend-katja | |
241 | Summary: PackageKit Katja backend | |
242 | Summary(pl.UTF-8): Backend PackageKit Katja | |
243 | Group: Libraries | |
244 | Requires: %{name} = %{version}-%{release} | |
245 | Provides: %{name}-backend = %{version}-%{release} | |
246 | ||
247 | %description backend-katja | |
48178e4e | 248 | Katja backend for PackageKit to enable Slackware repositories support. |
04e18045 JB |
249 | |
250 | %description backend-katja -l pl.UTF-8 | |
251 | Backend PackageKit Katja dodający obsługę repozytoriów Slackware. | |
252 | ||
253 | %package backend-pisi | |
254 | Summary: PackageKit PiSi backend | |
255 | Summary(pl.UTF-8): Backend PackageKit PiSi | |
256 | Group: Libraries | |
257 | Requires: %{name} = %{version}-%{release} | |
258 | Requires: python-packagekit = %{version}-%{release} | |
259 | #Requires: python-piksemel | |
260 | #Requires: python-pisi | |
261 | Provides: %{name}-backend = %{version}-%{release} | |
262 | ||
263 | %description backend-pisi | |
264 | A backend for PackageKit to enable PiSi packages support. PiSi | |
265 | packages are originated in Pardus distribution. | |
266 | ||
267 | %description backend-pisi -l pl.UTF-8 | |
268 | Backend PackageKit dodający obsługę pakietów PiSi. Pakiety PiSi | |
269 | wywodzą się z dystrybucji Pardus. | |
ee375c30 | 270 | |
0d5f415c ER |
271 | %package backend-poldek |
272 | Summary: PackageKit Poldek backend | |
16acf8d5 | 273 | Summary(pl.UTF-8): Backend PackageKit oparty na Poldku |
0d5f415c ER |
274 | Group: Libraries |
275 | Requires: %{name} = %{version}-%{release} | |
7cd3cbcf | 276 | Requires: poldek >= 0.30-1.rc6.4 |
16acf8d5 | 277 | Provides: %{name}-backend = %{version}-%{release} |
0d5f415c ER |
278 | |
279 | %description backend-poldek | |
04e18045 JB |
280 | A backend for PackageKit to enable RPM packages support through Poldek |
281 | - native PLD package manager. | |
0d5f415c | 282 | |
16acf8d5 | 283 | %description backend-poldek -l pl.UTF-8 |
04e18045 JB |
284 | Backend PackageKit dodający obsługę pakietów RPM poprzez Poldka - |
285 | natywnego zarządcę pakietów dystrybucji PLD. | |
286 | ||
287 | %package backend-portage | |
288 | Summary: PackageKit Portage backend | |
289 | Summary(pl.UTF-8): Backend PackageKit Portage | |
290 | Group: Libraries | |
291 | Requires: %{name} = %{version}-%{release} | |
292 | Requires: python-packagekit = %{version}-%{release} | |
293 | #Requires: python-portage | |
294 | Provides: %{name}-backend = %{version}-%{release} | |
295 | ||
296 | %description backend-portage | |
297 | A backend for PackageKit to enable Gentoo Portage support. | |
298 | ||
299 | %description backend-portage -l pl.UTF-8 | |
300 | Backend PackageKit dodający obsługę systemu Portage dystrybucji | |
301 | Gentoo. | |
302 | ||
303 | %package backend-ports | |
304 | Summary: PackageKit Ports backend | |
305 | Summary(pl.UTF-8): Backend PackageKit Ports | |
306 | Group: Libraries | |
307 | Requires: %{name} = %{version}-%{release} | |
308 | #Requires: ruby-pkgtools | |
309 | Provides: %{name}-backend = %{version}-%{release} | |
310 | ||
311 | %description backend-ports | |
312 | A backend for PackageKit to enable FreeBSD Ports support. | |
313 | ||
314 | %description backend-ports -l pl.UTF-8 | |
315 | Backend PackageKit dodający obsługę portów systemu FreeBSD. | |
316 | ||
317 | %package backend-urpmi | |
318 | Summary: PackageKit URPMI backend | |
319 | Summary(pl.UTF-8): Backend PackageKit URPMI | |
320 | Group: Libraries | |
321 | Requires: %{name} = %{version}-%{release} | |
322 | #Requires: perl-URPM | |
323 | Provides: %{name}-backend = %{version}-%{release} | |
324 | ||
325 | %description backend-urpmi | |
326 | A backend for PackageKit to enable RPM packages support through URPMI | |
327 | package manager (originated in Mandriva). | |
328 | ||
329 | %description backend-urpmi -l pl.UTF-8 | |
330 | Backend PackageKit dodający obsługę pakietów RPM poprzez zarządcę | |
331 | URPMI (pochodzącego z dystrybucji Mandriva). | |
332 | ||
333 | %package backend-zypp | |
334 | Summary: PackageKit Zypp backend | |
335 | Summary(pl.UTF-8): Backend PackageKit Zypp | |
336 | Group: Libraries | |
337 | Requires: %{name} = %{version}-%{release} | |
338 | Requires: libzypp >= 6.16.0 | |
339 | Provides: %{name}-backend = %{version}-%{release} | |
340 | ||
341 | %description backend-zypp | |
342 | A backend for PackageKit to enable RPM packages support through Zypp | |
343 | library (originated in openSUSE/SLE). | |
344 | ||
345 | %description backend-zypp -l pl.UTF-8 | |
346 | Backend PackageKit dodający obsługę pakietów RPM poprzez bibliotekę | |
347 | Zypp (pochodzącą z dystrybucji openSUSE/SLE). | |
16acf8d5 | 348 | |
d05d9108 MB |
349 | %package gstreamer-plugin |
350 | Summary: GStreamer codecs installer | |
351 | Summary(pl.UTF-8): Instalator kodeków GStreamera | |
352 | Group: Applications | |
353 | Requires: %{name} = %{version}-%{release} | |
5baab3aa | 354 | Requires: %{name}-gtk-module = %{version}-%{release} |
d05d9108 MB |
355 | |
356 | %description gstreamer-plugin | |
357 | The PackageKit GStreamer plugin allows any GStreamer application to | |
358 | install codecs from configured repositories using PackageKit. | |
359 | ||
360 | %description gstreamer-plugin -l pl.UTF-8 | |
361 | Wtyczka GStreamer pozwala każdej aplikacji używającej GStreamera | |
362 | zainstalować kodeki ze skonfigurowanych źródeł PackageKit. | |
363 | ||
364 | %package gtk-module | |
365 | Summary: GTK+ module to detect and install missing fonts | |
366 | Summary(pl.UTF-8): Moduł GTK+ do wykrywania i instalowania brakujących czcionek | |
367 | Group: X11/Libraries | |
368 | ||
369 | %description gtk-module | |
370 | The PackageKit GTK+ module allows any pango application to install | |
371 | missing fonts from configured repositories using PackageKit. | |
372 | ||
373 | %description gtk-module -l pl.UTF-8 | |
374 | Moduł GTK+ pozwala każdej aplikacji używającej pango zainstalować | |
375 | brakującą czcionkę ze skonfigurowanych źródeł PackageKit. | |
376 | ||
dac2b5e1 AF |
377 | %package gtk3-module |
378 | Summary: GTK+ 3.x module to detect and install missing fonts | |
379 | Summary(pl.UTF-8): Moduł GTK+ 3.x do wykrywania i instalowania brakujących czcionek | |
380 | Group: X11/Libraries | |
381 | ||
382 | %description gtk3-module | |
383 | The PackageKit GTK+ 3.x module allows any pango application to install | |
384 | missing fonts from configured repositories using PackageKit. | |
385 | ||
386 | %description gtk3-module -l pl.UTF-8 | |
387 | Moduł GTK+ 3.x pozwala każdej aplikacji używającej pango zainstalować | |
388 | brakującą czcionkę ze skonfigurowanych źródeł PackageKit. | |
389 | ||
a2d83637 | 390 | %package -n bash-completion-packagekit |
16acf8d5 JB |
391 | Summary: Bash completion for PackageKit console commands |
392 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów dla poleceń konsolowych PackageKit | |
a2d83637 | 393 | Group: Applications/Shells |
577193a4 JB |
394 | Requires: %{name} = %{version}-%{release} |
395 | Requires: bash-completion >= 2 | |
ead2d2f6 ER |
396 | %if "%{_rpmversion}" >= "5" |
397 | BuildArch: noarch | |
398 | %endif | |
a2d83637 MB |
399 | |
400 | %description -n bash-completion-packagekit | |
16acf8d5 | 401 | This package provides bash-completion for PackageKit console commands. |
a2d83637 MB |
402 | |
403 | %description -n bash-completion-packagekit -l pl.UTF-8 | |
16acf8d5 JB |
404 | Pakiet ten dostarcza bashowe uzupełnianie parametrów dla poleceń |
405 | konsolowych PackageKit. | |
a2d83637 | 406 | |
a2d83637 MB |
407 | %package -n python-packagekit |
408 | Summary: PackageKit Python bindings | |
409 | Summary(pl.UTF-8): Wiązania PackageKit dla Pythona | |
410 | Group: Development/Languages/Python | |
411 | Requires: python-dbus | |
412 | Requires: python-pygobject | |
413 | ||
414 | %description -n python-packagekit | |
415 | PackageKit Python bindings. | |
416 | ||
86086d14 | 417 | %description -n python-packagekit -l pl.UTF-8 |
a2d83637 MB |
418 | Wiązania PackageKit dla Pythona. |
419 | ||
dac2b5e1 AF |
420 | %package -n browser-plugin-packagekit |
421 | Summary: PackageKit's browser plugin | |
422 | Summary(pl.UTF-8): Wtyczka PackageKit do przeglądarek WWW | |
423 | Group: X11/Libraries | |
424 | Requires: %{name} = %{version}-%{release} | |
425 | Requires: browser-plugins >= 2.0 | |
426 | Requires: browser-plugins(%{_target_base_arch}) | |
427 | ||
428 | %description -n browser-plugin-packagekit | |
429 | PackageKit's plugin for browsers. | |
430 | ||
431 | %description -n browser-plugin-packagekit -l pl.UTF-8 | |
432 | Wtyczka PackageKit do przeglądarek WWW. | |
433 | ||
a2d83637 MB |
434 | %prep |
435 | %setup -q | |
d113818a | 436 | %patch0 -p1 |
02b3d2d3 | 437 | %patch1 -p1 |
04e18045 | 438 | %patch2 -p1 |
bcd7526e | 439 | %patch3 -p1 |
a2d83637 MB |
440 | |
441 | %build | |
9b8153ef | 442 | %if %{with doc} |
d05d9108 | 443 | %{__gtkdocize} |
d5617342 | 444 | %endif |
58e98be4 | 445 | %{__intltoolize} |
a2d83637 | 446 | %{__libtoolize} |
d05d9108 | 447 | %{__aclocal} -I m4 |
a2d83637 MB |
448 | %{__autoconf} |
449 | %{__autoheader} | |
450 | %{__automake} | |
04e18045 | 451 | %{?with_zypp:CPPFLAGS="%{rpmcppflags} -D_RPM_5 -I/usr/include/rpm"} |
a2d83637 | 452 | %configure \ |
d05d9108 | 453 | --disable-command-not-found \ |
577193a4 JB |
454 | --disable-dummy \ |
455 | %{!?with_doc:--disable-gtk-doc} \ | |
53810c7c | 456 | %{!?with_introspection:--disable-introspection} \ |
577193a4 JB |
457 | --disable-silent-rules \ |
458 | --enable-bash-completion=%{bash_compdir} \ | |
d06070b1 | 459 | %{__enable_disable alpm} \ |
04e18045 | 460 | %{__enable_disable apt aptcc} \ |
dac2b5e1 | 461 | %{__enable_disable browser browser-plugin} \ |
04e18045 | 462 | %{__enable_disable entropy} \ |
ee375c30 | 463 | %{__enable_disable hif} \ |
04e18045 JB |
464 | %{__enable_disable katja} \ |
465 | %{__enable_disable pisi} \ | |
dac2b5e1 | 466 | %{__enable_disable poldek} \ |
04e18045 JB |
467 | %{__enable_disable portage} \ |
468 | %{__enable_disable ports} \ | |
469 | %{__enable_disable urpmi} \ | |
470 | %{__enable_disable zypp} \ | |
577193a4 JB |
471 | --with-html-dir=%{_gtkdocdir} \ |
472 | --with-mozilla-plugin-dir=%{_browserpluginsdir} \ | |
473 | --with-security-framework=polkit | |
a2d83637 MB |
474 | %{__make} |
475 | ||
476 | %install | |
477 | rm -rf $RPM_BUILD_ROOT | |
478 | ||
479 | %{__make} install \ | |
480 | DESTDIR=$RPM_BUILD_ROOT | |
481 | ||
d05d9108 MB |
482 | # use pk-gstreamer-install as codec installer |
483 | ln -s pk-gstreamer-install $RPM_BUILD_ROOT%{_libdir}/gst-install-plugins-helper | |
484 | ||
dac2b5e1 AF |
485 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gtk-{2,3}.0/modules/*.{la,a} |
486 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.{la,a} | |
487 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/libpk_backend_test_*.so | |
488 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
489 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/PackageKit/helpers/test_spawn | |
490 | ||
491 | %if %{with browser} | |
492 | %{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/*.{la,a} | |
493 | %endif | |
a2d83637 | 494 | |
02b3d2d3 JB |
495 | # empty version of bg |
496 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/bg_BG | |
497 | # empty version of fa (empty as well BTW) | |
498 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/fa_IR | |
499 | # outdated copy of it | |
500 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/it_IT | |
9fced724 | 501 | |
a2d83637 MB |
502 | %py_postclean |
503 | ||
6808f644 MB |
504 | %find_lang %{name} |
505 | ||
a2d83637 MB |
506 | %clean |
507 | rm -rf $RPM_BUILD_ROOT | |
508 | ||
fcd0bc5c MB |
509 | %post |
510 | %update_mime_database | |
511 | ||
512 | %postun | |
513 | %update_mime_database | |
514 | ||
85d27e4f | 515 | %post libs -p /sbin/ldconfig |
a2d83637 MB |
516 | %postun libs -p /sbin/ldconfig |
517 | ||
dac2b5e1 AF |
518 | %post -n browser-plugin-packagekit |
519 | %update_browser_plugins | |
520 | ||
521 | %postun -n browser-plugin-packagekit | |
522 | if [ "$1" = 0 ]; then | |
523 | %update_browser_plugins | |
524 | fi | |
525 | ||
6808f644 | 526 | %files -f %{name}.lang |
a2d83637 | 527 | %defattr(644,root,root,755) |
02b3d2d3 | 528 | %doc AUTHORS HACKING MAINTAINERS NEWS README |
a2d83637 MB |
529 | %attr(755,root,root) %{_bindir}/pkcon |
530 | %attr(755,root,root) %{_bindir}/pkmon | |
50832223 | 531 | %attr(750,root,root) /etc/cron.daily/packagekit-background.cron |
02b3d2d3 JB |
532 | %attr(755,root,root) %{_libexecdir}/packagekit-direct |
533 | %attr(755,root,root) %{_libexecdir}/packagekitd | |
534 | %attr(755,root,root) %{_libexecdir}/pk-offline-update | |
a2d83637 | 535 | %dir %{_libdir}/packagekit-backend |
a2d83637 MB |
536 | %dir %{_sysconfdir}/PackageKit |
537 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/PackageKit.conf | |
d05d9108 | 538 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Vendor.conf |
5baab3aa ER |
539 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/packagekit-background |
540 | /etc/dbus-1/system.d/org.freedesktop.PackageKit.conf | |
d05d9108 | 541 | %dir %{_datadir}/PackageKit |
6e66a3a4 | 542 | %dir %{_datadir}/PackageKit/helpers |
d05d9108 | 543 | %attr(755,root,root) %{_datadir}/PackageKit/pk-upgrade-distro.sh |
f058dba9 | 544 | %{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy |
577193a4 | 545 | %{_datadir}/polkit-1/rules.d/org.freedesktop.packagekit.rules |
a2d83637 | 546 | %{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service |
a2d83637 | 547 | %{_mandir}/man1/pkcon.1* |
78293e06 | 548 | %{_mandir}/man1/pkmon.1* |
53810c7c | 549 | %{systemdunitdir}/packagekit.service |
7cd3cbcf | 550 | %{systemdunitdir}/packagekit-offline-update.service |
02b3d2d3 JB |
551 | %dir %{systemdunitdir}/system-update.target.wants |
552 | %{systemdunitdir}/system-update.target.wants/packagekit-offline-update.service | |
78293e06 MB |
553 | %dir /var/cache/PackageKit |
554 | %dir /var/cache/PackageKit/downloads | |
a2d83637 | 555 | %dir /var/lib/PackageKit |
d05d9108 | 556 | %ghost /var/lib/PackageKit/transactions.db |
a2d83637 MB |
557 | |
558 | %files libs | |
559 | %defattr(644,root,root,755) | |
74872af2 | 560 | %attr(755,root,root) %{_libdir}/libpackagekit-glib2.so.*.*.* |
02b3d2d3 | 561 | %attr(755,root,root) %ghost %{_libdir}/libpackagekit-glib2.so.18 |
dac2b5e1 | 562 | %{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib |
2ab9cd42 JB |
563 | # NOTE: dbus interface xmls are commonly used: |
564 | # - at runtime by packagekitd | |
565 | # - for development of applications using PK dbus interface | |
566 | %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.Transaction.xml | |
567 | %{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.xml | |
08c67dac | 568 | |
a2d83637 MB |
569 | %files devel |
570 | %defattr(644,root,root,755) | |
74872af2 | 571 | %attr(755,root,root) %{_libdir}/libpackagekit-glib2.so |
74872af2 | 572 | %{_pkgconfigdir}/packagekit-glib2.pc |
d05d9108 | 573 | %dir %{_includedir}/PackageKit |
74872af2 | 574 | %{_includedir}/PackageKit/packagekit-glib2 |
dac2b5e1 | 575 | %{_datadir}/gir-1.0/PackageKitGlib-1.0.gir |
08c67dac | 576 | |
a2d83637 MB |
577 | %files static |
578 | %defattr(644,root,root,755) | |
74872af2 | 579 | %{_libdir}/libpackagekit-glib2.a |
d05d9108 | 580 | |
8ad97aee JB |
581 | %if %{with vala} |
582 | %files -n vala-packagekit | |
583 | %defattr(644,root,root,755) | |
584 | %{_datadir}/vala/vapi/packagekit-glib2.vapi | |
585 | %endif | |
586 | ||
16acf8d5 JB |
587 | %files apidocs |
588 | %defattr(644,root,root,755) | |
589 | %{_gtkdocdir}/PackageKit | |
590 | ||
d06070b1 JB |
591 | %if %{with alpm} |
592 | %files backend-alpm | |
0d5f415c | 593 | %defattr(644,root,root,755) |
d06070b1 JB |
594 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_alpm.so |
595 | %dir %{_sysconfdir}/PackageKit/alpm.d | |
596 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/alpm.d/groups.list | |
597 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/alpm.d/pacman.conf | |
598 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/alpm.d/repos.list | |
0d5f415c ER |
599 | %endif |
600 | ||
04e18045 JB |
601 | %if %{with apt} |
602 | %files backend-aptcc | |
603 | %defattr(644,root,root,755) | |
604 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_aptcc.so | |
605 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apt/apt.conf.d/20packagekit | |
606 | %dir %{_datadir}/PackageKit/helpers/aptcc | |
607 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/aptcc/get-distro-upgrade.py | |
608 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/aptcc/pkconffile | |
609 | %{_datadir}/PackageKit/helpers/aptcc/pkconffile.nodiff | |
610 | %endif | |
611 | ||
612 | %if %{with entropy} | |
613 | %files backend-entropy | |
614 | %defattr(644,root,root,755) | |
615 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_entropy.so | |
616 | %dir %{_datadir}/PackageKit/helpers/entropy | |
617 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/entropy/entropyBackend.py | |
618 | %endif | |
619 | ||
ee375c30 JB |
620 | %if %{with hif} |
621 | %files backend-hif | |
622 | %defattr(644,root,root,755) | |
623 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_hif.so | |
624 | %endif | |
625 | ||
04e18045 JB |
626 | %if %{with katja} |
627 | %files backend-katja | |
628 | %defattr(644,root,root,755) | |
629 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_katja.so | |
630 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Katja.conf | |
631 | %dir /var/cache/PackageKit/metadata | |
632 | %ghost /var/cache/PackageKit/metadata/metadata.db | |
633 | %endif | |
634 | ||
635 | %if %{with pisi} | |
636 | %files backend-pisi | |
637 | %defattr(644,root,root,755) | |
638 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_pisi.so | |
639 | %dir %{_datadir}/PackageKit/helpers/pisi | |
640 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/pisi/pisiBackend.py | |
641 | %endif | |
642 | ||
d06070b1 JB |
643 | %if %{with poldek} |
644 | %files backend-poldek | |
645 | %defattr(644,root,root,755) | |
646 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so | |
647 | %endif | |
648 | ||
04e18045 JB |
649 | %if %{with portage} |
650 | %files backend-portage | |
651 | %defattr(644,root,root,755) | |
652 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_portage.so | |
653 | %dir %{_datadir}/PackageKit/helpers/portage | |
654 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/portage/portageBackend.py | |
655 | %endif | |
656 | ||
657 | %if %{with ports} | |
658 | %files backend-ports | |
659 | %defattr(644,root,root,755) | |
660 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_ports.so | |
661 | %dir %{_datadir}/PackageKit/helpers/ports | |
662 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/ports/portsBackend.rb | |
663 | %{_datadir}/PackageKit/helpers/ports/ruby_packagekit | |
664 | %endif | |
665 | ||
666 | %if %{with urpmi} | |
667 | %files backend-urpmi | |
668 | %defattr(644,root,root,755) | |
669 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_urpmi.so | |
670 | %dir %{_datadir}/PackageKit/helpers/urpmi | |
671 | %attr(755,root,root) %{_datadir}/PackageKit/helpers/urpmi/urpmi-dispatched-backend.pl | |
672 | %{_datadir}/PackageKit/helpers/urpmi/perl_packagekit | |
673 | %{_datadir}/PackageKit/helpers/urpmi/urpmi_backend | |
674 | %endif | |
675 | ||
676 | %if %{with zypp} | |
677 | %files backend-zypp | |
678 | %defattr(644,root,root,755) | |
679 | %attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_zypp.so | |
680 | %endif | |
681 | ||
d05d9108 MB |
682 | %files gstreamer-plugin |
683 | %defattr(644,root,root,755) | |
684 | %doc contrib/gstreamer-plugin/README | |
02b3d2d3 JB |
685 | %attr(755,root,root) %{_libexecdir}/gst-install-plugins-helper |
686 | %attr(755,root,root) %{_libexecdir}/pk-gstreamer-install | |
d05d9108 MB |
687 | |
688 | %files gtk-module | |
689 | %defattr(644,root,root,755) | |
690 | %doc contrib/gtk-module/{GLASS.txt,README} | |
691 | %attr(755,root,root) %{_libdir}/gtk-2.0/modules/libpk-gtk-module.so | |
692 | ||
dac2b5e1 AF |
693 | %files gtk3-module |
694 | %defattr(644,root,root,755) | |
695 | %attr(755,root,root) %{_libdir}/gtk-3.0/modules/libpk-gtk-module.so | |
7cd3cbcf | 696 | %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop |
dac2b5e1 | 697 | |
a2d83637 MB |
698 | %files -n bash-completion-packagekit |
699 | %defattr(644,root,root,755) | |
577193a4 | 700 | %{bash_compdir}/pkcon |
a2d83637 | 701 | |
02b3d2d3 | 702 | %if %{with python} |
a2d83637 MB |
703 | %files -n python-packagekit |
704 | %defattr(644,root,root,755) | |
705 | %dir %{py_sitescriptdir}/packagekit | |
706 | %{py_sitescriptdir}/packagekit/*.py[co] | |
02b3d2d3 | 707 | %endif |
dac2b5e1 AF |
708 | |
709 | %if %{with browser} | |
710 | %files -n browser-plugin-packagekit | |
711 | %defattr(644,root,root,755) | |
712 | %attr(755,root,root) %{_browserpluginsdir}/packagekit-plugin.so | |
713 | %endif |