-
Notifications
You must be signed in to change notification settings - Fork 6
/
parallel-ssh.spec
64 lines (47 loc) · 1.66 KB
/
parallel-ssh.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
55
56
57
58
59
60
61
62
63
64
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: parallel-ssh
Version: 3.4.0
Release: 1%{?dist}
Summary: Parallel SSH utilities
Group: Utilities
License: BSD
URL: https://github.com/jcmcken/parallel-ssh
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: python(abi) >= 2.4
Requires: python2
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Parallel SSH utilities, including parallel SSH, SCP, reverise SCP, and more
%prep
%setup -q
%build
# Remove CFLAGS=... for noarch packages (unneeded)
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# remove setup.py distributed man page
rm -f $RPM_BUILD_ROOT%{_prefix}/man/man1/pssh*
%{__install} -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man1
%{__install} -m 0755 man/man1/pssh.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/*
%doc COPYING
%doc ChangeLog
%doc README.rst
%doc AUTHORS
%doc %{_mandir}/man1/*
# For noarch packages: sitelib
%{python_sitelib}/*
%changelog
* Wed Jan 21 2015 Jon McKenzie - 3.4.0
- Bump to 3.4.0
* Sun Apr 06 2014 Jon McKenzie - 3.3.0
- Initial RPM release