Группа :: Сети/Удалённый доступ
Пакет: sshpt
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# vim: set ft=spec: -*- rpm-spec -*-
# %%branch_switch set %%branch_release use
%define branch_switch M51
%define modulename sshpt
Name: %modulename
Version: 1.1.3
Release: %branch_release alt1
%setup_python_module %modulename
Summary: SSH Power Tool - Run commands and copy files to multiple servers simultaneously WITHOUT pre-shared keys
License: %gpl3plus
Group: Networking/Remote access
Url: http://code.google.com/p/sshpt
Packager: Aleksey Avdeev <solo at altlinux.ru>
BuildArch: noarch
Source: %name-%version.tar
Requires: python%__python_version-module-paramiko >= 1.7.0
Provides: python-module-%modulename = %version-%release
BuildRequires(pre): rpm-macros-branch
BuildPreReq: rpm-build-licenses
BuildPreReq: python-module-setuptools
%description
The SSH Power Tool (sshpt) enables you to execute commands and upload
files to many servers simultaneously via SSH without using pre-shared keys.
Uploaded files and commands can be executed directly or via sudo.
Connection and command execution results are output in standard CSV format
for easy importing into spreadsheets, databases, or data mining applications.
%prep
%setup
%build
%python_build
%install
%python_install
chmod 755 %buildroot%python_sitelibdir/%modulename.py
rm -f %buildroot%_bindir/%modulename.py
ln -s -f $(relative %buildroot%python_sitelibdir/%modulename.py \
%buildroot%_bindir/%name) %buildroot%_bindir/%name
%files
%_bindir/%name
%doc README.txt demos/
%python_sitelibdir/%modulename.py*
%python_sitelibdir/*.egg-info
%changelog
…
Полный changelog можно просмотреть здесь
# %%branch_switch set %%branch_release use
%define branch_switch M51
%define modulename sshpt
Name: %modulename
Version: 1.1.3
Release: %branch_release alt1
%setup_python_module %modulename
Summary: SSH Power Tool - Run commands and copy files to multiple servers simultaneously WITHOUT pre-shared keys
License: %gpl3plus
Group: Networking/Remote access
Url: http://code.google.com/p/sshpt
Packager: Aleksey Avdeev <solo at altlinux.ru>
BuildArch: noarch
Source: %name-%version.tar
Requires: python%__python_version-module-paramiko >= 1.7.0
Provides: python-module-%modulename = %version-%release
BuildRequires(pre): rpm-macros-branch
BuildPreReq: rpm-build-licenses
BuildPreReq: python-module-setuptools
%description
The SSH Power Tool (sshpt) enables you to execute commands and upload
files to many servers simultaneously via SSH without using pre-shared keys.
Uploaded files and commands can be executed directly or via sudo.
Connection and command execution results are output in standard CSV format
for easy importing into spreadsheets, databases, or data mining applications.
%prep
%setup
%build
%python_build
%install
%python_install
chmod 755 %buildroot%python_sitelibdir/%modulename.py
rm -f %buildroot%_bindir/%modulename.py
ln -s -f $(relative %buildroot%python_sitelibdir/%modulename.py \
%buildroot%_bindir/%name) %buildroot%_bindir/%name
%files
%_bindir/%name
%doc README.txt demos/
%python_sitelibdir/%modulename.py*
%python_sitelibdir/*.egg-info
%changelog
…
Полный changelog можно просмотреть здесь