File trytond_sale_subscription.spec of Package trytond_sale_subscription

#
# spec file for package trytond_sale_subscription
#
# 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
Version:        %{majorver}.6

Name:           trytond_sale_subscription
# List of additional build dependencies
BuildRequires:  fdupes
BuildRequires:	python3-setuptools 
Release:        0
License:        GPL-3.0
Url:            http://www.tryton.org/
Source:         http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz
Group:          Productivity/Office/Management
Summary:        The sale_subscription module of the Tryton OpenSource ERP system
#
Requires:       python3-dateutil
Requires:       trytond
Requires:	trytond_account
Requires:	trytond_account_invoice
Requires:	trytond_company
Requires:       trytond_currency
Requires:       trytond_product
Requires:       trytond_sale

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
The sale subscription module defines subscription, services and recurrence rule models.
A subscription defines how some recurring services are periodically invoiced. The invoice is generated based on the consumption of each services. 
A subscription service defines the default consumption of a product. I
The Recurrence Rule defines combination of rules which compute the occurrence dates.

%prep
%setup -q 

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

%files 
%defattr(-,root,root)
%{python3_sitelib}/*
openSUSE Build Service is sponsored by