]> git.pld-linux.org Git - packages/yum-utils.git/blame - yum-utils.spec
- missing comma
[packages/yum-utils.git] / yum-utils.spec
CommitLineData
f5db57ea 1Summary: A collection of utilities related to yum
765ff573 2Summary(pl.UTF-8): Zestaw narzędzi związanych z yumem
f5db57ea 3Name: yum-utils
73658a04 4Version: 1.1.13
5cac16e8 5Release: 0.2
f5db57ea
PZ
6License: GPL
7Group: Applications/System
73658a04
ER
8Source0: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz
9# Source0-md5: 29eedb17fd40b158c129c84dc865d889
5cac16e8
ER
10Source1: yum-plugin-pld-kernel.py
11Source2: yum-plugin-pld-kernel.conf
73658a04 12URL: http://linux.duke.edu/yum/download/yum-utils/
f5db57ea
PZ
13BuildRequires: gettext-devel
14BuildRequires: rpm-pythonprov
15BuildRequires: rpmbuild(macros) >= 1.228
765ff573 16Requires: python >= 1:2.5
73658a04 17Requires: yum >= 3.1.1
f5db57ea
PZ
18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
765ff573
JB
22Yum-utils is a collection of utilities, plugins and examples related
23to the yum package manager.
f5db57ea
PZ
24
25%description -l pl.UTF-8
765ff573
JB
26yum-utils to zestaw narzędzi, wtyczek i przykładów związanych z
27zarządcą pakietów yum.
f5db57ea 28
73658a04
ER
29%package -n yum-updateonboot
30Summary: Run yum update on system boot
31Group: Base
32Requires(post): /sbin/chkconfig
33Requires(pre): /sbin/chkconfig
34Requires: python
35Requires: yum >= 2.4
36
37%description -n yum-updateonboot
38Runs yum update on system boot. This allows machines that have been
39turned off for an extended amount of time to become secure
40immediately, instead of waiting until the next early morning cron job.
41
42%package -n yum-changelog
43Summary: Yum plugin for viewing package changelogs before/after updating
44Group: Base
45Requires: yum >= 3.0
46
47%description -n yum-changelog
48This plugin adds a command line option to allow viewing package
49changelog deltas before or after updating packages.
50
51%package -n yum-fastestmirror
52Summary: Yum plugin which chooses fastest repository from a mirrorlist
53Group: Base
54Requires: yum >= 3.0
55
56%description -n yum-fastestmirror
57This plugin sorts each repository's mirrorlist by connection speed
58prior to downloading packages.
59
60%package -n yum-protectbase
61Summary: Yum plugin to protect packages from certain repositories
62Group: Base
63Requires: yum >= 3.0
64
65%description -n yum-protectbase
66This plugin allows certain repositories to be protected. Packages in
67the protected repositories can't be overridden by packages in
68non-protected repositories even if the non-protected repo has a later
69version.
70
71%package -n yum-versionlock
72Summary: Yum plugin to lock specified packages from being updated
73Group: Base
74Requires: yum >= 3.0
75
76%description -n yum-versionlock
77This plugin allows certain packages specified in a file to be
78protected from being updated by newer versions.
79
80%package -n yum-tsflags
81Summary: Yum plugin to add tsflags by a commandline option
82Group: Base
83Requires: yum >= 3.0
84
85%description -n yum-tsflags
86This plugin allows you to specify optional transaction flags on the
87yum command line
88
89%package -n yum-kernel-module
90Summary: Yum plugin to handle kernel-module-foo type of kernel module
91Group: Base
92Requires: yum >= 3.0
93
94%description -n yum-kernel-module
95This plugin handle installation of kernel-module-foo type of kernel
96modules when new version of kernels are installed.
97
98
99%package -n yum-downloadonly
100Summary: Yum plugin to add downloadonly command option
101Group: Base
102Requires: yum >= 3.0
103
104%description -n yum-downloadonly
105This plugin adds a --downloadonly flag to yum so that yum will only
106download the packages and not install/update them.
107
108%package -n yum-allowdowngrade
109Summary: Yum plugin to enable manual downgrading of packages
110Group: Base
111Requires: yum >= 3.0
112
113%description -n yum-allowdowngrade
114This plugin adds a --allow-downgrade flag to yum to make it possible
115to manually downgrade packages to specific versions.
116
117%package -n yum-skip-broken
118Summary: Yum plugin to handle skiping packages with dependency problems
119Group: Base
120Requires: yum >= 3.0
121
122%description -n yum-skip-broken
123This plugin adds a --skip-broken to yum to make it possible to check
124packages for dependency problems and skip the one with problems.
125
5cac16e8
ER
126%package -n yum-pld-kernel
127Summary: Yum plugin to handle pld kernel installs
128Group: Base
129Requires: yum >= 3.0
130
131%description -n yum-pld-kernel
132This plugin handle installation of pld kernels
133
73658a04
ER
134%package -n yum-priorities
135Summary: plugin to give priorities to packages from different repos
136Group: Base
137Requires: yum >= 3.0
138
139%description -n yum-priorities
140This plugin allows repositories to have different priorities. Packages
141in a repository with a lower priority can't be overridden by packages
142from a repository with a higher priority even if repo has a later
143version.
144
145%package -n yum-refresh-updatesd
146Summary: Tell yum-updatesd to check for updates when yum exits
147Group: Base
148Requires: yum >= 3.0
149Requires: yum-updatesd
150
151%description -n yum-refresh-updatesd
152yum-refresh-updatesd tells yum-updatesd to check for updates when yum
153exits. This way, if you run 'yum update' and install all available
154updates, puplet will almost instantly update itself to reflect this.
155
156%package -n yum-merge-conf
157Summary: Yum plugin to merge configuration changes when installing packages
158Group: Base
159Requires: yum >= 3.0
160
161%description -n yum-merge-conf
162This yum plugin adds the "--merge-conf" command line option. With this
163option, Yum will ask you what to do with config files which have
164changed on updating a package.
165
166%package -n yum-security
167Summary: Yum plugin to enable security filters
168Group: Base
169Requires: yum >= 3.0.5
170
171%description -n yum-security
172This plugin adds the options --security, --cve, --bz and --advisory
173flags to yum and the list-security and info-security commands. The
174options make it possible to limit list/upgrade of packages to specific
175security relevant ones. The commands give you the security
176information.
177
178%package -n yum-protect-packages
179Summary: Yum plugin to prevents Yum from removing itself and other protected packages
180Group: Base
181Requires: yum >= 3.0
182
183%description -n yum-protect-packages
184this plugin prevents Yum from removing itself and other protected
185packages. By default, yum is the only package protected, but by
186extension this automatically protects everything on which yum depends
187(rpm, python, glibc, and so on).Therefore, the plugin functions well
188even without compiling careful lists of all important packages.
189
190%package -n yum-basearchonly
191Summary: Yum plugin to let Yum install only basearch packages
192Group: Base
193Requires: yum >= 3.0
194
195%description -n yum-basearchonly
196this plugin makes Yum only install basearch packages on multiarch
197systems. 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
199foo-x.y.i386.rpm, you have to type 'yum install foo.i386'. The plugin
200only works with 'yum install'.
201
202%package -n yum-upgrade-helper
203Summary: Yum plugin to help upgrades to the next distribution version
204Group: Base
205Requires: yum >= 3.0
206
207%description -n yum-upgrade-helper
208this plugin allows yum to erase specific packages on install/update
209based on an additional metadata file in repositories. It is used to
210simplify distribution upgrade hangups.
211
212%package -n yum-aliases
213Summary: Yum plugin to enable aliases filters
214Group: Base
215Requires: yum >= 3.0.5
216
217%description -n yum-aliases
218This plugin adds the command alias, and parses the aliases config.
219file to enable aliases.
220
221%package -n yum-list-data
222Summary: Yum plugin to list aggregate package data
223Group: Base
224Requires: yum >= 3.0.5
225
226%description -n yum-list-data
227This plugin adds the commands list- vendors, groups, packagers,
228licenses, arches, committers, buildhosts, baseurls, package-sizes,
229archive-sizes and installed-sizes.
230
231%package -n yum-filter-data
232Summary: Yum plugin to list filter based on package data
233Group: Base
234Requires: yum >= 3.0.5
235
236%description -n yum-filter-data
237This plugin adds the options --filter- vendors, groups, packagers,
238licenses, arches, committers, buildhosts, baseurls, package-sizes,
239archive-sizes and installed-sizes. Note that each package must match
240at least one pattern/range in each category, if any were specified.
241
242%package -n yum-tmprepo
243Summary: Yum plugin to add temporary repositories
244Group: Base
245Requires: yum >= 3.2.11
246
247%description -n yum-tmprepo
248This plugin adds the option --tmprepo which takes a url to a .repo
249file downloads it and enables it for a single run. This plugin tries
250to ensure that temporary repositories are safe to use, by default, by
251not allowing gpg checking to be disabled.
252
253%package -n yum-verify
254Summary: Yum plugin to add verify command, and options
255Group: Base
256Requires: yum >= 3.2.12
257
258%description -n yum-verify
259This plugin adds the commands verify, verify-all and verify-rpm. There
260are also a couple of options. This command works like rpm -V, to
261verify your installation.
262
f5db57ea
PZ
263%prep
264%setup -q
73658a04
ER
265
266mv plugins/README README.plugins
f5db57ea
PZ
267
268%build
269%{__make}
270
271%install
272rm -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
278plugins="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
282install -d $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT%{_datadir}/yum-plugins
f5db57ea
PZ
283
284cd plugins
285for 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 288done
5cac16e8
ER
289cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/yum-plugins/pld-kernel.py
290cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d/pld-kernel.conf
291
73658a04
ER
292install aliases/aliases $RPM_BUILD_ROOT%{_sysconfdir}/yum/aliases.conf
293install versionlock/versionlock.list $RPM_BUILD_ROOT%{_sysconfdir}/yum/pluginconf.d
f5db57ea
PZ
294
295%py_postclean
296
297%clean
298rm -rf $RPM_BUILD_ROOT
299
73658a04
ER
300%post -n yum-updateonboot
301/sbin/chkconfig --add yum-updateonboot
302
303%preun -n yum-updateonboot
304if [ $1 = 0 ]; then
305 %service yum-updateonboot stop
306 /sbin/chkconfig --del yum-updateonboot
307fi
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.*
This page took 0.133875 seconds and 4 git commands to generate.