14
0

- Convert to pip-based build and libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-seqdiag?expand=0&rev=17
This commit is contained in:
2025-06-12 10:45:04 +00:00
committed by Git OBS Bridge
parent 7e8472d2d3
commit 30fbf5df5e
2 changed files with 17 additions and 13 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 12 10:44:17 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build and libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 4 15:16:59 UTC 2022 - Dirk Müller <dmueller@suse.com> Sat Jun 4 15:16:59 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-seqdiag # spec file for package python-seqdiag
# #
# Copyright (c) 2022 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,8 +16,7 @@
# #
%define skip_python2 1 %bcond_without libalternatives
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-seqdiag Name: python-seqdiag
Version: 3.0.0 Version: 3.0.0
Release: 0 Release: 0
@@ -27,12 +26,14 @@ Group: Development/Languages/Python
URL: http://blockdiag.com/ URL: http://blockdiag.com/
Source: https://files.pythonhosted.org/packages/source/s/seqdiag/seqdiag-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/seqdiag/seqdiag-%{version}.tar.gz
BuildRequires: %{python_module blockdiag >= 1.5.0} BuildRequires: %{python_module blockdiag >= 1.5.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-blockdiag >= 1.5.0 Requires: python-blockdiag >= 1.5.0
Requires: python-setuptools Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -46,22 +47,20 @@ BuildArch: noarch
%setup -q -n seqdiag-%{version} %setup -q -n seqdiag-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/seqdiag %python_clone -a %{buildroot}%{_bindir}/seqdiag
%post %pre
%python_install_alternative seqdiag %python_libalternatives_reset_alternative seqdiag
%postun
%python_uninstall_alternative seqdiag
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%python_alternative %{_bindir}/seqdiag %python_alternative %{_bindir}/seqdiag
%{python_sitelib}/* %{python_sitelib}/seqdiag
%{python_sitelib}/seqdiag-%{version}*-info
%changelog %changelog