forked from pool/python-nodeenv
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:
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user