2019-10-23 07:13:37 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-nodeenv
|
|
|
|
#
|
2023-11-23 15:56:11 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-10-23 07:13:37 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-23 07:13:53 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-10-23 07:13:37 +00:00
|
|
|
|
2023-11-23 15:56:11 +00:00
|
|
|
%{?sle15allpythons}
|
2019-10-23 07:13:37 +00:00
|
|
|
|
|
|
|
Name: python-nodeenv
|
2022-07-19 11:47:21 +00:00
|
|
|
Version: 1.7.0
|
2019-10-23 07:13:37 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Nodejs virtual environment builder
|
2019-10-23 07:13:53 +00:00
|
|
|
License: BSD-2-Clause
|
|
|
|
URL: https://github.com/ekalinin/nodeenv
|
2019-10-23 07:13:37 +00:00
|
|
|
Source: https://github.com/ekalinin/nodeenv/archive/%{version}.tar.gz#/nodeenv-%{version}.tar.gz
|
2022-03-24 12:36:27 +00:00
|
|
|
# https://github.com/ekalinin/nodeenv/issues/302
|
|
|
|
Patch0: python-nodeenv-no-mock.patch
|
2019-10-23 07:13:37 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2019-10-23 07:13:53 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-10-23 07:13:37 +00:00
|
|
|
Requires: python-setuptools
|
2020-05-21 18:33:39 +00:00
|
|
|
Requires(post): update-alternatives
|
2023-11-23 15:56:11 +00:00
|
|
|
Requires(postun): update-alternatives
|
2019-10-23 07:13:37 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Node.js virtual environment builder.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n nodeenv-%{version}
|
2022-03-24 12:36:27 +00:00
|
|
|
%patch0 -p1
|
2019-10-23 07:13:37 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2020-05-21 18:33:39 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/nodeenv
|
2019-10-23 07:13:37 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# test_smoke is an integration test requiring network access.
|
|
|
|
%pytest -k 'not test_smoke'
|
|
|
|
|
2020-05-21 18:33:39 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative nodeenv
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative nodeenv
|
|
|
|
|
2019-10-23 07:13:37 +00:00
|
|
|
%files %{python_files}
|
2020-06-14 09:35:19 +00:00
|
|
|
%doc CHANGES README.rst
|
2019-10-23 07:13:37 +00:00
|
|
|
%license LICENSE
|
2020-05-21 18:33:39 +00:00
|
|
|
%python_alternative %{_bindir}/nodeenv
|
2019-10-23 07:13:37 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|