File trytond_sale_payment.spec of Package trytond_sale_payment

#
# spec file for package trytond_sale_payment
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017-2024 Dr. Axel Braun
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


%define majorver 6.0
Name:           trytond_sale_payment
Version:        %{majorver}.3
Release:        0
Summary:        The sale_payment module of the Tryton application platform
License:        GPL-3.0+
Group:          Productivity/Office/Management
Url:            http://www.tryton.org/
Source:         http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz
## Source2:        http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc
## Source3:        https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring

BuildRequires:  fdupes
BuildRequires:	python3-setuptools 
Requires:       trytond 
Requires:       trytond_account_invoice
Requires:       trytond_account_payment
Requires:       trytond_sale
BuildArch:      noarch

%description
This module allows to register payments on sale before the creation of any invoice. When the payments for full amount of the sale are authorized, the sale is automatically confirmed. For example, this module is used to manage payment from a e-commerce website.

%prep
%setup -q 

%build
%python3_build
    
%install
%python3_install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}

%files 
%defattr(-,root,root)
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by