SHA256
1
0
forked from pool/python-twine

Accepting request 333739 from home:posophe:branches:devel:languages:python

fix

OBS-URL: https://build.opensuse.org/request/show/333739
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=4
This commit is contained in:
Denisart Benjamin 2015-09-25 12:04:16 +00:00 committed by Git OBS Bridge
parent 046c646e26
commit 663313b434
2 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Fri Sep 25 11:27:26 UTC 2015 - p.drouand@gmail.com
- Update to version 1.6.1 - Update to version 1.6.1
* bug:`130` Fix signing support for uploads * bug:`130` Fix signing support for uploads
- Implement update-alternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 16 09:57:47 UTC 2014 - toddrme2178@gmail.com Wed Jul 16 09:57:47 UTC 2014 - toddrme2178@gmail.com

View File

@ -26,6 +26,8 @@ Url: https://github.com/dstufft/twine
Source: https://pypi.python.org/packages/source/t/twine/twine-%{version}.tar.gz Source: https://pypi.python.org/packages/source/t/twine/twine-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-setuptools BuildRequires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: python-pkginfo Requires: python-pkginfo
Requires: python-requests Requires: python-requests
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -80,11 +82,26 @@ python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/twine %{buildroot}%{_bindir}/twine-%{py_ver}
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/twine
ln -s -f %{_sysconfdir}/alternatives/twine %{buildroot}%{_bindir}/twine
%post
%_sbindir/update-alternatives \
--install %{_bindir}/twine twine %{_bindir}/twine-%{py_ver} 30
%postun
if [ $1 -eq 0 ] ; then
%_sbindir/update-alternatives --remove twine %{_bindir}/twine-%{py_ver}
fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS LICENSE README.rst %doc AUTHORS LICENSE README.rst
%{_bindir}/twine %{_bindir}/twine
%{_bindir}/twine-%{py_ver}
%{python_sitelib}/* %{python_sitelib}/*
%ghost %{_sysconfdir}/alternatives/twine
%changelog %changelog