forked from pool/trytond_product
- sitch to wheel and %{?sle15_python_module_pythons}
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/trytond_product?expand=0&rev=28
This commit is contained in:
parent
d8e9b7a6c1
commit
94fd07ae0a
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 15 22:29:52 UTC 2024 - Axel Braun <axel.braun@gmx.de>
|
||||||
|
|
||||||
|
- sitch to wheel and %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 19 11:39:07 UTC 2023 - Daniel Garcia Moreno <daniel.garcia@suse.com>
|
Thu Oct 19 11:39:07 UTC 2023 - Daniel Garcia Moreno <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#
|
#
|
||||||
# spec file for package trytond_product
|
# spec file for package trytond_product
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
# Copyright (c) 2014-2022 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: trytond_product
|
Name: trytond_product
|
||||||
Version: %{majorver}.4
|
Version: %{majorver}.4
|
||||||
@ -28,9 +38,13 @@ URL: http://www.tryton.org/
|
|||||||
Source: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz
|
Source: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz
|
||||||
Source2: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc
|
Source2: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc
|
||||||
Source3: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring
|
Source3: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring
|
||||||
|
BuildRequires: %{mypython}-devel
|
||||||
|
BuildRequires: %{mypython}-pip
|
||||||
|
BuildRequires: %{mypython}-setuptools
|
||||||
|
BuildRequires: %{mypython}-wheel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
Requires: trytond
|
Requires: trytond
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -44,14 +58,14 @@ Product Template, Product and Product Category.
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python3_install
|
%pyproject_install
|
||||||
%fdupes -s %{buildroot}
|
%python_expand %fdupes %{buildroot}%{mysitelib}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python3_sitelib}/*
|
%{mysitelib}/tryton*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user