forked from pool/python-parallax
Accepting request 519175 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/519175 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parallax?expand=0&rev=8
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ca4148944cb51ed2f50974445ad1e6f62078440b5d5cdc227872a3246e1b74e8
|
||||
size 16086
|
||||
3
parallax-1.0.2.tar.gz
Normal file
3
parallax-1.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cc2d4aeb4643d5383d2d44016d7d825ecddb5f95b5791023fbc1b0ae3b7ab9e9
|
||||
size 16520
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 28 12:57:29 UTC 2017 - kgronlund@suse.com
|
||||
|
||||
- Release 1.0.2
|
||||
- Switch to new singlespec packaging
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 8 17:14:48 UTC 2016 - kgronlund@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-parallax
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,16 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
|
||||
Name: python-parallax
|
||||
Version: 1.0.1
|
||||
Version: 1.0.2
|
||||
Release: 0
|
||||
Summary: Execute commands and copy files over SSH to multiple machines at once
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/krig/parallax/
|
||||
Source: https://pypi.python.org/packages/source/p/parallax/parallax-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Source: https://files.pythonhosted.org/packages/34/a7/039f774fcc9d1aff6bfe21969028781b8c61bd4e4938f1b2bb96387db68b/parallax-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: openssh
|
||||
BuildArch: noarch
|
||||
@@ -42,36 +45,31 @@ Parallax SSH provides an interface to executing commands on multiple
|
||||
nodes at once using SSH. It also provides commands for sending and receiving files to
|
||||
multiple nodes using SCP.
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%prep
|
||||
%setup -q -n parallax-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/parallax-askpass
|
||||
|
||||
# create a dummy target for /etc/alternatives/parallax-askpass
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
mv %{buildroot}%{_bindir}/parallax-askpass %{buildroot}%{_bindir}/parallax-askpass-%{py_ver}
|
||||
ln -s -f %{_sysconfdir}/alternatives/parallax-askpass %{buildroot}%{_bindir}/parallax-askpass
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%post
|
||||
%_sbindir/update-alternatives \
|
||||
--install %{_bindir}/parallax-askpass parallax-askpass %{_bindir}/parallax-askpass-%{py_ver} 20
|
||||
%python_install_alternative parallax-askpass
|
||||
|
||||
%preun
|
||||
if [ "$1" = 0 ] ; then
|
||||
%_sbindir/update-alternatives --remove parallax-askpass %{_bindir}/parallax-askpass-%{py_ver}
|
||||
fi
|
||||
%postun
|
||||
%python_uninstall_alternative parallax-askpass
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS README.md COPYING
|
||||
%{python_sitelib}/parallax
|
||||
%{python_sitelib}/parallax-%{version}*.egg-info
|
||||
%{_bindir}/parallax-askpass
|
||||
%{_bindir}/parallax-askpass-%{py_ver}
|
||||
%ghost %_sysconfdir/alternatives/parallax-askpass
|
||||
%python_alternative %{_bindir}/parallax-askpass
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user