forked from pool/python-pyVows
Accepting request 1282609 from devel:languages:python
- Convert to pip-based build - Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1282609 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyVows?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 4 08:38:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 20 07:26:56 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Wed May 20 07:26:56 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyVows
|
# spec file for package python-pyVows
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
Name: python-pyVows
|
Name: python-pyVows
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -28,15 +28,17 @@ Source: https://files.pythonhosted.org/packages/source/p/pyVows/pyVows-%
|
|||||||
BuildRequires: %{python_module Unidecode}
|
BuildRequires: %{python_module Unidecode}
|
||||||
BuildRequires: %{python_module colorama >= 0.3.7}
|
BuildRequires: %{python_module colorama >= 0.3.7}
|
||||||
BuildRequires: %{python_module gevent >= 0.13.6}
|
BuildRequires: %{python_module gevent >= 0.13.6}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module preggy >= 0.5.8}
|
BuildRequires: %{python_module preggy >= 0.5.8}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-Unidecode
|
Requires: python-Unidecode
|
||||||
Requires: python-gevent >= 1.2.2
|
Requires: python-gevent >= 1.2.2
|
||||||
Requires: python-preggy >= 1.3.0
|
Requires: python-preggy >= 1.3.0
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Recommends: python-colorama >= 0.3.7
|
Recommends: python-colorama >= 0.3.7
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -50,11 +52,11 @@ sed -i '/^#!/d' pyvows/__main__.py pyvows/cli.py
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyvows
|
%python_clone -a %{buildroot}%{_bindir}/pyvows
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -64,14 +66,15 @@ export PYTHONPATH=.
|
|||||||
export PATH=%{buildroot}%{_bindir}:$PATH
|
export PATH=%{buildroot}%{_bindir}:$PATH
|
||||||
%python_exec pyvows/cli.py -x tests/
|
%python_exec pyvows/cli.py -x tests/
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative pyvows
|
# removing old update-alternatives entries
|
||||||
|
%python_libalternatives_reset_alternative pyvows
|
||||||
|
|
||||||
%postun
|
# post and postun macro call is not needed with only libalternatives
|
||||||
%python_uninstall_alternative pyvows
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%python_alternative %{_bindir}/pyvows
|
%python_alternative %{_bindir}/pyvows
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pyvows
|
||||||
|
%{python_sitelib}/py[Vv]ows-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user