14
0

Accepting request 807986 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807986
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nodeenv?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2020-05-21 18:33:39 +00:00
committed by Git OBS Bridge
parent 45f3e877d8
commit 3d969db803
2 changed files with 15 additions and 1 deletions

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