Accepting request 260929 from home:MargueriteSu:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/260929 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=32
This commit is contained in:
parent
6d3f3ad271
commit
0b0aac9fe8
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 11 17:45:50 UTC 2014 - i@marguerite.su
|
||||||
|
|
||||||
|
- use update-alternatives for /usr/bin/keyring because there'll be
|
||||||
|
a python3-keyring package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 14 09:57:54 UTC 2014 - kgronlund@suse.com
|
Tue Oct 14 09:57:54 UTC 2014 - kgronlund@suse.com
|
||||||
|
|
||||||
|
@ -34,6 +34,8 @@ BuildRequires: python-pytest-runner
|
|||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
BuildRequires: python-unittest2
|
BuildRequires: python-unittest2
|
||||||
%endif
|
%endif
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Provides: python-keyring-kde = %{version}
|
Provides: python-keyring-kde = %{version}
|
||||||
Obsoletes: python-keyring-kde < %{version}
|
Obsoletes: python-keyring-kde < %{version}
|
||||||
Provides: python-keyring-gnome = %{version}
|
Provides: python-keyring-gnome = %{version}
|
||||||
@ -60,13 +62,30 @@ python setup.py build
|
|||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
|
# update-alternatives
|
||||||
|
mv %{buildroot}%{_bindir}/keyring %{buildroot}%{_bindir}/keyring-%{py_ver}
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
touch %{buildroot}%{_sysconfdir}/alternatives/keyring
|
||||||
|
ln -sf %{_sysconfdir}/alternatives/keyring %{buildroot}%{_bindir}/keyring
|
||||||
|
|
||||||
%check
|
%check
|
||||||
py.test
|
py.test
|
||||||
|
|
||||||
|
%post
|
||||||
|
update-alternatives \
|
||||||
|
--install %{_bindir}/keyring keyring %{_bindir}/keyring-%{py_ver} 20
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
update-alternatives --remove keyring %{_bindir}/keyring-%{py_ver}
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CONTRIBUTORS.txt README.rst CHANGES.rst
|
%doc CONTRIBUTORS.txt README.rst CHANGES.rst
|
||||||
|
%ghost %{_sysconfdir}/alternatives/keyring
|
||||||
%{_bindir}/keyring
|
%{_bindir}/keyring
|
||||||
|
%{_bindir}/keyring-%{py_ver}
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user