forked from pool/python-pypiserver
Accepting request 807626 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807626 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pypiserver?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
dd5c2466f3
commit
3f7db2a7ef
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:39 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 23 13:11:12 UTC 2020 - pgajdos@suse.com
|
Mon Mar 23 13:11:12 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -39,6 +39,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-passlib >= 1.6
|
Requires: python-passlib >= 1.6
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
@@ -58,6 +60,7 @@ rm -f pytest.ini
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/pypi-server
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -66,10 +69,16 @@ rm -f pytest.ini
|
|||||||
# (see centodeps-setup.py)
|
# (see centodeps-setup.py)
|
||||||
%pytest tests -k "not (test_pipInstall_openOk or test_pipInstall_authedOk or test_hash_algos)"
|
%pytest tests -k "not (test_pipInstall_openOk or test_pipInstall_authedOk or test_hash_algos)"
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pypi-server
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pypi-server
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/pypi-server
|
%python_alternative %{_bindir}/pypi-server
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user