14
0

Accepting request 808043 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/808043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nodeenv?expand=0&rev=3
This commit is contained in:
2020-05-28 07:11:34 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 21 10:56:37 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Mar 16 10:52:58 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -44,16 +46,23 @@ Node.js virtual environment builder.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/nodeenv
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_smoke is an integration test requiring network access.
%pytest -k 'not test_smoke'
%post
%python_install_alternative nodeenv
%postun
%python_uninstall_alternative nodeenv
%files %{python_files}
%doc AUTHORS CHANGES README README.rst
%license LICENSE
%python3_only %{_bindir}/nodeenv
%python_alternative %{_bindir}/nodeenv
%{python_sitelib}/*
%changelog