1 | #define svn_url F:/rd/ports/yum-utils/trunk
|
---|
2 | %define svn_url http://svn.netlabs.org/repos/ports/yum-utils/trunk
|
---|
3 | %define svn_rev 1598
|
---|
4 |
|
---|
5 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
---|
6 |
|
---|
7 | Summary: Utilities based around the yum package manager
|
---|
8 | Name: yum-utils
|
---|
9 | Version: 1.1.31
|
---|
10 | Release: 3%{?dist}
|
---|
11 | License: GPLv2+
|
---|
12 | Group: Development/Tools
|
---|
13 |
|
---|
14 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
15 |
|
---|
16 | URL: http://yum.baseurl.org/download/yum-utils/
|
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
18 | BuildArch: noarch
|
---|
19 | Requires: yum >= 3.2.27
|
---|
20 | Requires: python(abi) = 2.7
|
---|
21 |
|
---|
22 | #Requires: python-kitchen
|
---|
23 | BuildRequires: python-devel
|
---|
24 | BuildRequires: rpm-build
|
---|
25 | BuildRequires: gettext
|
---|
26 | BuildRequires: intltool
|
---|
27 | Provides: yum-utils-translations = %{version}-%{release}
|
---|
28 |
|
---|
29 |
|
---|
30 | %description
|
---|
31 | yum-utils is a collection of utilities and examples for the yum package
|
---|
32 | manager. It includes utilities by different authors that make yum easier and
|
---|
33 | more powerful to use. These tools include: debuginfo-install,
|
---|
34 | find-repos-of-install, needs-restarting, package-cleanup, repoclosure,
|
---|
35 | repodiff, repo-graph, repomanage, repoquery, repo-rss, reposync,
|
---|
36 | repotrack, show-installed, show-changed-rco, verifytree, yumdownloader,
|
---|
37 | yum-builddep, yum-complete-transaction, yum-config-manager, yum-debug-dump,
|
---|
38 | yum-debug-restore and yum-groups-manager.
|
---|
39 |
|
---|
40 | %package -n yum-updateonboot
|
---|
41 | Summary: Run yum update on system boot
|
---|
42 | Group: System Environment/Base
|
---|
43 | Requires: python, yum >= 2.4
|
---|
44 | Requires(pre): chkconfig
|
---|
45 | Requires(post): chkconfig
|
---|
46 |
|
---|
47 | %description -n yum-updateonboot
|
---|
48 | Runs yum update on system boot. This allows machines that have been turned
|
---|
49 | off for an extended amount of time to become secure immediately, instead of
|
---|
50 | waiting until the next early morning cron job.
|
---|
51 |
|
---|
52 | %package -n yum-plugin-changelog
|
---|
53 | Summary: Yum plugin for viewing package changelogs before/after updating
|
---|
54 | Group: System Environment/Base
|
---|
55 | Provides: yum-changelog = %{version}-%{release}
|
---|
56 | Obsoletes: yum-changelog < 1.1.20-0
|
---|
57 | Conflicts: yum-changelog < 1.1.20-0
|
---|
58 | # changelog requires new update_md.UpdateMetadata() API in 3.2.23
|
---|
59 | Requires: yum >= 3.2.23
|
---|
60 | Requires: python-dateutil
|
---|
61 |
|
---|
62 | %description -n yum-plugin-changelog
|
---|
63 | This plugin adds a command line option to allow viewing package changelog
|
---|
64 | deltas before or after updating packages.
|
---|
65 |
|
---|
66 | %package -n yum-plugin-fastestmirror
|
---|
67 | Summary: Yum plugin which chooses fastest repository from a mirrorlist
|
---|
68 | Group: System Environment/Base
|
---|
69 | Provides: yum-fastestmirror = %{version}-%{release}
|
---|
70 | Obsoletes: yum-fastestmirror < 1.1.20-0
|
---|
71 | Conflicts: yum-fastestmirror < 1.1.20-0
|
---|
72 | Requires: yum >= 3.0
|
---|
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 | %package -n yum-plugin-protectbase
|
---|
79 | Summary: Yum plugin to protect packages from certain repositories.
|
---|
80 | Group: System Environment/Base
|
---|
81 | Provides: yum-protectbase = %{version}-%{release}
|
---|
82 | Obsoletes: yum-protectbase < 1.1.20-0
|
---|
83 | Conflicts: yum-protectbase < 1.1.20-0
|
---|
84 | Requires: yum >= 3.0
|
---|
85 |
|
---|
86 | %description -n yum-plugin-protectbase
|
---|
87 | This plugin allows certain repositories to be protected. Packages in the
|
---|
88 | protected repositories can't be overridden by packages in non-protected
|
---|
89 | repositories even if the non-protected repo has a later version.
|
---|
90 |
|
---|
91 | %package -n yum-plugin-versionlock
|
---|
92 | Summary: Yum plugin to lock specified packages from being updated
|
---|
93 | Group: System Environment/Base
|
---|
94 | Provides: yum-versionlock = %{version}-%{release}
|
---|
95 | Obsoletes: yum-versionlock < 1.1.20-0
|
---|
96 | Conflicts: yum-versionlock < 1.1.20-0
|
---|
97 | Requires: yum >= 3.2.24
|
---|
98 |
|
---|
99 | %description -n yum-plugin-versionlock
|
---|
100 | This plugin takes a set of name/versions for packages and excludes all other
|
---|
101 | versions of those packages (including optionally following obsoletes). This
|
---|
102 | allows you to protect packages from being updated by newer versions,
|
---|
103 | for example.
|
---|
104 |
|
---|
105 | %package -n yum-plugin-tsflags
|
---|
106 | Summary: Yum plugin to add tsflags by a commandline option
|
---|
107 | Group: System Environment/Base
|
---|
108 | Provides: yum-tsflags = %{version}-%{release}
|
---|
109 | Obsoletes: yum-tsflags < 1.1.20-0
|
---|
110 | Conflicts: yum-tsflags < 1.1.20-0
|
---|
111 | Requires: yum >= 3.0
|
---|
112 |
|
---|
113 | %description -n yum-plugin-tsflags
|
---|
114 | This plugin allows you to specify optional transaction flags on the yum
|
---|
115 | command line
|
---|
116 |
|
---|
117 | %package -n yum-plugin-downloadonly
|
---|
118 | Summary: Yum plugin to add downloadonly command option
|
---|
119 | Group: System Environment/Base
|
---|
120 | Provides: yum-downloadonly = %{version}-%{release}
|
---|
121 | Obsoletes: yum-downloadonly < 1.1.20-0
|
---|
122 | Conflicts: yum-downloadonly < 1.1.20-0
|
---|
123 | Requires: yum >= 3.0
|
---|
124 |
|
---|
125 | %description -n yum-plugin-downloadonly
|
---|
126 | This plugin adds a --downloadonly flag to yum so that yum will only download
|
---|
127 | the packages and not install/update them.
|
---|
128 |
|
---|
129 | %package -n yum-plugin-priorities
|
---|
130 | Summary: plugin to give priorities to packages from different repos
|
---|
131 | Group: System Environment/Base
|
---|
132 | Provides: yum-priorities = %{version}-%{release}
|
---|
133 | Obsoletes: yum-priorities < 1.1.20-0
|
---|
134 | Conflicts: yum-priorities < 1.1.20-0
|
---|
135 | Requires: yum >= 3.0
|
---|
136 |
|
---|
137 | %description -n yum-plugin-priorities
|
---|
138 | This plugin allows repositories to have different priorities.
|
---|
139 | Packages in a repository with a lower priority can't be overridden by packages
|
---|
140 | from a repository with a higher priority even if repo has a later version.
|
---|
141 |
|
---|
142 | %package -n yum-plugin-refresh-updatesd
|
---|
143 | Summary: Tell yum-updatesd to check for updates when yum exits
|
---|
144 | Group: System Environment/Base
|
---|
145 | Provides: yum-refresh-updatesd = %{version}-%{release}
|
---|
146 | Obsoletes: yum-refresh-updatesd < 1.1.20-0
|
---|
147 | Conflicts: yum-refresh-updatesd < 1.1.20-0
|
---|
148 | Requires: yum >= 3.0
|
---|
149 | Requires: yum-updatesd
|
---|
150 |
|
---|
151 | %description -n yum-plugin-refresh-updatesd
|
---|
152 | yum-refresh-updatesd tells yum-updatesd to check for updates when yum exits.
|
---|
153 | This way, if you run 'yum update' and install all available updates, puplet
|
---|
154 | will almost instantly update itself to reflect this.
|
---|
155 |
|
---|
156 | %package -n yum-plugin-merge-conf
|
---|
157 | Summary: Yum plugin to merge configuration changes when installing packages
|
---|
158 | Group: System Environment/Base
|
---|
159 | Provides: yum-merge-conf = %{version}-%{release}
|
---|
160 | Obsoletes: yum-merge-conf < 1.1.20-0
|
---|
161 | Conflicts: yum-merge-conf < 1.1.20-0
|
---|
162 | Requires: yum >= 3.0
|
---|
163 |
|
---|
164 | %description -n yum-plugin-merge-conf
|
---|
165 | This yum plugin adds the "--merge-conf" command line option. With this option,
|
---|
166 | Yum will ask you what to do with config files which have changed on updating a
|
---|
167 | package.
|
---|
168 |
|
---|
169 | %package -n yum-plugin-security
|
---|
170 | Summary: Yum plugin to enable security filters
|
---|
171 | Group: System Environment/Base
|
---|
172 | Provides: yum-security = %{version}-%{release}
|
---|
173 | Obsoletes: yum-security < 1.1.20-0
|
---|
174 | Conflicts: yum-security < 1.1.20-0
|
---|
175 | Requires: yum >= 3.2.18
|
---|
176 |
|
---|
177 | %description -n yum-plugin-security
|
---|
178 | This plugin adds the options --security, --cve, --bz and --advisory flags
|
---|
179 | to yum and the list-security and info-security commands.
|
---|
180 | The options make it possible to limit list/upgrade of packages to specific
|
---|
181 | security relevant ones. The commands give you the security information.
|
---|
182 |
|
---|
183 | %package -n yum-plugin-upgrade-helper
|
---|
184 | Summary: Yum plugin to help upgrades to the next distribution version
|
---|
185 | Group: System Environment/Base
|
---|
186 | Provides: yum-upgrade-helper = %{version}-%{release}
|
---|
187 | Obsoletes: yum-upgrade-helper < 1.1.20-0
|
---|
188 | Conflicts: yum-upgrade-helper < 1.1.20-0
|
---|
189 | Requires: yum >= 3.0
|
---|
190 |
|
---|
191 | %description -n yum-plugin-upgrade-helper
|
---|
192 | this plugin allows yum to erase specific packages on install/update based on an additional
|
---|
193 | metadata file in repositories. It is used to simplify distribution upgrade hangups.
|
---|
194 |
|
---|
195 | %package -n yum-plugin-aliases
|
---|
196 | Summary: Yum plugin to enable aliases filters
|
---|
197 | Group: System Environment/Base
|
---|
198 | Provides: yum-aliases = %{version}-%{release}
|
---|
199 | Obsoletes: yum-aliases < 1.1.20-0
|
---|
200 | Conflicts: yum-aliases < 1.1.20-0
|
---|
201 | # Requires args_hook
|
---|
202 | Requires: yum >= 3.2.23
|
---|
203 | Requires: yum-utils-translations = %{version}-%{release}
|
---|
204 |
|
---|
205 | %description -n yum-plugin-aliases
|
---|
206 | This plugin adds the command alias, and parses the aliases config. file to
|
---|
207 | enable aliases.
|
---|
208 |
|
---|
209 | %package -n yum-plugin-list-data
|
---|
210 | Summary: Yum plugin to list aggregate package data
|
---|
211 | Group: System Environment/Base
|
---|
212 | Provides: yum-list-data = %{version}-%{release}
|
---|
213 | Obsoletes: yum-list-data < 1.1.20-0
|
---|
214 | Conflicts: yum-list-data < 1.1.20-0
|
---|
215 | Requires: yum >= 3.0.5
|
---|
216 |
|
---|
217 | %description -n yum-plugin-list-data
|
---|
218 | This plugin adds the commands list- vendors, groups, packagers, licenses,
|
---|
219 | arches, committers, buildhosts, baseurls, package-sizes, archive-sizes and
|
---|
220 | installed-sizes.
|
---|
221 |
|
---|
222 | %package -n yum-plugin-filter-data
|
---|
223 | Summary: Yum plugin to list filter based on package data
|
---|
224 | Group: System Environment/Base
|
---|
225 | Provides: yum-filter-data = %{version}-%{release}
|
---|
226 | Obsoletes: yum-filter-data < 1.1.20-0
|
---|
227 | Conflicts: yum-filter-data < 1.1.20-0
|
---|
228 | Requires: yum >= 3.2.17
|
---|
229 |
|
---|
230 | %description -n yum-plugin-filter-data
|
---|
231 | This plugin adds the options --filter- vendors, groups, packagers, licenses,
|
---|
232 | arches, committers, buildhosts, baseurls, package-sizes, archive-sizes and
|
---|
233 | installed-sizes. Note that each package must match at least one pattern/range in
|
---|
234 | each category, if any were specified.
|
---|
235 |
|
---|
236 | %package -n yum-plugin-tmprepo
|
---|
237 | Summary: Yum plugin to add temporary repositories
|
---|
238 | Group: System Environment/Base
|
---|
239 | Provides: yum-tmprepo = %{version}-%{release}
|
---|
240 | Obsoletes: yum-tmprepo < 1.1.20-0
|
---|
241 | Conflicts: yum-tmprepo < 1.1.20-0
|
---|
242 | Requires: yum >= 3.2.11
|
---|
243 | Requires: createrepo
|
---|
244 |
|
---|
245 | %description -n yum-plugin-tmprepo
|
---|
246 | This plugin adds the option --tmprepo which takes a url to a .repo file
|
---|
247 | downloads it and enables it for a single run. This plugin tries to ensure
|
---|
248 | that temporary repositories are safe to use, by default, by not allowing
|
---|
249 | gpg checking to be disabled.
|
---|
250 |
|
---|
251 | %package -n yum-plugin-verify
|
---|
252 | Summary: Yum plugin to add verify command, and options
|
---|
253 | Group: System Environment/Base
|
---|
254 | Provides: yum-verify = %{version}-%{release}
|
---|
255 | Obsoletes: yum-verify < 1.1.20-0
|
---|
256 | Conflicts: yum-verify < 1.1.20-0
|
---|
257 | Requires: yum >= 3.2.12
|
---|
258 |
|
---|
259 | %description -n yum-plugin-verify
|
---|
260 | This plugin adds the commands verify, verify-all and verify-rpm. There are
|
---|
261 | also a couple of options. This command works like rpm -V, to verify your
|
---|
262 | installation.
|
---|
263 |
|
---|
264 | %package -n yum-plugin-keys
|
---|
265 | Summary: Yum plugin to deal with signing keys
|
---|
266 | Group: System Environment/Base
|
---|
267 | Provides: yum-keys = %{version}-%{release}
|
---|
268 | Obsoletes: yum-keys < 1.1.20-0
|
---|
269 | Conflicts: yum-keys < 1.1.20-0
|
---|
270 | Requires: yum >= 3.2.19
|
---|
271 |
|
---|
272 | %description -n yum-plugin-keys
|
---|
273 | This plugin adds the commands keys, keys-info, keys-data and keys-remove. They
|
---|
274 | allow you to query and remove signing keys.
|
---|
275 |
|
---|
276 | %package -n yum-plugin-remove-with-leaves
|
---|
277 | Summary: Yum plugin to remove dependencies which are no longer used because of a removal
|
---|
278 | Group: System Environment/Base
|
---|
279 | Provides: yum-remove-with-leaves = %{version}-%{release}
|
---|
280 | Obsoletes: yum-remove-with-leaves < 1.1.20-0
|
---|
281 | Conflicts: yum-remove-with-leaves < 1.1.20-0
|
---|
282 | Requires: yum >= 3.2.19
|
---|
283 |
|
---|
284 | %description -n yum-plugin-remove-with-leaves
|
---|
285 | This plugin removes any unused dependencies that were brought in by an install
|
---|
286 | but would not normally be removed. It helps to keep a system clean of unused
|
---|
287 | libraries and packages.
|
---|
288 |
|
---|
289 | %package -n yum-plugin-post-transaction-actions
|
---|
290 | Summary: Yum plugin to run arbitrary commands when certain pkgs are acted on
|
---|
291 | Group: System Environment/Base
|
---|
292 | Provides: yum-post-transaction-actions = %{version}-%{release}
|
---|
293 | Obsoletes: yum-post-transaction-actions < 1.1.20-0
|
---|
294 | Conflicts: yum-post-transaction-actions < 1.1.20-0
|
---|
295 | Requires: yum >= 3.2.19
|
---|
296 |
|
---|
297 | %description -n yum-plugin-post-transaction-actions
|
---|
298 | This plugin allows the user to run arbitrary actions immediately following a
|
---|
299 | transaction when specified packages are changed.
|
---|
300 |
|
---|
301 | %package -n yum-NetworkManager-dispatcher
|
---|
302 | Summary: NetworkManager script which tells yum to check it's cache on network change
|
---|
303 | Group: System Environment/Base
|
---|
304 | Requires: yum >= 3.2.17
|
---|
305 |
|
---|
306 | %description -n yum-NetworkManager-dispatcher
|
---|
307 | This NetworkManager "dispatch script" forces yum to check its cache if/when a
|
---|
308 | new network connection happens in NetworkManager. Note that currently there is
|
---|
309 | no checking of previous data, so if your WiFi keeps going up and down (or you
|
---|
310 | suspend/resume a lot) yum will recheck its cached data a lot.
|
---|
311 |
|
---|
312 | %package -n yum-plugin-rpm-warm-cache
|
---|
313 | Summary: Yum plugin to access the rpmdb files early to warm up access to the db
|
---|
314 | Group: System Environment/Base
|
---|
315 | Provides: yum-rpm-warm-cache = %{version}-%{release}
|
---|
316 | Obsoletes: yum-rpm-warm-cache < 1.1.20-0
|
---|
317 | Conflicts: yum-rpm-warm-cache < 1.1.20-0
|
---|
318 | Requires: yum >= 3.2.19
|
---|
319 |
|
---|
320 | %description -n yum-plugin-rpm-warm-cache
|
---|
321 | This plugin reads the rpmdb files into the system cache before accessing the
|
---|
322 | rpmdb directly. In some cases this should speed up access to rpmdb information
|
---|
323 |
|
---|
324 | %package -n yum-plugin-auto-update-debug-info
|
---|
325 | # Works by searching for *-debuginfo ... so it shouldn't trigger on itself.
|
---|
326 | Summary: Yum plugin to enable automatic updates to installed debuginfo packages
|
---|
327 | Group: System Environment/Base
|
---|
328 | Obsoletes: yum-plugin-auto-update-debuginfo < 1.1.21-0
|
---|
329 | Conflicts: yum-plugin-auto-update-debuginfo < 1.1.21-0
|
---|
330 | Provides: yum-plugin-auto-update-debuginfo = %{version}-%{release}
|
---|
331 | Requires: yum >= 3.2.19
|
---|
332 |
|
---|
333 | %description -n yum-plugin-auto-update-debug-info
|
---|
334 | This plugin looks to see if any debuginfo packages are installed, and if there
|
---|
335 | are it enables all debuginfo repositories that are "children" of enabled
|
---|
336 | repositories.
|
---|
337 |
|
---|
338 | %package -n yum-plugin-show-leaves
|
---|
339 | Summary: Yum plugin which shows newly installed leaf packages
|
---|
340 | Group: System Environment/Base
|
---|
341 | Requires: yum >= 3.2.23
|
---|
342 |
|
---|
343 | %description -n yum-plugin-show-leaves
|
---|
344 | Yum plugin which shows newly installed leaf packages
|
---|
345 | and packages that became leaves after a transaction
|
---|
346 |
|
---|
347 | %package -n yum-plugin-local
|
---|
348 | Summary: Yum plugin to automatically manage a local repo. of downloaded packages
|
---|
349 | Group: System Environment/Base
|
---|
350 | # Who the hell knows what version :)
|
---|
351 | Requires: yum >= 3.2.22
|
---|
352 | Requires: createrepo
|
---|
353 |
|
---|
354 | %description -n yum-plugin-local
|
---|
355 | When this plugin is installed it will automatically copy all downloaded packages
|
---|
356 | to a repository on the local filesystem, and (re)build that repository. This
|
---|
357 | means that anything you've downloaded will always exist, even if the original
|
---|
358 | repo. removes it (and can thus. be reinstalled/downgraded/etc.).
|
---|
359 |
|
---|
360 | %package -n yum-plugin-fs-snapshot
|
---|
361 | Summary: Yum plugin to automatically snapshot your filesystems during updates
|
---|
362 | Group: System Environment/Base
|
---|
363 | Requires: yum >= 3.2.22
|
---|
364 |
|
---|
365 | %description -n yum-plugin-fs-snapshot
|
---|
366 | When this plugin is installed it will automatically snapshot any
|
---|
367 | filesystem that is touched by the packages in a yum update or yum remove.
|
---|
368 |
|
---|
369 | %package -n yum-plugin-ps
|
---|
370 | Summary: Yum plugin to look at processes, with respect to packages
|
---|
371 | Group: System Environment/Base
|
---|
372 | Requires: yum >= 3.2.27
|
---|
373 |
|
---|
374 | %description -n yum-plugin-ps
|
---|
375 | When this plugin is installed it adds the yum command "ps", which allows you
|
---|
376 | to see which running processes are accociated with which packages (and if they
|
---|
377 | need rebooting, or have updates, etc.)
|
---|
378 |
|
---|
379 | %package -n yum-plugin-puppetverify
|
---|
380 | Summary: Yum plugin to add puppet checksums to verify data
|
---|
381 | Group: System Environment/Base
|
---|
382 | Provides: yum-puppetverify = %{version}-%{release}
|
---|
383 | Requires: yum >= 3.2.12
|
---|
384 | Requires: PyYAML >= 3.09
|
---|
385 | Requires: puppet
|
---|
386 |
|
---|
387 | %description -n yum-plugin-puppetverify
|
---|
388 | Supplies checksums for files in packages from puppet's state file.
|
---|
389 |
|
---|
390 | %prep
|
---|
391 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
392 | %setup -q
|
---|
393 | %else
|
---|
394 | %setup -n "%{name}-%{version}" -Tc
|
---|
395 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
396 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
397 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
398 | %endif
|
---|
399 |
|
---|
400 | %install
|
---|
401 | rm -rf $RPM_BUILD_ROOT
|
---|
402 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
403 | #make -C updateonboot DESTDIR=$RPM_BUILD_ROOT install
|
---|
404 |
|
---|
405 | %find_lang %name
|
---|
406 |
|
---|
407 | # Plugins to install
|
---|
408 | plugins="\
|
---|
409 | changelog \
|
---|
410 | fastestmirror \
|
---|
411 | protectbase \
|
---|
412 | versionlock \
|
---|
413 | tsflags \
|
---|
414 | downloadonly \
|
---|
415 | priorities \
|
---|
416 | refresh-updatesd \
|
---|
417 | merge-conf \
|
---|
418 | security \
|
---|
419 | upgrade-helper \
|
---|
420 | aliases \
|
---|
421 | list-data \
|
---|
422 | filter-data \
|
---|
423 | tmprepo \
|
---|
424 | verify \
|
---|
425 | keys \
|
---|
426 | remove-with-leaves \
|
---|
427 | post-transaction-actions \
|
---|
428 | rpm-warm-cache \
|
---|
429 | auto-update-debuginfo \
|
---|
430 | show-leaves \
|
---|
431 | local \
|
---|
432 | fs-snapshot \
|
---|
433 | ps \
|
---|
434 | puppetverify \
|
---|
435 | "
|
---|
436 |
|
---|
437 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/ $RPM_BUILD_ROOT/%{_prefix}/lib/yum-plugins/
|
---|
438 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum/post-actions
|
---|
439 |
|
---|
440 | cd plugins
|
---|
441 | for plug in $plugins; do
|
---|
442 | install -m 644 $plug/*.conf $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/
|
---|
443 | install -m 644 $plug/*.py $RPM_BUILD_ROOT/%{_prefix}/lib/yum-plugins/
|
---|
444 | %{__python} -c "import compileall; compileall.compile_dir('$RPM_BUILD_ROOT/%{_prefix}/lib/yum-plugins', 1)"
|
---|
445 | done
|
---|
446 | install -m 644 aliases/aliases $RPM_BUILD_ROOT/%{_sysconfdir}/yum/aliases.conf
|
---|
447 | install -m 644 versionlock/versionlock.list $RPM_BUILD_ROOT/%{_sysconfdir}/yum/pluginconf.d/
|
---|
448 | # need for for the ghost in files section of yum-plugin-local
|
---|
449 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum.repos.d
|
---|
450 | touch $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d/_local.repo
|
---|
451 |
|
---|
452 |
|
---|
453 | %clean
|
---|
454 | rm -rf $RPM_BUILD_ROOT
|
---|
455 |
|
---|
456 | %files -f %{name}.lang
|
---|
457 | %defattr(-, root, root)
|
---|
458 | %doc README yum-util-cli-template
|
---|
459 | %doc COPYING
|
---|
460 | %doc plugins/README
|
---|
461 | %{_sysconfdir}/bash_completion.d
|
---|
462 | %{_bindir}/debuginfo-install
|
---|
463 | %{_bindir}/find-repos-of-install
|
---|
464 | %{_bindir}/needs-restarting
|
---|
465 | %{_bindir}/package-cleanup
|
---|
466 | %{_bindir}/repoclosure
|
---|
467 | %{_bindir}/repodiff
|
---|
468 | %{_bindir}/repomanage
|
---|
469 | %{_bindir}/repoquery
|
---|
470 | %{_bindir}/repotrack
|
---|
471 | %{_bindir}/reposync
|
---|
472 | %{_bindir}/repo-graph
|
---|
473 | %{_bindir}/repo-rss
|
---|
474 | %{_bindir}/verifytree
|
---|
475 | %{_bindir}/yumdownloader
|
---|
476 | %{_bindir}/yum-builddep
|
---|
477 | %{_bindir}/yum-config-manager
|
---|
478 | %{_bindir}/yum-debug-dump
|
---|
479 | %{_bindir}/yum-groups-manager
|
---|
480 | %{_bindir}/yum-debug-restore
|
---|
481 | %{_bindir}/show-installed
|
---|
482 | %{_bindir}/show-changed-rco
|
---|
483 | %{_sbindir}/yum-complete-transaction
|
---|
484 | %{_sbindir}/yumdb
|
---|
485 | %{python_sitelib}/yumutils/
|
---|
486 | %{_mandir}/man1/yum-utils.1
|
---|
487 | %{_mandir}/man1/debuginfo-install.1
|
---|
488 | %{_mandir}/man1/package-cleanup.1
|
---|
489 | %{_mandir}/man1/repo-rss.1
|
---|
490 | %{_mandir}/man1/repoquery.1
|
---|
491 | %{_mandir}/man1/repodiff.1
|
---|
492 | %{_mandir}/man1/reposync.1
|
---|
493 | %{_mandir}/man1/show-changed-rco.1
|
---|
494 | %{_mandir}/man1/show-installed.1
|
---|
495 | %{_mandir}/man1/yum-builddep.1
|
---|
496 | %{_mandir}/man1/yum-debug-dump.1
|
---|
497 | %{_mandir}/man8/yum-complete-transaction.8
|
---|
498 | %{_mandir}/man1/yum-groups-manager.1
|
---|
499 | %{_mandir}/man8/yumdb.8
|
---|
500 | %{_mandir}/man1/yumdownloader.1
|
---|
501 |
|
---|
502 | %files -n yum-updateonboot
|
---|
503 | %defattr(-, root, root)
|
---|
504 | %doc updateonboot/README COPYING
|
---|
505 | #%config(noreplace) %{_sysconfdir}/sysconfig/yum-updateonboot
|
---|
506 | #%{_initrddir}/yum-updateonboot
|
---|
507 |
|
---|
508 | %files -n yum-plugin-changelog
|
---|
509 | %defattr(-, root, root)
|
---|
510 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/changelog.conf
|
---|
511 | %doc COPYING
|
---|
512 | %{_libdir}/yum-plugins/changelog.*
|
---|
513 | %{_mandir}/man1/yum-changelog.1
|
---|
514 | %{_mandir}/man5/yum-changelog.conf.5
|
---|
515 |
|
---|
516 | %files -n yum-plugin-fastestmirror
|
---|
517 | %defattr(-, root, root)
|
---|
518 | %doc COPYING
|
---|
519 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/fastestmirror.conf
|
---|
520 | %{_libdir}/yum-plugins/fastestmirror*.*
|
---|
521 |
|
---|
522 | %files -n yum-plugin-protectbase
|
---|
523 | %defattr(-, root, root)
|
---|
524 | %doc COPYING
|
---|
525 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/protectbase.conf
|
---|
526 | %{_libdir}/yum-plugins/protectbase.*
|
---|
527 |
|
---|
528 | %files -n yum-plugin-versionlock
|
---|
529 | %defattr(-, root, root)
|
---|
530 | %doc plugins/versionlock/README COPYING
|
---|
531 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/versionlock.conf
|
---|
532 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/versionlock.list
|
---|
533 | %{_libdir}/yum-plugins/versionlock.*
|
---|
534 | %{_mandir}/man1/yum-versionlock.1
|
---|
535 | %{_mandir}/man5/yum-versionlock.conf.5
|
---|
536 |
|
---|
537 | %files -n yum-plugin-tsflags
|
---|
538 | %defattr(-, root, root)
|
---|
539 | %doc COPYING
|
---|
540 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/tsflags.conf
|
---|
541 | %{_libdir}/yum-plugins/tsflags.*
|
---|
542 |
|
---|
543 | %files -n yum-plugin-downloadonly
|
---|
544 | %defattr(-, root, root)
|
---|
545 | %doc COPYING
|
---|
546 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/downloadonly.conf
|
---|
547 | %{_libdir}/yum-plugins/downloadonly.*
|
---|
548 |
|
---|
549 | %files -n yum-plugin-priorities
|
---|
550 | %defattr(-, root, root)
|
---|
551 | %doc COPYING
|
---|
552 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/priorities.conf
|
---|
553 | %{_libdir}/yum-plugins/priorities.*
|
---|
554 |
|
---|
555 | %files -n yum-plugin-refresh-updatesd
|
---|
556 | %defattr(-, root, root)
|
---|
557 | %doc COPYING
|
---|
558 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/refresh-updatesd.conf
|
---|
559 | %{_libdir}/yum-plugins/refresh-updatesd.*
|
---|
560 |
|
---|
561 | %files -n yum-plugin-merge-conf
|
---|
562 | %defattr(-, root, root)
|
---|
563 | %doc COPYING
|
---|
564 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/merge-conf.conf
|
---|
565 | %{_libdir}/yum-plugins/merge-conf.*
|
---|
566 |
|
---|
567 | %files -n yum-plugin-security
|
---|
568 | %defattr(-, root, root)
|
---|
569 | %doc COPYING
|
---|
570 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/security.conf
|
---|
571 | %{_libdir}/yum-plugins/security.*
|
---|
572 | %{_mandir}/man8/yum-security.8
|
---|
573 |
|
---|
574 | %files -n yum-plugin-upgrade-helper
|
---|
575 | %defattr(-, root, root)
|
---|
576 | %doc COPYING
|
---|
577 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/upgrade-helper.conf
|
---|
578 | %{_libdir}/yum-plugins/upgrade-helper.*
|
---|
579 |
|
---|
580 | %files -n yum-plugin-aliases
|
---|
581 | %defattr(-, root, root)
|
---|
582 | %doc COPYING
|
---|
583 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/aliases.conf
|
---|
584 | %config(noreplace) %{_sysconfdir}/yum/aliases.conf
|
---|
585 | %{_libdir}/yum-plugins/aliases.*
|
---|
586 | %{_mandir}/man1/yum-aliases.1
|
---|
587 |
|
---|
588 | %files -n yum-plugin-list-data
|
---|
589 | %defattr(-, root, root)
|
---|
590 | %doc COPYING
|
---|
591 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/list-data.conf
|
---|
592 | %{_libdir}/yum-plugins/list-data.*
|
---|
593 | %{_mandir}/man1/yum-list-data.1
|
---|
594 |
|
---|
595 | %files -n yum-plugin-filter-data
|
---|
596 | %defattr(-, root, root)
|
---|
597 | %doc COPYING
|
---|
598 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/filter-data.conf
|
---|
599 | %{_libdir}/yum-plugins/filter-data.*
|
---|
600 | %{_mandir}/man1/yum-filter-data.1
|
---|
601 |
|
---|
602 | %files -n yum-plugin-tmprepo
|
---|
603 | %defattr(-, root, root)
|
---|
604 | %doc COPYING
|
---|
605 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/tmprepo.conf
|
---|
606 | %{_libdir}/yum-plugins/tmprepo.*
|
---|
607 |
|
---|
608 | %files -n yum-plugin-verify
|
---|
609 | %defattr(-, root, root)
|
---|
610 | %doc COPYING
|
---|
611 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/verify.conf
|
---|
612 | %{_libdir}/yum-plugins/verify.*
|
---|
613 | %{_mandir}/man1/yum-verify.1
|
---|
614 |
|
---|
615 | %files -n yum-plugin-keys
|
---|
616 | %defattr(-, root, root)
|
---|
617 | %doc COPYING
|
---|
618 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/keys.conf
|
---|
619 | %{_libdir}/yum-plugins/keys.*
|
---|
620 |
|
---|
621 | %files -n yum-NetworkManager-dispatcher
|
---|
622 | %defattr(-, root, root)
|
---|
623 | %doc COPYING
|
---|
624 | /@unixroot/etc/NetworkManager/dispatcher.d/*
|
---|
625 |
|
---|
626 | %files -n yum-plugin-remove-with-leaves
|
---|
627 | %defattr(-, root, root)
|
---|
628 | %doc COPYING
|
---|
629 | %{_libdir}/yum-plugins/remove-with-leaves.*
|
---|
630 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/remove-with-leaves.conf
|
---|
631 |
|
---|
632 | %files -n yum-plugin-post-transaction-actions
|
---|
633 | %defattr(-, root, root)
|
---|
634 | %doc COPYING
|
---|
635 | %{_libdir}/yum-plugins/post-transaction-actions.*
|
---|
636 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/post-transaction-actions.conf
|
---|
637 | %doc plugins/post-transaction-actions/sample.action
|
---|
638 | # Default *.action file dropping dir.
|
---|
639 | %dir %{_sysconfdir}/yum/post-actions
|
---|
640 |
|
---|
641 | %files -n yum-plugin-rpm-warm-cache
|
---|
642 | %defattr(-, root, root)
|
---|
643 | %doc COPYING
|
---|
644 | %{_libdir}/yum-plugins/rpm-warm-cache.*
|
---|
645 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/rpm-warm-cache.conf
|
---|
646 |
|
---|
647 | %files -n yum-plugin-auto-update-debug-info
|
---|
648 | %defattr(-, root, root)
|
---|
649 | %doc COPYING
|
---|
650 | %{_libdir}/yum-plugins/auto-update-debuginfo.*
|
---|
651 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/auto-update-debuginfo.conf
|
---|
652 |
|
---|
653 | %files -n yum-plugin-show-leaves
|
---|
654 | %defattr(-, root, root)
|
---|
655 | %doc COPYING
|
---|
656 | %{_libdir}/yum-plugins/show-leaves.*
|
---|
657 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/show-leaves.conf
|
---|
658 |
|
---|
659 | %files -n yum-plugin-local
|
---|
660 | %defattr(-, root, root)
|
---|
661 | %doc COPYING
|
---|
662 | %ghost %{_sysconfdir}/yum.repos.d/_local.repo
|
---|
663 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/local.conf
|
---|
664 | %{_libdir}/yum-plugins/local.*
|
---|
665 |
|
---|
666 | %files -n yum-plugin-fs-snapshot
|
---|
667 | %defattr(-, root, root)
|
---|
668 | %doc COPYING
|
---|
669 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/fs-snapshot.conf
|
---|
670 | %{_libdir}/yum-plugins/fs-snapshot.*
|
---|
671 | %{_mandir}/man1/yum-fs-snapshot.1
|
---|
672 | %{_mandir}/man5/yum-fs-snapshot.conf.5
|
---|
673 |
|
---|
674 | %files -n yum-plugin-ps
|
---|
675 | %defattr(-, root, root)
|
---|
676 | %doc COPYING
|
---|
677 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/ps.conf
|
---|
678 | %{_libdir}/yum-plugins/ps.*
|
---|
679 |
|
---|
680 | %files -n yum-plugin-puppetverify
|
---|
681 | %defattr(-, root, root)
|
---|
682 | %doc COPYING
|
---|
683 | %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/puppetverify.conf
|
---|
684 | %{_libdir}/yum-plugins/puppetverify.*
|
---|
685 |
|
---|
686 | %changelog
|
---|
687 | * Mon Jun 13 2016 yd <yd@os2power.com> 1.1.31-3
|
---|
688 | - r1598, hardcode install path until ticket#71 gets fixed.
|
---|
689 | - use correct set of files for installation, fixes ticket#92.
|
---|
690 | - added macros to allow building from svn
|
---|
691 |
|
---|
692 | * Mon Apr 07 2014 yd
|
---|
693 | - build for python 2.7.
|
---|
694 |
|
---|
695 | * Wed Jun 05 2013 yd
|
---|
696 | - r639, initial public build.
|
---|