diff --git a/README-SUSE.rst b/README-SUSE.rst new file mode 100644 index 0000000..18a9bc5 --- /dev/null +++ b/README-SUSE.rst @@ -0,0 +1,8 @@ +Packaging of virtualenvwrapper for SUSE distros +=============================================== + +What upstream considers ``/usr/local/bin/virtualenvwrapper.sh`` and +``/usr/local/bin/virtualenvwrapper_lazy_.sh`` is packaged as +``/usr/bin/virtualenvwrapper`` and ``/usr/bin/virtualenvwrapper_lazy_`` +(system packages in SUSE distributions are not supposed to store +anything in ``/usr/local``). diff --git a/python-virtualenvwrapper.changes b/python-virtualenvwrapper.changes index 535441e..b0646a1 100644 --- a/python-virtualenvwrapper.changes +++ b/python-virtualenvwrapper.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 6 16:16:50 UTC 2025 - Matej Cepl + +- Add README-SUSE.rst to describe the location of + `/usr/local/bin/virtualenvwrapper*.sh` in our packages + (bsc#1235076). + ------------------------------------------------------------------- Mon Oct 14 06:37:26 UTC 2024 - Matej Cepl diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec index 0ce2470..e5eaa1f 100644 --- a/python-virtualenvwrapper.spec +++ b/python-virtualenvwrapper.spec @@ -1,7 +1,7 @@ # # spec file for package python-virtualenvwrapper # -# Copyright (c) 2024 SUSE LLC +# 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 @@ -17,7 +17,6 @@ %bcond_with test -%global pythons python3 Name: python-virtualenvwrapper Version: 6.1.1 Release: 0 @@ -25,6 +24,7 @@ Summary: Enhancements to virtualenv License: MIT URL: https://virtualenvwrapper.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz +Source98: README-SUSE.rst Source99: python-virtualenvwrapper.rpmlintrc BuildRequires: %{python_module pbr} BuildRequires: %{python_module pip} @@ -65,6 +65,8 @@ conflicts in their dependencies. %autosetup -p1 -n virtualenvwrapper-%{version} sed -i -e '1i#!/bin/sh' virtualenvwrapper.sh +cp -p %{SOURCE98} . + %build %pyproject_wheel @@ -92,7 +94,7 @@ done %files %{python_files} %license LICENSE -%doc README.es.rst README.ja.rst README.txt +%doc README.es.rst README.ja.rst README.txt README-SUSE.rst %python_alternative %{_bindir}/virtualenvwrapper %python_alternative %{_bindir}/virtualenvwrapper_lazy %{python_sitelib}/virtualenvwrapper