File trytond_stock_lot_sled.spec of Package trytond_stock_lot_sled
#
# spec file for package trytond_stock_lot_sled
#
# Copyright (c) 2015-2021 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}.0
Name: trytond_stock_lot_sled
# 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
Source2: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz.asc
Source3: https://keybase.io/cedrickrier/pgp_keys.asc?fingerprint=7C5A4360F6DF81ABA91FD54D6FF50AFE03489130#/%{name}.keyring
Group: Productivity/Office/Management
Summary: Tryton module for shelf life expiration date of product lots
#
Requires: trytond
Requires: trytond_product
Requires: trytond_stock
Requires: trytond_stock_lot
BuildArch: noarch
%description
The stock_lot_sled module adds two fields on lot of products:
- Shelf Live Expiration Date
- Expiration Date
And it defines on the product the default time for those fields and on the stock configuration the Shelf Live Delay.
When the shelf life of a lot expires in less than the configured shelf life delay, it is no more used to compute the forecast quantity of the stock.
%prep
%setup -q
%build
%python3_build
%install
%python3_install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}
%files
%defattr(-,root,root)
%{python3_sitelib}/*
%changelog