14
0

Accepting request 1235236 from devel:languages:python

- Add README-SUSE.rst to describe the location of
  `/usr/local/bin/virtualenvwrapper*.sh` in our packages
  (bsc#1235076).

OBS-URL: https://build.opensuse.org/request/show/1235236
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtualenvwrapper?expand=0&rev=29
This commit is contained in:
2025-01-07 19:52:58 +00:00
committed by Git OBS Bridge
3 changed files with 20 additions and 3 deletions

8
README-SUSE.rst Normal file
View File

@@ -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``).

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jan 6 16:16:50 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- 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 <mcepl@cepl.eu>

View File

@@ -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