]> git.pld-linux.org Git - packages/yum-utils.git/blob - yum-utils.spec
4d4c091ea0b2b97f9e9024e653766d2cda2753f4
[packages/yum-utils.git] / yum-utils.spec
1 Summary:        A collection of utilities related to yum
2 Summary(pl.UTF-8):      Zestaw narzędzi związanych z yumem
3 Name:           yum-utils
4 Version:        1.1.31
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://yum.baseurl.org/download/yum-utils/%{name}-%{version}.tar.gz
9 # Source0-md5:  b2859b89321b98f2581243536e1b4993
10 Source1:        yum-plugin-pld-kernel.py
11 Source2:        yum-plugin-pld-kernel.conf
12 URL:            http://yum.baseurl.org/download/yum-utils/
13 BuildRequires:  gettext-devel
14 BuildRequires:  rpm-pythonprov
15 BuildRequires:  rpmbuild(macros) >= 1.228
16 Requires:       python >= 1:2.5
17 Requires:       yum >= 3.2.29
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _libexecdir     %{_prefix}/lib/%{name}
22
23 %description
24 Yum-utils is a collection of utilities, plugins and examples related
25 to the yum package manager.
26
27 %description -l pl.UTF-8
28 yum-utils to zestaw narzędzi, wtyczek i przykładów związanych z
29 zarządcą pakietów yum.
30
31 %package -n yum-updateonboot
32 Summary:        Run yum update on system boot
33 Summary(pl.UTF-8):      Uruchamianie yum update przy starcie systemu
34 Group:          Base
35 Requires(post): /sbin/chkconfig
36 Requires(pre):  /sbin/chkconfig
37 Requires:       python
38 Requires:       yum >= 2.4
39
40 %description -n yum-updateonboot
41 Runs yum update on system boot. This allows machines that have been
42 turned off for an extended amount of time to become secure
43 immediately, instead of waiting until the next early morning cron job.
44
45 %description -n yum-updateonboot -l pl.UTF-8
46 Uruchamianie yum update przy starcie systemu. Pozwala to maszynom
47 wyłączonym na dłuższy czas stać się bezpiecznymi natychmiast, bez
48 czekania na kolejne poranne zadanie crona.
49
50 %package -n yum-plugin-changelog
51 Summary:        Yum plugin for viewing package changelogs before/after updating
52 Summary(pl.UTF-8):      Wtyczka yuma do oglądania list zmian pakietów przed/po uaktualnieniu
53 Group:          Base
54 # changelog requires new update_md.UpdateMetadata() API in 3.2.23
55 Requires:       python-dateutil
56 Requires:       yum >= 3.2.23
57 Obsoletes:      yum-changelog
58
59 %description -n yum-plugin-changelog
60 This plugin adds a command line option to allow viewing package
61 changelog deltas before or after updating packages.
62
63 %description -n yum-plugin-changelog -l pl.UTF-8
64 Ta wtyczka dodaje opcję linii poleceń pozwalającą oglądać przyrostowo
65 listę zmian pakietu (changelog) przed lub po uaktualnieniu.
66
67 %package -n yum-plugin-fastestmirror
68 Summary:        Yum plugin which chooses fastest repository from a mirrorlist
69 Summary(pl.UTF-8):      Wtyczka yuma wybierająca najszybsze repozytorium z listy serwerów lustrzanych
70 Group:          Base
71 Requires:       yum >= 3.0
72 Obsoletes:      yum-fastestmirror
73
74 %description -n yum-plugin-fastestmirror
75 This plugin sorts each repository's mirrorlist by connection speed
76 prior to downloading packages.
77
78 %description -n yum-plugin-fastestmirror -l pl.UTF-8
79 Ta wtyczka sortuje listy serwerów lustrzanych każdego repozytorium po
80 szybkości połączenia przed rozpoczęciem ściągania pakietów.
81
82 %package -n yum-plugin-protectbase
83 Summary:        Yum plugin to protect packages from certain repositories
84 Summary(pl.UTF-8):      Wtyczka yuma zabezpieczająca pakiety z pewnych repozytoriów
85 Group:          Base
86 Requires:       yum >= 3.0
87 Obsoletes:      yum-protectbase
88
89 %description -n yum-plugin-protectbase
90 This plugin allows certain repositories to be protected. Packages in
91 the protected repositories can't be overridden by packages in
92 non-protected repositories even if the non-protected repo has a later
93 version.
94
95 %description -n yum-plugin-protectbase -l pl.UTF-8
96 Ta wtyczka pozwala na zabezpieczenie pewnych repozytoriów. Pakiety z
97 zabezpieczonych repozytoriów nie mogą być przykryte przez pakiety z
98 repozytoriów niezabezpieczonych, nawet jeśli w niezabezpieczonym jest
99 nowsza wersja.
100
101 %package -n yum-plugin-versionlock
102 Summary:        Yum plugin to lock specified packages from being updated
103 Summary(pl.UTF-8):      Wtyczka yuma blokująca uaktualnianie określonych pakietów
104 Group:          Base
105 Requires:       yum >= 3.2.24
106 Obsoletes:      yum-versionlock
107
108 %description -n yum-plugin-versionlock
109 This plugin allows certain packages specified in a file to be
110 protected from being updated by newer versions.
111
112 %description -n yum-plugin-versionlock -l pl.UTF-8
113 Ta wtyczka pozwala chronić pewne pakiety określone w pliku przed
114 uaktualnieniem do nowszych wersji.
115
116 %package -n yum-plugin-tsflags
117 Summary:        Yum plugin to add tsflags by a commandline option
118 Summary(pl.UTF-8):      Wtyczka yuma dodająca flagi transakcji opcją linii poleceń
119 Group:          Base
120 Requires:       yum >= 3.0
121 Obsoletes:      yum-tsflags
122
123 %description -n yum-plugin-tsflags
124 This plugin allows you to specify optional transaction flags on the
125 yum command line.
126
127 %description -n yum-plugin-tsflags -l pl.UTF-8
128 Ta wtyczka pozwala określić dodatkowe flagi transakcji z linii
129 poleceń.
130
131 # TODO: figure if to remove in pld
132 %package -n yum-kernel-module
133 Summary:        Yum plugin to handle kernel-module-foo type of kernel module
134 Summary(pl.UTF-8):      Wtyczka yuma obsługująca moduły jądra typu kernel-module-foo
135 Group:          Base
136 Requires:       yum >= 3.0
137
138 %description -n yum-kernel-module
139 This plugin handle installation of kernel-module-foo type of kernel
140 modules when new version of kernels are installed.
141
142 %description -n yum-kernel-module -l pl.UTF-8
143 Ta wtyczka obsługuje instalację modułów jądra typu kernel-module-foo
144 kiedy zainstalowane są nowe wersje jądra.
145
146 %package -n yum-plugin-downloadonly
147 Summary:        Yum plugin to add downloadonly command option
148 Summary(pl.UTF-8):      Wtyczka yuma dodająca opcję linii poleceń downloadonly
149 Group:          Base
150 Requires:       yum >= 3.0
151 Obsoletes:      yum-downloadonly
152
153 %description -n yum-plugin-downloadonly
154 This plugin adds a --downloadonly flag to yum so that yum will only
155 download the packages and not install/update them.
156
157 %description -n yum-plugin-downloadonly -l pl.UTF-8
158 Ta wtyczka dodaje flagę --downloadonly do yuma, powodującą, że yum
159 tylko ściąga pakiety bez ich instalacji/uaktualniania.
160
161 %package -n yum-allowdowngrade
162 Summary:        Yum plugin to enable manual downgrading of packages
163 Summary(pl.UTF-8):      Wtyczka yuma umożliwiająca ręczne instalowanie starszych pakietów
164 Group:          Base
165 Requires:       yum >= 3.0
166
167 %description -n yum-allowdowngrade
168 This plugin adds a --allow-downgrade flag to yum to make it possible
169 to manually downgrade packages to specific versions.
170
171 %description -n yum-allowdowngrade -l pl.UTF-8
172 Ta wtyczka dodaje do yuma flagę --allow-downgrade, umożliwiającą
173 ręczne zastępowanie pakietów określonymi starszymi wersjami
174 (downgrade).
175
176 %package -n yum-plugin-pld-kernel
177 Summary:        Yum plugin to handle PLD kernel installs
178 Summary(pl.UTF-8):      Wtyczka yuma obsługująca instalację jąder PLD
179 Group:          Base
180 Requires:       yum >= 3.0
181 Obsoletes:      yum-pld-kernel
182
183 %description -n yum-plugin-pld-kernel
184 This plugin handle installation of PLD kernels.
185
186 %description -n yum-plugin-pld-kernel -l pl.UTF-8
187 Ta wtyczka obsługuje instalację jąder PLD.
188
189 %package -n yum-plugin-priorities
190 Summary:        Plugin to give priorities to packages from different repos
191 Summary(pl.UTF-8):      Wtyczka nadająca priorytety pakietom z różnych repozytoriów
192 Group:          Base
193 Requires:       yum >= 3.0
194 Obsoletes:      yum-priorities
195
196 %description -n yum-plugin-priorities
197 This plugin allows repositories to have different priorities. Packages
198 in a repository with a lower priority can't be overridden by packages
199 from a repository with a higher priority even if repo has a later
200 version.
201
202 %description -n yum-plugin-priorities -l pl.UTF-8
203 Ta wtyczka umożliwia przypisanie repozytoriom różnych priorytetów.
204 Pakiety z repozytorium o niższym priorytecie nie mogą być przykryte
205 przez pakiety z repozytorium o wyższym priorytecie nawet jeśli te
206 drugie mają nowszą wersję.
207
208 %package -n yum-plugin-refresh-updatesd
209 Summary:        Tell yum-updatesd to check for updates when yum exits
210 Summary(pl.UTF-8):      Sprawdzanie uaktualnień przez yum-updatesd przy zakończeniu yuma
211 Group:          Base
212 Requires:       yum >= 3.0
213 Requires:       yum-updatesd
214 Obsoletes:      yum-refresh-updatesd
215
216 %description -n yum-plugin-refresh-updatesd
217 yum-plugin-refresh-updatesd tells yum-updatesd to check for updates
218 when yum exits. This way, if you run 'yum update' and install all
219 available updates, puplet will almost instantly update itself to
220 reflect this.
221
222 %description -n yum-plugin-refresh-updatesd -l pl.UTF-8
223 yum-plugin-refresh-updatesd przekazuje yum-updatesd, aby sprawdzał
224 uaktualnienia kiedy yum kończy pracę. W ten sposób po uruchomieniu
225 "yum update" i zainstalowaniu wszystkich dostępnych uaktualnień puplet
226 prawie natychmiast uaktualni swoje informacje.
227
228 %package -n yum-plugin-merge-conf
229 Summary:        Yum plugin to merge configuration changes when installing packages
230 Summary(pl.UTF-8):      Wtyczka yuma do włączania zmian konfiguracji przy instalacji pakietów
231 Group:          Base
232 Requires:       yum >= 3.0
233 Obsoletes:      yum-merge-conf
234
235 %description -n yum-plugin-merge-conf
236 This yum plugin adds the "--merge-conf" command line option. With this
237 option, Yum will ask you what to do with config files which have
238 changed on updating a package.
239
240 %description -n yum-plugin-merge-conf -l pl.UTF-8
241 Ta wtyczka yuma dodaje opcję linii poleceń --merge-conf. Przy jej
242 użyciu yum pyta co zrobić z plikami konfiguracyjnymi, które zmieniły
243 się przy uaktualnianiu pakietu.
244
245 %package -n yum-plugin-security
246 Summary:        Yum plugin to enable security filters
247 Summary(pl.UTF-8):      Wtyczka yuma włączająca filtry bezpieczeństwa
248 Group:          Base
249 Requires:       yum >= 3.2.18
250 Obsoletes:      yum-security
251
252 %description -n yum-plugin-security
253 This plugin adds the options --security, --cve, --bz and --advisory
254 flags to yum and the list-security and info-security commands. The
255 options make it possible to limit list/upgrade of packages to specific
256 security relevant ones. The commands give you the security
257 information.
258
259 %description -n yum-plugin-security -l pl.UTF-8
260 Ta wtyczka dodaje do yuma flagi --security, --cve, --bz i --advisory
261 oraz polecenia list-security i info-security. Opcje te umożliwiają
262 ograniczenie listy/uaktualnień pakietów do związanych z
263 bezpieczeństwem w określony sposób. Polecenia podają informacje
264 związane z bezpieczeństwem.
265
266 %package -n yum-protect-packages
267 Summary:        Yum plugin to prevents Yum from removing itself and other protected packages
268 Summary(pl.UTF-8):      Wtyczka yuma zapobiegająca usunięciu siebie lub innych chronionych pakietów
269 Group:          Base
270 Requires:       yum >= 3.0
271
272 %description -n yum-protect-packages
273 This plugin prevents Yum from removing itself and other protected
274 packages. By default, yum is the only package protected, but by
275 extension this automatically protects everything on which yum depends
276 (rpm, python, glibc, and so on).Therefore, the plugin functions well
277 even without compiling careful lists of all important packages.
278
279 %description -n yum-protect-packages -l pl.UTF-8
280 Ta wtyczka zapobiega usunięciu przez yuma siebie samego lub innych
281 chronionych pakietów. Domyślnie jedynym chronionym pakietem jest yum,
282 ale poprzez rozszerzenie automatycznie zabezpiecza to wszystkie
283 pakiety będące zależnościami yuma (rpm, python, glibc itd.). W ten
284 sposób wtyczka funkcjonuje dobrze nawet bez troskliwego tworzenia list
285 wszystkich ważnych pakietów.
286
287 %package -n yum-basearchonly
288 Summary:        Yum plugin to let Yum install only basearch packages
289 Summary(pl.UTF-8):      Wtyczka yuma pozwalająca instalować tylko pakiety basearch
290 Group:          Base
291 Requires:       yum >= 3.0
292
293 %description -n yum-basearchonly
294 This plugin makes Yum only install basearch packages on multiarch
295 systems. If you type 'yum install foo' on a x68_64 system, only
296 'foo-x.y.x86_64.rpm' is installed. If you want to install the
297 foo-x.y.i386.rpm, you have to type 'yum install foo.i386'. The plugin
298 only works with 'yum install'.
299
300 %description -n yum-basearchonly -l pl.UTF-8
301 Ta wtyczka powoduje, że yum instaluje tylko pakiety basearch na
302 systemach multiarch. Po wpisaniu "yum install foo" na systemie x86_64
303 zostanie zainstalowany tylko "foo-x.y.x86_64.rpm. Aby zainstalować
304 foo-x.y.i386.rpm, trzeba wpisać "yum install foo.i386". Wtyczka działa
305 tylko z "yum install".
306
307 %package -n yum-plugin-upgrade-helper
308 Summary:        Yum plugin to help upgrades to the next distribution version
309 Summary(pl.UTF-8):      Wtyczka yuma pomagająca przy uaktualnianiu do kolejnej wersji dystrybucji
310 Group:          Base
311 Requires:       yum >= 3.0
312 Obsoletes:      yum-upgrade-helper
313
314 %description -n yum-plugin-upgrade-helper
315 This plugin allows yum to erase specific packages on install/update
316 based on an additional metadata file in repositories. It is used to
317 simplify distribution upgrade hangups.
318
319 %description -n yum-plugin-upgrade-helper -l pl.UTF-8
320 Ta wtyczka pozwala yumowi usunąć określone pakiety przy instalacji lub
321 uaktualnianiu w oparciu o dodatkowe pliki metadanych w repozytoriach.
322 Służy do uproszczenia uaktualnień wersji dystrybucji.
323
324 %package -n yum-plugin-aliases
325 Summary:        Yum plugin to enable aliases filters
326 Summary(pl.UTF-8):      Wtyczka yuma włączająca filtry aliasów
327 Group:          Base
328 # Requires args_hook
329 Requires:       yum >= 3.2.23
330 Requires:       yum-utils-translations = %{version}-%{release}
331 Obsoletes:      yum-aliases
332
333 %description -n yum-plugin-aliases
334 This plugin adds the command alias, and parses the aliases config.
335 file to enable aliases.
336
337 %description -n yum-plugin-aliases -l pl.UTF-8
338 Ta wtyczka dodaje polecenie alias i analizuje konfigurację aliasów w
339 celu włączenia aliasów.
340
341 %package -n yum-plugin-list-data
342 Summary:        Yum plugin to list aggregate package data
343 Summary(pl.UTF-8):      Wtyczka yuma wypisująca zagregowane dane pakietów
344 Group:          Base
345 Requires:       yum >= 3.0.5
346 Obsoletes:      yum-list-data
347
348 %description -n yum-plugin-list-data
349 This plugin adds the commands list- vendors, groups, packagers,
350 licenses, arches, committers, buildhosts, baseurls, package-sizes,
351 archive-sizes and installed-sizes.
352
353 %description -n yum-plugin-list-data -l pl.UTF-8
354 Ta wtyczka dodaje polecenia list- vendors, groups, packagers,
355 licenses, arches, committers, buildhosts, baseurls, package-sizes,
356 archive-sizes i installed-sizes.
357
358 %package -n yum-plugin-filter-data
359 Summary:        Yum plugin to list filter based on package data
360 Summary(pl.UTF-8):      Wtyczka yuma dodająca filtry oparte na danych pakietu
361 Group:          Base
362 Requires:       yum >= 3.2.17
363 Obsoletes:      yum-filter-data
364
365 %description -n yum-plugin-filter-data
366 This plugin adds the options --filter- vendors, groups, packagers,
367 licenses, arches, committers, buildhosts, baseurls, package-sizes,
368 archive-sizes and installed-sizes. Note that each package must match
369 at least one pattern/range in each category, if any were specified.
370
371 %description -n yum-plugin-filter-data -l pl.UTF-8
372 Ta wtyczka dodaje opcje --filter- vendors, groups, packagers,
373 licenses, arches, committers, buildhosts, baseurls, package-sizes,
374 archive-sizes i installed-sizes. Każdy pakiet musi pasować do
375 przynajmniej jednego wzorca/zakresu w każdej wybranej kategorii.
376
377 %package -n yum-plugin-tmprepo
378 Summary:        Yum plugin to add temporary repositories
379 Summary(pl.UTF-8):      Wtyczka yuma dodająca repozytoria tymczasowe
380 Group:          Base
381 Requires:       createrepo
382 Requires:       yum >= 3.2.11
383 Obsoletes:      yum-tmprepo
384
385 %description -n yum-plugin-tmprepo
386 This plugin adds the option --tmprepo which takes a URL to a .repo
387 file downloads it and enables it for a single run. This plugin tries
388 to ensure that temporary repositories are safe to use, by default, by
389 not allowing gpg checking to be disabled.
390
391 %description -n yum-plugin-tmprepo -l pl.UTF-8
392 Ta wtyczka dodaje opcję --tmprepo przyjmującą URL do pliku .repo i
393 włączająca go dla jednego uruchomienia. Wtyczka próbuje zapewnić
394 bezpieczne użycie repozytoriów tymczasowych domyślnie nie pozwalając
395 na wyłączenie sprawdzania gpg.
396
397 %package -n yum-plugin-verify
398 Summary:        Yum plugin to add verify command, and options
399 Summary(pl.UTF-8):      Wtyczka yuma dodająca polecenie i opcje weryfikacji
400 Group:          Base
401 Requires:       yum >= 3.2.12
402 Obsoletes:      yum-verify
403
404 %description -n yum-plugin-verify
405 This plugin adds the commands verify, verify-all and verify-rpm. There
406 are also a couple of options. This command works like rpm -V, to
407 verify your installation.
408
409 %description -n yum-plugin-verify -l pl.UTF-8
410 Ta wtyczka dodaje polecenia verify, verify-all i verify-rpm, a także
411 kilka opcji. Działa podobnie jak rpm -V, weryfikując instalację.
412
413 %package -n yum-plugin-keys
414 Summary:        Yum plugin to deal with signing keys
415 Group:          Base
416 Requires:       yum >= 3.2.19
417
418 %description -n yum-plugin-keys
419 This plugin adds the commands keys, keys-info, keys-data and
420 keys-remove. They allow you to query and remove signing keys.
421
422 %package -n yum-plugin-remove-with-leaves
423 Summary:        Yum plugin to remove dependencies which are no longer used because of a removal
424 Group:          Base
425 Requires:       yum >= 3.2.19
426
427 %description -n yum-plugin-remove-with-leaves
428 This plugin removes any unused dependencies that were brought in by an
429 install but would not normally be removed. It helps to keep a system
430 clean of unused libraries and packages.
431
432 %package -n yum-plugin-post-transaction-actions
433 Summary:        Yum plugin to run arbitrary commands when certain pkgs are acted on
434 Group:          Base
435 Requires:       yum >= 3.2.19
436
437 %description -n yum-plugin-post-transaction-actions
438 This plugin allows the user to run arbitrary actions immediately
439 following a transaction when specified packages are changed.
440
441 %package -n yum-NetworkManager-dispatcher
442 Summary:        NetworkManager script which tells yum to check it's cache on network change
443 Group:          Base
444 Requires:       yum >= 3.2.17
445
446 %description -n yum-NetworkManager-dispatcher
447 This NetworkManager "dispatch script" forces yum to check its cache
448 if/when a new network connection happens in NetworkManager. Note that
449 currently there is no checking of previous data, so if your WiFi keeps
450 going up and down (or you suspend/resume a lot) yum will recheck its
451 cached data a lot.
452
453 %package -n yum-plugin-rpm-warm-cache
454 Summary:        Yum plugin to access the rpmdb files early to warm up access to the db
455 Group:          Base
456 Requires:       yum >= 3.2.19
457
458 %description -n yum-plugin-rpm-warm-cache
459 This plugin reads the rpmdb files into the system cache before
460 accessing the rpmdb directly. In some cases this should speed up
461 access to rpmdb information
462
463 # Works by searching for *-debuginfo ... so it shouldn't trigger on
464 itself.
465 %package -n yum-plugin-auto-update-debug-info
466 Summary:        Yum plugin to enable automatic updates to installed debuginfo packages
467 Group:          Base
468 Requires:       yum >= 3.2.19
469
470 %description -n yum-plugin-auto-update-debug-info
471 This plugin looks to see if any debuginfo packages are installed, and
472 if there are it enables all debuginfo repositories that are "children"
473 of enabled repositories.
474
475 %package -n yum-plugin-show-leaves
476 Summary:        Yum plugin which shows newly installed leaf packages
477 Group:          Base
478 Requires:       yum >= 3.2.23
479
480 %description -n yum-plugin-show-leaves
481 Yum plugin which shows newly installed leaf packages and packages that
482 became leaves after a transaction
483
484 %package -n yum-plugin-local
485 Summary:        Yum plugin to automatically manage a local repo. of downloaded packages
486 Group:          Base
487 # Who the hell knows what version:)
488 Requires:       createrepo
489 Requires:       yum >= 3.2.22
490
491 %description -n yum-plugin-local
492 When this plugin is installed it will automatically copy all
493 downloaded packages to a repository on the local filesystem, and
494 (re)build that repository. This means that anything you've downloaded
495 will always exist, even if the original repo. removes it (and can
496 thus. be reinstalled/downgraded/etc.).
497
498 %package -n yum-plugin-fs-snapshot
499 Summary:        Yum plugin to automatically snapshot your filesystems during updates
500 Group:          Base
501 Requires:       yum >= 3.2.22
502
503 %description -n yum-plugin-fs-snapshot
504 When this plugin is installed it will automatically snapshot any
505 filesystem that is touched by the packages in a yum update or yum
506 remove.
507
508 %package -n yum-plugin-ps
509 Summary:        Yum plugin to look at processes, with respect to packages
510 Group:          Base
511 Requires:       yum >= 3.2.27
512
513 %description -n yum-plugin-ps
514 When this plugin is installed it adds the yum command "ps", which
515 allows you to see which running processes are accociated with which
516 packages (and if they need rebooting, or have updates, etc.)
517
518 %package -n yum-plugin-puppetverify
519 Summary:        Yum plugin to add puppet checksums to verify data
520 Group:          Base
521 Requires:       PyYAML >= 3.09
522 Requires:       puppet
523 Requires:       yum >= 3.2.12
524 Provides:       yum-puppetverify = %{version}-%{release}
525
526 %description -n yum-plugin-puppetverify
527 Supplies checksums for files in packages from puppet's state file.
528
529 %prep
530 %setup -q
531
532 mv plugins/README README.plugins
533
534 %build
535 %{__make}
536
537 %install
538 rm -rf $RPM_BUILD_ROOT
539 %{__make} install \
540         PYLIBDIR=%{py_scriptdir} \
541         DESTDIR=$RPM_BUILD_ROOT
542 %{__make} -C updateonboot install \
543         DESTDIR=$RPM_BUILD_ROOT
544
545 # Plugins to install
546 plugins="
547 changelog
548 fastestmirror
549 protectbase
550 versionlock
551 tsflags
552 kernel-module
553 downloadonly
554 allowdowngrade
555 priorities
556 refresh-updatesd
557 merge-conf
558 security
559 basearchonly
560 upgrade-helper
561 aliases
562 list-data
563 filter-data
564 tmprepo
565 verify
566
567 keys
568 remove-with-leaves
569 post-transaction-actions
570 rpm-warm-cache
571 auto-update-debuginfo
572 show-leaves
573 local
574 fs-snapshot
575 ps
576 puppetverify
577 "
578
579 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/yum/{pluginconf.d,post-actions},%{_libexecdir}}
580
581 cd plugins
582 for plug in $plugins; do
583         cp -p $plug/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d
584         cp -p $plug/*.py $RPM_BUILD_ROOT%{_libexecdir}
585 done
586
587 cp -p aliases/aliases $RPM_BUILD_ROOT%{_sysconfdir}/yum/aliases.conf
588 cp -p versionlock/versionlock.list $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d
589
590 # need for for the ghost in files section of yum-plugin-local
591 install -d $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
592 touch $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d/_local.repo
593
594 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_libexecdir}/pld-kernel.py
595 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d/pld-kernel.conf
596
597 %py_postclean
598
599 %clean
600 rm -rf $RPM_BUILD_ROOT
601
602 %post -n yum-updateonboot
603 /sbin/chkconfig --add yum-updateonboot
604
605 %preun -n yum-updateonboot
606 if [ "$1" = 0 ]; then
607         %service yum-updateonboot stop
608         /sbin/chkconfig --del yum-updateonboot
609 fi
610
611 %files
612 %defattr(644,root,root,755)
613 %doc ChangeLog README README.plugins TODO
614 %doc yum-util-cli-template
615 %attr(755,root,root) %{_bindir}/debuginfo-install
616 %attr(755,root,root) %{_bindir}/find-repos-of-install
617 %attr(755,root,root) %{_bindir}/needs-restarting
618 %attr(755,root,root) %{_bindir}/package-cleanup
619 %attr(755,root,root) %{_bindir}/repo-graph
620 %attr(755,root,root) %{_bindir}/repo-rss
621 %attr(755,root,root) %{_bindir}/repoclosure
622 %attr(755,root,root) %{_bindir}/repodiff
623 %attr(755,root,root) %{_bindir}/repomanage
624 %attr(755,root,root) %{_bindir}/repoquery
625 %attr(755,root,root) %{_bindir}/reposync
626 %attr(755,root,root) %{_bindir}/repotrack
627 %attr(755,root,root) %{_bindir}/show-changed-rco
628 %attr(755,root,root) %{_bindir}/show-installed
629 %attr(755,root,root) %{_bindir}/verifytree
630 %attr(755,root,root) %{_bindir}/yum-builddep
631 %attr(755,root,root) %{_bindir}/yum-config-manager
632 %attr(755,root,root) %{_bindir}/yum-debug-dump
633 %attr(755,root,root) %{_bindir}/yum-debug-restore
634 %attr(755,root,root) %{_bindir}/yum-groups-manager
635 %attr(755,root,root) %{_bindir}/yumdownloader
636 %attr(755,root,root) %{_sbindir}/yum-complete-transaction
637 %attr(755,root,root) %{_sbindir}/yumdb
638 %dir %{py_sitescriptdir}/yumutils
639 %{py_sitescriptdir}/yumutils/*.py[co]
640 %{_mandir}/man1/debuginfo-install.1*
641 %{_mandir}/man1/package-cleanup.1.*
642 %{_mandir}/man1/repo-rss.1.*
643 %{_mandir}/man1/repodiff.1*
644 %{_mandir}/man1/repoquery.1.*
645 %{_mandir}/man1/reposync.1.*
646 %{_mandir}/man1/show-changed-rco.1*
647 %{_mandir}/man1/show-installed.1*
648 %{_mandir}/man1/yum-aliases.1*
649 %{_mandir}/man1/yum-builddep.1.*
650 %{_mandir}/man1/yum-debug-dump.1*
651 %{_mandir}/man1/yum-fs-snapshot.1*
652 %{_mandir}/man1/yum-groups-manager.1*
653 %{_mandir}/man1/yum-utils.1.*
654 %{_mandir}/man1/yum-versionlock.1*
655 %{_mandir}/man1/yumdownloader.1.*
656 %{_mandir}/man5/yum-fs-snapshot.conf.5*
657 %{_mandir}/man5/yum-versionlock.conf.5*
658 %{_mandir}/man8/yum-complete-transaction.8.*
659 %{_mandir}/man8/yumdb.8*
660
661 %files -n yum-updateonboot
662 %defattr(644,root,root,755)
663 %doc updateonboot/README
664 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/yum-updateonboot
665 %attr(754,root,root) /etc/rc.d/init.d/yum-updateonboot
666
667 %files -n yum-plugin-changelog
668 %defattr(644,root,root,755)
669 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/changelog.conf
670 %{_libexecdir}/changelog.*
671 %{_mandir}/man1/yum-changelog.1.*
672 %{_mandir}/man5/yum-changelog.conf.5.*
673
674 %files -n yum-plugin-fastestmirror
675 %defattr(644,root,root,755)
676 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/fastestmirror.conf
677 %{_libexecdir}/fastestmirror.*
678
679 %files -n yum-plugin-protectbase
680 %defattr(644,root,root,755)
681 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/protectbase.conf
682 %{_libexecdir}/protectbase.*
683
684 %files -n yum-plugin-versionlock
685 %defattr(644,root,root,755)
686 %doc plugins/versionlock/README
687 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/versionlock.conf
688 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/versionlock.list
689 %{_libexecdir}/versionlock.*
690
691 %files -n yum-plugin-tsflags
692 %defattr(644,root,root,755)
693 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/tsflags.conf
694 %{_libexecdir}/tsflags.*
695
696 # TODO: remove in pld? removed in fedora
697 %files -n yum-kernel-module
698 %defattr(644,root,root,755)
699 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/kernel-module.conf
700 %{_libexecdir}/kernel-module.*
701
702 %files -n yum-plugin-downloadonly
703 %defattr(644,root,root,755)
704 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/downloadonly.conf
705 %{_libexecdir}/downloadonly.*
706
707 # TODO: remove like fedora?
708 %files -n yum-allowdowngrade
709 %defattr(644,root,root,755)
710 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/allowdowngrade.conf
711 %{_libexecdir}/allowdowngrade.*
712
713 %files -n yum-plugin-pld-kernel
714 %defattr(644,root,root,755)
715 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/pld-kernel.conf
716 %{_libexecdir}/pld-kernel.*
717
718 %files -n yum-plugin-priorities
719 %defattr(644,root,root,755)
720 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/priorities.conf
721 %{_libexecdir}/priorities.*
722
723 %files -n yum-plugin-refresh-updatesd
724 %defattr(644,root,root,755)
725 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/refresh-updatesd.conf
726 %{_libexecdir}/refresh-updatesd.*
727
728 %files -n yum-plugin-merge-conf
729 %defattr(644,root,root,755)
730 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/merge-conf.conf
731 %{_libexecdir}/merge-conf.*
732
733 %files -n yum-plugin-security
734 %defattr(644,root,root,755)
735 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/security.conf
736 %{_libexecdir}/security.*
737 %{_mandir}/man8/yum-security.8.*
738
739 %if 0
740 # TODO: renamed to protectbase?
741 %files -n yum-protect-packages
742 %defattr(644,root,root,755)
743 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/protect-packages.conf
744 %{_libexecdir}/protect-packages.*
745 %endif
746
747 # TODO: rename to basearchonly like fedora?
748 %files -n yum-basearchonly
749 %defattr(644,root,root,755)
750 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/basearchonly.conf
751 %{_libexecdir}/basearchonly.*
752
753 %files -n yum-plugin-upgrade-helper
754 %defattr(644,root,root,755)
755 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/upgrade-helper.conf
756 %{_libexecdir}/upgrade-helper.*
757
758 %files -n yum-plugin-aliases
759 %defattr(644,root,root,755)
760 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/aliases.conf
761 %config(noreplace) %{_sysconfdir}/yum/aliases.conf
762 %{_libexecdir}/aliases.*
763
764 %files -n yum-plugin-list-data
765 %defattr(644,root,root,755)
766 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/list-data.conf
767 %{_libexecdir}/list-data.*
768 %{_mandir}/man1/yum-list-data.1.*
769
770 %files -n yum-plugin-filter-data
771 %defattr(644,root,root,755)
772 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/filter-data.conf
773 %{_libexecdir}/filter-data.*
774 %{_mandir}/man1/yum-filter-data.1.*
775
776 %files -n yum-plugin-tmprepo
777 %defattr(644,root,root,755)
778 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/tmprepo.conf
779 %{_libexecdir}/tmprepo.*
780
781 %files -n yum-plugin-verify
782 %defattr(644,root,root,755)
783 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/verify.conf
784 %{_libexecdir}/verify.*
785 %{_mandir}/man1/yum-verify.1.*
786
787 %files -n yum-plugin-keys
788 %defattr(644,root,root,755)
789 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/keys.conf
790 %{_libexecdir}/keys.*
791
792 %files -n yum-NetworkManager-dispatcher
793 %defattr(644,root,root,755)
794 %{_sysconfdir}/NetworkManager/dispatcher.d/yum-NetworkManager-dispatcher
795
796 %files -n yum-plugin-remove-with-leaves
797 %defattr(644,root,root,755)
798 %{_libexecdir}/remove-with-leaves.*
799 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/remove-with-leaves.conf
800
801 %files -n yum-plugin-post-transaction-actions
802 %defattr(644,root,root,755)
803 %{_libexecdir}/post-transaction-actions.*
804 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/post-transaction-actions.conf
805 %doc plugins/post-transaction-actions/sample.action
806 # Default *.action file dropping dir.
807 %dir %{_sysconfdir}/yum/post-actions
808
809 %files -n yum-plugin-rpm-warm-cache
810 %defattr(644,root,root,755)
811 %{_libexecdir}/rpm-warm-cache.*
812 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/rpm-warm-cache.conf
813
814 %files -n yum-plugin-auto-update-debug-info
815 %defattr(644,root,root,755)
816 %{_libexecdir}/auto-update-debuginfo.*
817 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/auto-update-debuginfo.conf
818
819 %files -n yum-plugin-show-leaves
820 %defattr(644,root,root,755)
821 %{_libexecdir}/show-leaves.*
822 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/show-leaves.conf
823
824 %files -n yum-plugin-local
825 %defattr(644,root,root,755)
826 %ghost %{_sysconfdir}/yum.repos.d/_local.repo
827 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/local.conf
828 %{_libexecdir}/local.*
829
830 %files -n yum-plugin-fs-snapshot
831 %defattr(644,root,root,755)
832 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/fs-snapshot.conf
833 %{_libexecdir}/fs-snapshot.*
834 %{_mandir}/man1/yum-fs-snapshot.1.*
835 %{_mandir}/man5/yum-fs-snapshot.conf.5.*
836
837 %files -n yum-plugin-ps
838 %defattr(644,root,root,755)
839 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/ps.conf
840 %{_libexecdir}/ps.*
841
842 %files -n yum-plugin-puppetverify
843 %defattr(644,root,root,755)
844 %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/puppetverify.conf
845 %{_libexecdir}/puppetverify.*
This page took 0.128727 seconds and 3 git commands to generate.