From 65816c1ed82006e5b8d1607c00fc07db4807a8a8c76d79867a191de49e360c97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 21 Aug 2025 10:01:19 +0000 Subject: [PATCH] - Convert to libalternatives on SLE-16-based and newer systems only OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nodeenv?expand=0&rev=30 --- .gitattributes | 23 +++++++++ .gitignore | 1 + nodeenv-1.8.0.tar.gz | 3 ++ nodeenv-1.9.1.tar.gz | 3 ++ python-nodeenv.changes | 113 +++++++++++++++++++++++++++++++++++++++++ python-nodeenv.spec | 84 ++++++++++++++++++++++++++++++ 6 files changed, 227 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 nodeenv-1.8.0.tar.gz create mode 100644 nodeenv-1.9.1.tar.gz create mode 100644 python-nodeenv.changes create mode 100644 python-nodeenv.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/nodeenv-1.8.0.tar.gz b/nodeenv-1.8.0.tar.gz new file mode 100644 index 0000000..1d24e35 --- /dev/null +++ b/nodeenv-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a8931e93a9aeae1fffa0bd76e077168e5c0ce4b32f9bc85dee2e8d8eb35a2f9 +size 36750 diff --git a/nodeenv-1.9.1.tar.gz b/nodeenv-1.9.1.tar.gz new file mode 100644 index 0000000..b791bab --- /dev/null +++ b/nodeenv-1.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d8ba86a1e4ab68bb16e8f1a1ac4f6261288012c72d4fa4a697949535c2c8d04 +size 37158 diff --git a/python-nodeenv.changes b/python-nodeenv.changes new file mode 100644 index 0000000..76c338f --- /dev/null +++ b/python-nodeenv.changes @@ -0,0 +1,113 @@ +------------------------------------------------------------------- +Thu Aug 21 10:00:55 UTC 2025 - Markéta Machová + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- +Wed Jul 16 12:59:23 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Mon May 5 02:59:57 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Wed Nov 13 13:47:10 UTC 2024 - Daniel Garcia + +- Fix package license to BSD-3-Clause + +------------------------------------------------------------------- +Mon Oct 28 22:04:00 UTC 2024 - Dirk Müller + +- update to 1.9.1: + * #358 + * #338 + * #347 + * #348 + * #345 + * #342 + * #346 + +------------------------------------------------------------------- +Wed Dec 20 07:11:46 UTC 2023 - Dirk Müller + +- update to 1.8.0: + * Changes: + * #312 + * #313 + * #317 + * #320 + * #327 + * #329 + * #330 +- drop python-nodeenv-no-mock.patch (obsolete) + +------------------------------------------------------------------- +Thu Nov 23 09:54:32 UTC 2023 - Matthias Bach + +- Also build for modern Python on Leap. +- Drop explicit definition of %python_module in the spec file. + This is nowadays defined on all distributions we build for. + +------------------------------------------------------------------- +Tue Jul 19 11:46:53 UTC 2022 - Dirk Müller + +- update to 1.7.0: + * improved m1 support + * drop python 3.4-3.6 + +------------------------------------------------------------------- +Thu Mar 24 11:47:05 UTC 2022 - pgajdos@suse.com + +- do not require pytest-mock for build +- added patches + fix https://github.com/ekalinin/nodeenv/issues/302 + + python-nodeenv-no-mock.patch + +------------------------------------------------------------------- +Thu Jun 17 21:09:12 UTC 2021 - Dirk Müller + +- update to 1.6.0: + * M1 support + +------------------------------------------------------------------- +Wed Sep 16 11:25:25 UTC 2020 - Dirk Mueller + +- update to 1.5.0: + * ignore ssl option, MSYS2 support + +------------------------------------------------------------------- +Sun Jun 14 09:34:58 UTC 2020 - Dirk Mueller + +- update to 1.4.0: + * a new way of the mirroring; some fixes + +------------------------------------------------------------------- +Thu May 21 10:56:37 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Mon Mar 16 10:52:58 UTC 2020 - Dirk Mueller + +- update to 1.3.5 + +------------------------------------------------------------------- +Tue Oct 22 05:40:06 UTC 2019 - John Vandenberg + +- Activate test suite + +------------------------------------------------------------------- +Tue Apr 04 13:15:06 UTC 2019 - John Vandenberg + +- Add Python 3 with single spec +- Update to v1.3.3 + +------------------------------------------------------------------- +Fri Jan 13 19:27:35 UTC 2017 - mardnh@gmx.de + +- initial package, version 1.0.0 + diff --git a/python-nodeenv.spec b/python-nodeenv.spec new file mode 100644 index 0000000..3551e84 --- /dev/null +++ b/python-nodeenv.spec @@ -0,0 +1,84 @@ +# +# spec file for package python-nodeenv +# +# Copyright (c) 2025 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif +%{?sle15allpythons} +Name: python-nodeenv +Version: 1.9.1 +Release: 0 +Summary: Nodejs virtual environment builder +License: BSD-3-Clause +URL: https://github.com/ekalinin/nodeenv +Source: https://github.com/ekalinin/nodeenv/archive/%{version}.tar.gz#/nodeenv-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-setuptools +BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif +%python_subpackages + +%description +Node.js virtual environment builder. + +%prep +%autosetup -p1 -n nodeenv-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_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 + +%pre +%python_libalternatives_reset_alternative nodeenv + +%files %{python_files} +%doc CHANGES README.rst +%license LICENSE +%python_alternative %{_bindir}/nodeenv +%{python_sitelib}/nodeenv.py +%pycache_only %{python_sitelib}/__pycache__/nodeenv.*.pyc +%{python_sitelib}/nodeenv-%{version}.dist-info + +%changelog