]>
Commit | Line | Data |
---|---|---|
f5db57ea | 1 | Summary: A collection of utilities related to yum |
765ff573 | 2 | Summary(pl.UTF-8): Zestaw narzędzi związanych z yumem |
f5db57ea | 3 | Name: yum-utils |
73658a04 | 4 | Version: 1.1.13 |
5cac16e8 | 5 | Release: 0.2 |
f5db57ea PZ |
6 | License: GPL |
7 | Group: Applications/System | |
73658a04 ER |
8 | Source0: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 29eedb17fd40b158c129c84dc865d889 | |
5cac16e8 ER |
10 | Source1: yum-plugin-pld-kernel.py |
11 | Source2: yum-plugin-pld-kernel.conf | |
73658a04 | 12 | URL: http://linux.duke.edu/yum/download/yum-utils/ |
f5db57ea PZ |
13 | BuildRequires: gettext-devel |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.228 | |
765ff573 | 16 | Requires: python >= 1:2.5 |
73658a04 | 17 | Requires: yum >= 3.1.1 |
f5db57ea PZ |
18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
765ff573 JB |
22 | Yum-utils is a collection of utilities, plugins and examples related |
23 | to the yum package manager. | |
f5db57ea PZ |
24 | |
25 | %description -l pl.UTF-8 | |
765ff573 JB |
26 | yum-utils to zestaw narzędzi, wtyczek i przykładów związanych z |
27 | zarządcą pakietów yum. | |
f5db57ea | 28 | |
73658a04 ER |
29 | %package -n yum-updateonboot |
30 | Summary: Run yum update on system boot | |
31 | Group: Base | |
32 | Requires(post): /sbin/chkconfig | |
33 | Requires(pre): /sbin/chkconfig | |
34 | Requires: python | |
35 | Requires: yum >= 2.4 | |
36 | ||
37 | %description -n yum-updateonboot | |
38 | Runs yum update on system boot. This allows machines that have been | |
39 | turned off for an extended amount of time to become secure | |
40 | immediately, instead of waiting until the next early morning cron job. | |
41 | ||
42 | %package -n yum-changelog | |
43 | Summary: Yum plugin for viewing package changelogs before/after updating | |
44 | Group: Base | |
45 | Requires: yum >= 3.0 | |
46 | ||
47 | %description -n yum-changelog | |
48 | This plugin adds a command line option to allow viewing package | |
49 | changelog deltas before or after updating packages. | |
50 | ||
51 | %package -n yum-fastestmirror | |
52 | Summary: Yum plugin which chooses fastest repository from a mirrorlist | |
53 | Group: Base | |
54 | Requires: yum >= 3.0 | |
55 | ||
56 | %description -n yum-fastestmirror | |
57 | This plugin sorts each repository's mirrorlist by connection speed | |
58 | prior to downloading packages. | |
59 | ||
60 | %package -n yum-protectbase | |
61 | Summary: Yum plugin to protect packages from certain repositories | |
62 | Group: Base | |
63 | Requires: yum >= 3.0 | |
64 | ||
65 | %description -n yum-protectbase | |
66 | This plugin allows certain repositories to be protected. Packages in | |
67 | the protected repositories can't be overridden by packages in | |
68 | non-protected repositories even if the non-protected repo has a later | |
69 | version. | |
70 | ||
71 | %package -n yum-versionlock | |
72 | Summary: Yum plugin to lock specified packages from being updated | |
73 | Group: Base | |
74 | Requires: yum >= 3.0 | |
75 | ||
76 | %description -n yum-versionlock | |
77 | This plugin allows certain packages specified in a file to be | |
78 | protected from being updated by newer versions. | |
79 | ||
80 | %package -n yum-tsflags | |
81 | Summary: Yum plugin to add tsflags by a commandline option | |
82 | Group: Base | |
83 | Requires: yum >= 3.0 | |
84 | ||
85 | %description -n yum-tsflags | |
86 | This plugin allows you to specify optional transaction flags on the | |
87 | yum command line | |
88 | ||
89 | %package -n yum-kernel-module | |
90 | Summary: Yum plugin to handle kernel-module-foo type of kernel module | |
91 | Group: Base | |
92 | Requires: yum >= 3.0 | |
93 | ||
94 | %description -n yum-kernel-module | |
95 | This plugin handle installation of kernel-module-foo type of kernel | |
96 | modules when new version of kernels are installed. | |
97 | ||
98 | ||
99 | %package -n yum-downloadonly | |
100 | Summary: Yum plugin to add downloadonly command option | |
101 | Group: Base | |
102 | Requires: yum >= 3.0 | |
103 | ||
104 | %description -n yum-downloadonly | |
105 | This plugin adds a --downloadonly flag to yum so that yum will only | |
106 | download the packages and not install/update them. | |
107 | ||
108 | %package -n yum-allowdowngrade | |
109 | Summary: Yum plugin to enable manual downgrading of packages | |
110 | Group: Base | |
111 | Requires: yum >= 3.0 | |
112 | ||
113 | %description -n yum-allowdowngrade | |
114 | This plugin adds a --allow-downgrade flag to yum to make it possible | |
115 | to manually downgrade packages to specific versions. | |
116 | ||
117 | %package -n yum-skip-broken | |
118 | Summary: Yum plugin to handle skiping packages with dependency problems | |
119 | Group: Base | |
120 | Requires: yum >= 3.0 | |
121 | ||
122 | %description -n yum-skip-broken | |
123 | This plugin adds a --skip-broken to yum to make it possible to check | |
124 | packages for dependency problems and skip the one with problems. | |
125 | ||
5cac16e8 ER |
126 | %package -n yum-pld-kernel |
127 | Summary: Yum plugin to handle pld kernel installs | |
128 | Group: Base | |
129 | Requires: yum >= 3.0 | |
130 | ||
131 | %description -n yum-pld-kernel | |
132 | This plugin handle installation of pld kernels | |
133 | ||
73658a04 ER |
134 | %package -n yum-priorities |
135 | Summary: plugin to give priorities to packages from different repos | |
136 | Group: Base | |
137 | Requires: yum >= 3.0 | |
138 | ||
139 | %description -n yum-priorities | |
140 | This plugin allows repositories to have different priorities. Packages | |
141 | in a repository with a lower priority can't be overridden by packages | |
142 | from a repository with a higher priority even if repo has a later | |
143 | version. | |
144 | ||
145 | %package -n yum-refresh-updatesd | |
146 | Summary: Tell yum-updatesd to check for updates when yum exits | |
147 | Group: Base | |
148 | Requires: yum >= 3.0 | |
149 | Requires: yum-updatesd | |
150 | ||
151 | %description -n yum-refresh-updatesd | |
152 | yum-refresh-updatesd tells yum-updatesd to check for updates when yum | |
153 | exits. This way, if you run 'yum update' and install all available | |
154 | updates, puplet will almost instantly update itself to reflect this. | |
155 | ||
156 | %package -n yum-merge-conf | |
157 | Summary: Yum plugin to merge configuration changes when installing packages | |
158 | Group: Base | |
159 | Requires: yum >= 3.0 | |
160 | ||
161 | %description -n yum-merge-conf | |
162 | This yum plugin adds the "--merge-conf" command line option. With this | |
163 | option, Yum will ask you what to do with config files which have | |
164 | changed on updating a package. | |
165 | ||
166 | %package -n yum-security | |
167 | Summary: Yum plugin to enable security filters | |
168 | Group: Base | |
169 | Requires: yum >= 3.0.5 | |
170 | ||
171 | %description -n yum-security | |
172 | This plugin adds the options --security, --cve, --bz and --advisory | |
173 | flags to yum and the list-security and info-security commands. The | |
174 | options make it possible to limit list/upgrade of packages to specific | |
175 | security relevant ones. The commands give you the security | |
176 | information. | |
177 | ||
178 | %package -n yum-protect-packages | |
179 | Summary: Yum plugin to prevents Yum from removing itself and other protected packages | |
180 | Group: Base | |
181 | Requires: yum >= 3.0 | |
182 | ||
183 | %description -n yum-protect-packages | |
184 | this plugin prevents Yum from removing itself and other protected | |
185 | packages. By default, yum is the only package protected, but by | |
186 | extension this automatically protects everything on which yum depends | |
187 | (rpm, python, glibc, and so on).Therefore, the plugin functions well | |
188 | even without compiling careful lists of all important packages. | |
189 | ||
190 | %package -n yum-basearchonly | |
191 | Summary: Yum plugin to let Yum install only basearch packages | |
192 | Group: Base | |
193 | Requires: yum >= 3.0 | |
194 | ||
195 | %description -n yum-basearchonly | |
196 | this plugin makes Yum only install basearch packages on multiarch | |
197 | systems. If you type 'yum install foo' on a x68_64 system, only | |
198 | 'foo-x.y.x86_46.rpm' is installed. If you want to install the | |
199 | foo-x.y.i386.rpm, you have to type 'yum install foo.i386'. The plugin | |
200 | only works with 'yum install'. | |
201 | ||
202 | %package -n yum-upgrade-helper | |
203 | Summary: Yum plugin to help upgrades to the next distribution version | |
204 | Group: Base | |
205 | Requires: yum >= 3.0 | |
206 | ||
207 | %description -n yum-upgrade-helper | |
208 | this plugin allows yum to erase specific packages on install/update | |
209 | based on an additional metadata file in repositories. It is used to | |
210 | simplify distribution upgrade hangups. | |
211 | ||
212 | %package -n yum-aliases | |
213 | Summary: Yum plugin to enable aliases filters | |
214 | Group: Base | |
215 | Requires: yum >= 3.0.5 | |
216 | ||
217 | %description -n yum-aliases | |
218 | This plugin adds the command alias, and parses the aliases config. | |
219 | file to enable aliases. | |
220 | ||
221 | %package -n yum-list-data | |
222 | Summary: Yum plugin to list aggregate package data | |
223 | Group: Base | |
224 | Requires: yum >= 3.0.5 | |
225 | ||
226 | %description -n yum-list-data | |
227 | This plugin adds the commands list- vendors, groups, packagers, | |
228 | licenses, arches, committers, buildhosts, baseurls, package-sizes, | |
229 | archive-sizes and installed-sizes. | |
230 | ||
231 | %package -n yum-filter-data | |
232 | Summary: Yum plugin to list filter based on package data | |
233 | Group: Base | |
234 | Requires: yum >= 3.0.5 | |
235 | ||
236 | %description -n yum-filter-data | |
237 | This plugin adds the options --filter- vendors, groups, packagers, | |
238 | licenses, arches, committers, buildhosts, baseurls, package-sizes, | |
239 | archive-sizes and installed-sizes. Note that each package must match | |
240 | at least one pattern/range in each category, if any were specified. | |
241 | ||
242 | %package -n yum-tmprepo | |
243 | Summary: Yum plugin to add temporary repositories | |
244 | Group: Base | |
245 | Requires: yum >= 3.2.11 | |
246 | ||
247 | %description -n yum-tmprepo | |
248 | This plugin adds the option --tmprepo which takes a url to a .repo | |
249 | file downloads it and enables it for a single run. This plugin tries | |
250 | to ensure that temporary repositories are safe to use, by default, by | |
251 | not allowing gpg checking to be disabled. | |
252 | ||
253 | %package -n yum-verify | |
254 | Summary: Yum plugin to add verify command, and options | |
255 | Group: Base | |
256 | Requires: yum >= 3.2.12 | |
257 | ||
258 | %description -n yum-verify | |
259 | This plugin adds the commands verify, verify-all and verify-rpm. There | |
260 | are also a couple of options. This command works like rpm -V, to | |
261 | verify your installation. | |
262 | ||
f5db57ea PZ |
263 | %prep |
264 | %setup -q | |
73658a04 ER |
265 | |
266 | mv plugins/README README.plugins | |
f5db57ea PZ |
267 | |
268 | %build | |
269 | %{__make} | |
270 | ||
271 | %install | |
272 | rm -rf $RPM_BUILD_ROOT | |
273 | ||
73658a04 ER |
274 | %{__make} DESTDIR=$RPM_BUILD_ROOT install |
275 | %{__make} -C updateonboot DESTDIR=$RPM_BUILD_ROOT install | |
f5db57ea PZ |
276 | |
277 | # Plugins to install | |
73658a04 ER |
278 | plugins="changelog fastestmirror protectbase versionlock tsflags kernel-module \ |
279 | downloadonly allowdowngrade skip-broken priorities refresh-updatesd merge-conf \ | |
280 | security protect-packages basearchonly upgrade-helper aliases list-data filter-data tmprepo verify" | |
281 | ||
282 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT%{_datadir}/yum-plugins | |
f5db57ea PZ |
283 | |
284 | cd plugins | |
285 | for plug in $plugins; do | |
73658a04 | 286 | install -m 644 $plug/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d |
5cac16e8 | 287 | install $plug/*.py $RPM_BUILD_ROOT%{_datadir}/yum-plugins |
f5db57ea | 288 | done |
5cac16e8 ER |
289 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/yum-plugins/pld-kernel.py |
290 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d/pld-kernel.conf | |
291 | ||
73658a04 ER |
292 | install aliases/aliases $RPM_BUILD_ROOT%{_sysconfdir}/yum/aliases.conf |
293 | install versionlock/versionlock.list $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d | |
f5db57ea PZ |
294 | |
295 | %py_postclean | |
296 | ||
297 | %clean | |
298 | rm -rf $RPM_BUILD_ROOT | |
299 | ||
73658a04 ER |
300 | %post -n yum-updateonboot |
301 | /sbin/chkconfig --add yum-updateonboot | |
302 | ||
303 | %preun -n yum-updateonboot | |
304 | if [ $1 = 0 ]; then | |
305 | %service yum-updateonboot stop | |
306 | /sbin/chkconfig --del yum-updateonboot | |
307 | fi | |
308 | ||
f5db57ea PZ |
309 | %files |
310 | %defattr(644,root,root,755) | |
73658a04 ER |
311 | %doc ChangeLog README README.plugins TODO |
312 | %doc yum-util-cli-template | |
f5db57ea PZ |
313 | %attr(755,root,root) %{_bindir}/debuginfo-install |
314 | %attr(755,root,root) %{_bindir}/package-cleanup | |
f5db57ea | 315 | %attr(755,root,root) %{_bindir}/repo-graph |
73658a04 ER |
316 | %attr(755,root,root) %{_bindir}/repo-rss |
317 | %attr(755,root,root) %{_bindir}/repoclosure | |
318 | %attr(755,root,root) %{_bindir}/repodiff | |
f5db57ea PZ |
319 | %attr(755,root,root) %{_bindir}/repomanage |
320 | %attr(755,root,root) %{_bindir}/repoquery | |
f5db57ea PZ |
321 | %attr(755,root,root) %{_bindir}/reposync |
322 | %attr(755,root,root) %{_bindir}/repotrack | |
323 | %attr(755,root,root) %{_bindir}/yum-builddep | |
324 | %attr(755,root,root) %{_bindir}/yumdownloader | |
73658a04 ER |
325 | %attr(755,root,root) %{_sbindir}/yum-complete-transaction |
326 | %{_mandir}/man1/package-cleanup.1.* | |
327 | %{_mandir}/man1/repo-rss.1.* | |
328 | %{_mandir}/man1/repoquery.1.* | |
329 | %{_mandir}/man1/reposync.1.* | |
330 | %{_mandir}/man1/yum-builddep.1.* | |
331 | %{_mandir}/man1/yum-utils.1.* | |
332 | %{_mandir}/man1/yumdownloader.1.* | |
333 | %{_mandir}/man8/yum-complete-transaction.8.* | |
334 | ||
335 | %files -n yum-updateonboot | |
336 | %defattr(644,root,root,755) | |
337 | %doc updateonboot/README | |
338 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/yum-updateonboot | |
339 | %attr(754,root,root) /etc/rc.d/init.d/yum-updateonboot | |
340 | ||
341 | %files -n yum-changelog | |
342 | %defattr(644,root,root,755) | |
343 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/changelog.conf | |
344 | %{_datadir}/yum-plugins/changelog.* | |
345 | %{_mandir}/man1/yum-changelog.1.* | |
346 | %{_mandir}/man5/yum-changelog.conf.5.* | |
347 | ||
348 | %files -n yum-fastestmirror | |
349 | %defattr(644,root,root,755) | |
350 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/fastestmirror.conf | |
351 | %{_datadir}/yum-plugins/fastestmirror.* | |
352 | ||
353 | %files -n yum-protectbase | |
354 | %defattr(644,root,root,755) | |
355 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/protectbase.conf | |
356 | %{_datadir}/yum-plugins/protectbase.* | |
357 | ||
358 | %files -n yum-versionlock | |
359 | %defattr(644,root,root,755) | |
360 | %doc plugins/versionlock/README | |
361 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/versionlock.conf | |
362 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/versionlock.list | |
363 | %{_datadir}/yum-plugins/versionlock.* | |
364 | ||
365 | %files -n yum-tsflags | |
366 | %defattr(644,root,root,755) | |
367 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/tsflags.conf | |
368 | %{_datadir}/yum-plugins/tsflags.* | |
369 | ||
370 | %files -n yum-kernel-module | |
371 | %defattr(644,root,root,755) | |
372 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/kernel-module.conf | |
373 | %{_datadir}/yum-plugins/kernel-module.* | |
374 | ||
375 | %files -n yum-downloadonly | |
376 | %defattr(644,root,root,755) | |
377 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/downloadonly.conf | |
378 | %{_datadir}/yum-plugins/downloadonly.* | |
379 | ||
380 | %files -n yum-allowdowngrade | |
381 | %defattr(644,root,root,755) | |
382 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/allowdowngrade.conf | |
383 | %{_datadir}/yum-plugins/allowdowngrade.* | |
384 | ||
385 | %files -n yum-skip-broken | |
386 | %defattr(644,root,root,755) | |
387 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/skip-broken.conf | |
388 | %{_datadir}/yum-plugins/skip-broken.* | |
389 | ||
5cac16e8 ER |
390 | %files -n yum-pld-kernel |
391 | %defattr(644,root,root,755) | |
392 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/pld-kernel.conf | |
393 | %{_datadir}/yum-plugins/pld-kernel.* | |
394 | ||
73658a04 ER |
395 | %files -n yum-priorities |
396 | %defattr(644,root,root,755) | |
397 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/priorities.conf | |
398 | %{_datadir}/yum-plugins/priorities.* | |
399 | ||
400 | %files -n yum-refresh-updatesd | |
401 | %defattr(644,root,root,755) | |
402 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/refresh-updatesd.conf | |
403 | %{_datadir}/yum-plugins/refresh-updatesd.* | |
404 | ||
405 | %files -n yum-merge-conf | |
406 | %defattr(644,root,root,755) | |
407 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/merge-conf.conf | |
408 | %{_datadir}/yum-plugins/merge-conf.* | |
409 | ||
410 | %files -n yum-security | |
411 | %defattr(644,root,root,755) | |
412 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/security.conf | |
413 | %{_datadir}/yum-plugins/security.* | |
414 | %{_mandir}/man8/yum-security.8.* | |
415 | ||
416 | %files -n yum-protect-packages | |
417 | %defattr(644,root,root,755) | |
418 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/protect-packages.conf | |
419 | %{_datadir}/yum-plugins/protect-packages.* | |
420 | ||
421 | %files -n yum-basearchonly | |
422 | %defattr(644,root,root,755) | |
423 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/basearchonly.conf | |
424 | %{_datadir}/yum-plugins/basearchonly.* | |
425 | ||
426 | %files -n yum-upgrade-helper | |
427 | %defattr(644,root,root,755) | |
428 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/upgrade-helper.conf | |
429 | %{_datadir}/yum-plugins/upgrade-helper.* | |
430 | ||
431 | %files -n yum-aliases | |
432 | %defattr(644,root,root,755) | |
433 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/aliases.conf | |
434 | %config(noreplace) %{_sysconfdir}/yum/aliases.conf | |
435 | %{_datadir}/yum-plugins/aliases.* | |
436 | ||
437 | %files -n yum-list-data | |
438 | %defattr(644,root,root,755) | |
439 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/list-data.conf | |
440 | %{_datadir}/yum-plugins/list-data.* | |
441 | %{_mandir}/man1/yum-list-data.1.* | |
442 | ||
443 | %files -n yum-filter-data | |
444 | %defattr(644,root,root,755) | |
445 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/filter-data.conf | |
446 | %{_datadir}/yum-plugins/filter-data.* | |
447 | %{_mandir}/man1/yum-filter-data.1.* | |
448 | ||
449 | %files -n yum-tmprepo | |
450 | %defattr(644,root,root,755) | |
451 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/tmprepo.conf | |
452 | %{_datadir}/yum-plugins/tmprepo.* | |
453 | ||
454 | %files -n yum-verify | |
455 | %defattr(644,root,root,755) | |
456 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/verify.conf | |
457 | %{_datadir}/yum-plugins/verify.* | |
458 | %{_mandir}/man1/yum-verify.1.* |