3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
7 Summary: Execute remote commands or processes
8 Summary(pl.UTF-8): Uruchamianie zdalnych poleceń lub procesów
13 Group: Libraries/Python
14 Source0: https://pypi.python.org/packages/source/r/remoto/%{module}-%{version}.tar.gz
15 # Source0-md5: 94fa964c08d9c4619ef63201c58091e3
16 URL: https://github.com/alfredodeza/remoto
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.714
20 BuildRequires: python-setuptools >= 1:7.0
23 BuildRequires: python3-modules
24 BuildRequires: python3-setuptools >= 1:7.0
26 Requires: python-execnet
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 A very simplistic remote-command-executor using ssh and Python in the
34 All the heavy lifting is done by execnet, while this minimal API
35 provides the bare minimum to handle easy logging and connections from
38 %description -l pl.UTF-8
39 Bardzo proste narzędzie do uruchamiania zdalnych poleceń przez SSH z
40 Pythonem po drugiej stronie.
42 Cała ciężka robota jest wykonywana przez execnet, a ten moduł jest
43 minimalnym API zapewniającym minimum do obsługi łatwego logowania i
44 połączeń ze zdalnej strony.
46 %package -n python3-%{module}
47 Summary: Execute remote commands or processes
48 Summary(pl.UTF-8): Uruchamianie zdalnych poleceń lub procesów
49 Group: Libraries/Python
50 Requires: python3-execnet
52 %description -n python3-%{module}
53 A very simplistic remote-command-executor using ssh and Python in the
56 All the heavy lifting is done by execnet, while this minimal API
57 provides the bare minimum to handle easy logging and connections from
60 %description -n python3-%{module} -l pl.UTF-8
61 Bardzo proste narzędzie do uruchamiania zdalnych poleceń przez SSH z
62 Pythonem po drugiej stronie.
64 Cała ciężka robota jest wykonywana przez execnet, a ten moduł jest
65 minimalnym API zapewniającym minimum do obsługi łatwego logowania i
66 połączeń ze zdalnej strony.
69 %setup -q -n %{module}-%{version}
72 export REMOTO_NO_VENDOR=1
82 rm -rf $RPM_BUILD_ROOT
84 export REMOTO_NO_VENDOR=1
88 # remoto needs the source code to run it on the target
96 rm -rf $RPM_BUILD_ROOT
100 %defattr(644,root,root,755)
102 %{py_sitescriptdir}/%{module}
103 %if "%{py_ver}" > "2.4"
104 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
109 %files -n python3-%{module}
110 %defattr(644,root,root,755)
112 %{py3_sitescriptdir}/%{module}
113 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info