forked from candlepin/rho
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrho.spec
56 lines (41 loc) · 1.26 KB
/
rho.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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: rho
Version: 0.0.1
Release: 1%{?dist}
Summary: An SSH system profiler
Group: Applications/Internet
License: GPLv2
URL: http://github.com/jmrodri/rho
Source0: rho-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-paramiko
# Refactors in 0.7 break backward compat:
BuildRequires: python-netaddr < 0.7
BuildRequires: python-simplejson
BuildRequires: python-crypto
%description
Rho is a tool for scanning your network, logging into systems via SSH, and
retrieving information about them.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*egg-info/requires.txt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README AUTHORS COPYING
%{_bindir}/rho
%dir %{python_sitelib}/rho
%{python_sitelib}/rho/*
%{python_sitelib}/rho-*.egg-info
%changelog
* Thu Oct 15 2009 Devan Goodwin <[email protected]> 0.0.1-1
- Initial packaging.