forked from pool/python-parallax
Accepting request 419489 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/419489 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parallax?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 15 14:51:56 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
- Fix update-alternatives implementation.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 27 08:49:44 UTC 2016 - kgronlund@suse.com
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ BuildRequires: python-setuptools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: openssh
|
||||
BuildArch: noarch
|
||||
Requires(post): /usr/sbin/update-alternatives
|
||||
Requires(postun): /usr/sbin/update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%description
|
||||
Parallax SSH provides an interface to executing commands on multiple
|
||||
@@ -47,18 +47,17 @@ python setup.py build
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
# create a dummy target for /etc/alternatives/parallax-askpass
|
||||
mv %{buildroot}%{_bindir}/parallax-askpass %{buildroot}%{_bindir}/parallax-askpass-%{py_ver}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/parallax-askpass
|
||||
mv %{buildroot}%{_bindir}/parallax-askpass %{buildroot}%{_bindir}/parallax-askpass-%{py_ver}
|
||||
ln -s -f %{_sysconfdir}/alternatives/parallax-askpass %{buildroot}%{_bindir}/parallax-askpass
|
||||
|
||||
%post
|
||||
"%_sbindir/update-alternatives" --install \
|
||||
/%{_bindir}/parallax-askpass parallax-askpass %{_bindir}/parallax-askpass-%{py_ver} 20
|
||||
%_sbindir/update-alternatives \
|
||||
--install %{_bindir}/parallax-askpass parallax-askpass %{_bindir}/parallax-askpass-%{py_ver} 20
|
||||
|
||||
%postun
|
||||
%preun
|
||||
if [ "$1" = 0 ] ; then
|
||||
"%_sbindir/update-alternatives" --remove parallax-askpass %{_bindir}/parallax-askpass-%{py_ver}
|
||||
%_sbindir/update-alternatives --remove parallax-askpass %{_bindir}/parallax-askpass-%{py_ver}
|
||||
fi
|
||||
|
||||
%files
|
||||
|
||||
Reference in New Issue
Block a user