SHA256
1
0
forked from pool/proteus

Accepting request 1144240 from Application:ERP:GNUHealth:4.4

- add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1144240
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/proteus?expand=0&rev=53
This commit is contained in:
Axel Braun 2024-02-05 12:40:10 +00:00 committed by Git OBS Bridge
parent 92619e0335
commit 5fab24ad7d
2 changed files with 35 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jan 13 15:59:20 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- add %{?sle15_python_module_pythons}
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 18 08:42:19 UTC 2023 - Ben Greiner <code@bnavigator.de> Wed Oct 18 08:42:19 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -1,8 +1,8 @@
# #
# spec file for package proteus # spec file for package proteus
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2014-2021 Dr. Axel Braun # Copyright (c) 2014-2024 Dr. Axel Braun
# #
# 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
@ -17,6 +17,16 @@
# #
%if 0%{?suse_version} >= 1550
%define pythons python3
%define mypython python3
%define mysitelib %python3_sitelib
%else
%{?sle15_python_module_pythons}
%define mypython %pythons
%define mysitelib %{expand:%%%{mypython}_sitelib}
%endif
%define majorver 6.0 %define majorver 6.0
Name: proteus Name: proteus
Version: %{majorver}.8 Version: %{majorver}.8
@ -29,15 +39,20 @@ Source0: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.g
Source1: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc Source1: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc
Source2: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring Source2: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring
# List of additional build dependencies # List of additional build dependencies
BuildRequires: %{mypython}-devel
BuildRequires: %{mypython}-pip
BuildRequires: %{mypython}-setuptools
BuildRequires: %{mypython}-wheel
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python3-defusedxml BuildRequires: python-rpm-generators
BuildRequires: python3-pip BuildRequires: python-rpm-macros
BuildRequires: python3-python-dateutil
BuildRequires: python3-setuptools BuildRequires: %{mypython}-defusedxml
BuildRequires: python3-wheel BuildRequires: %{mypython}-python-dateutil
BuildRequires: trytond BuildRequires: trytond
Requires: python3-defusedxml Requires: %{mypython}-defusedxml
Requires: python3-python-dateutil Requires: %{mypython}-python-dateutil
Requires: trytond Requires: trytond
BuildArch: noarch BuildArch: noarch
@ -48,22 +63,21 @@ Proteus allows you to access Tryton's modules like a client. Useful for automati
%setup -q %setup -q
%build %build
%python3_pyproject_wheel %pyproject_wheel
%install %install
%python3_pyproject_install %pyproject_install
%fdupes %{buildroot}%{python3_sitelib} %python_expand %fdupes %{buildroot}%{mysitelib}
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}%{python3_sitelib} export PYTHONPATH=%{buildroot}%{mysitelib}
python3 -m unittest -v %pyunittest discover -v
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{mysitelib}/proteus*
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python3_sitelib}/proteus
%{python3_sitelib}/proteus-%{version}.dist-info
%changelog %changelog