-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathyum-plugin-remote.spec
54 lines (41 loc) · 1.34 KB
/
yum-plugin-remote.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Name: yum-plugin-remote
Version: 0.1.2
Release: 1%{?dist}
Summary: Run yum command on remote host Plugin for Yum
Group: System Environment/Base
License: GPL
URL: http://github.com/guoxiaod/%{name}
BuildArch: noarch
Source0: http://github.com/guoxiaod/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: yum, openssh, pexpect
%description
This plugin run yum command on remote host.
Just add an option "--host" to yum command line, so we can specific the remote hosts
we will run command on.
%prep
%setup -q
%build
# pass
%install
rm -rf %{buildroot}
%{__mkdir} -p %{buildroot}%{_sysconfdir}/yum/pluginconf.d/ \
%{buildroot}%{_prefix}/lib/yum-plugins/
%{__install} -m 0644 remote.conf \
%{buildroot}%{_sysconfdir}/yum/pluginconf.d/
%{__install} -m 0644 remote.py \
%{buildroot}%{_prefix}/lib/yum-plugins/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README LICENSE ChangeLog
%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/remote.conf
%{_prefix}/lib/yum-plugins/remote.py*
%changelog
* Tue May 15 2012 Anders <[email protected]> - 0.1.2
- add ls-host command to list the parse host result
* Tue Feb 21 2012 Anders <[email protected]> - 0.1.1
- add run command on remote server function
* Mon Feb 13 2012 Anders <[email protected]> - 0.1.0
- The first version