2016-09-23 11:32:28 +02:00
|
|
|
#
|
|
|
|
# spec file for package proteus
|
|
|
|
#
|
2024-02-05 13:40:10 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
# Copyright (c) 2014-2024 Dr. Axel Braun
|
2016-09-23 11:32:28 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-10 20:09:26 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-08 18:28:06 +01:00
|
|
|
#
|
|
|
|
|
2016-09-23 11:32:28 +02:00
|
|
|
|
2024-02-05 13:40:10 +01:00
|
|
|
%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
|
|
|
|
|
2022-03-07 15:17:52 +01:00
|
|
|
%define majorver 6.0
|
2016-09-23 11:32:28 +02:00
|
|
|
Name: proteus
|
2023-02-06 18:37:49 +01:00
|
|
|
Version: %{majorver}.8
|
2017-07-05 23:55:37 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A library to access Tryton's modules like a client
|
2018-03-11 15:24:29 +01:00
|
|
|
License: GPL-3.0-or-later
|
2017-07-05 23:55:37 +02:00
|
|
|
Group: Productivity/Office/Management
|
2019-11-29 15:18:21 +01:00
|
|
|
URL: http://www.tryton.org/
|
2017-07-05 23:55:37 +02:00
|
|
|
Source0: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz
|
2021-02-28 08:55:25 +01:00
|
|
|
Source1: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc
|
|
|
|
Source2: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring
|
2016-09-23 11:32:28 +02:00
|
|
|
# List of additional build dependencies
|
2024-02-05 13:40:10 +01:00
|
|
|
BuildRequires: %{mypython}-devel
|
|
|
|
BuildRequires: %{mypython}-pip
|
|
|
|
BuildRequires: %{mypython}-setuptools
|
|
|
|
BuildRequires: %{mypython}-wheel
|
2016-09-23 11:32:28 +02:00
|
|
|
BuildRequires: fdupes
|
2024-02-05 13:40:10 +01:00
|
|
|
BuildRequires: python-rpm-generators
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
|
|
|
BuildRequires: %{mypython}-defusedxml
|
|
|
|
BuildRequires: %{mypython}-python-dateutil
|
|
|
|
|
2023-10-18 11:30:14 +02:00
|
|
|
BuildRequires: trytond
|
2024-02-05 13:40:10 +01:00
|
|
|
Requires: %{mypython}-defusedxml
|
|
|
|
Requires: %{mypython}-python-dateutil
|
2016-11-08 18:28:06 +01:00
|
|
|
Requires: trytond
|
2017-07-05 23:55:37 +02:00
|
|
|
BuildArch: noarch
|
2016-09-23 11:32:28 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Proteus allows you to access Tryton's modules like a client. Useful for automation, data load etc.
|
|
|
|
|
|
|
|
%prep
|
2021-07-02 09:12:56 +02:00
|
|
|
%setup -q
|
2016-09-23 11:32:28 +02:00
|
|
|
|
2021-07-02 09:12:56 +02:00
|
|
|
%build
|
2024-02-05 13:40:10 +01:00
|
|
|
%pyproject_wheel
|
2016-11-08 18:28:06 +01:00
|
|
|
|
2016-09-23 11:32:28 +02:00
|
|
|
%install
|
2024-02-05 13:40:10 +01:00
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{mysitelib}
|
2023-10-18 11:30:14 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
2024-02-05 13:40:10 +01:00
|
|
|
export PYTHONPATH=%{buildroot}%{mysitelib}
|
|
|
|
%pyunittest discover -v
|
2016-09-23 11:32:28 +02:00
|
|
|
|
2021-07-02 09:12:56 +02:00
|
|
|
%files
|
2016-09-23 11:32:28 +02:00
|
|
|
%defattr(-,root,root)
|
2024-02-05 13:40:10 +01:00
|
|
|
%{mysitelib}/proteus*
|
2022-03-07 15:17:52 +01:00
|
|
|
%doc README.rst
|
2020-11-11 19:13:03 +01:00
|
|
|
%license LICENSE
|
2016-09-23 11:32:28 +02:00
|
|
|
|
|
|
|
%changelog
|