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