File python-crontab.spec of Package python-crontab

# spec file for package python-crontab
# Copyright (c) 2021 SUSE LLC
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-crontab
Version:        0.23.0
Release:        0
Summary:        Python module for parsing and using crontab schedules
License:        LGPL-2.1-only
Group:          Development/Languages/Python
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module python-dateutil}
BuildRequires:  %{python_module pytz}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-python-dateutil
Requires:       python-pytz
BuildArch:      noarch

This package offers a method of parsing crontab schedule entries and
determining when an item should next be run. More specifically, it
calculates a delay in seconds from when the .next() method is called
to when the item should next be executed.

%setup -q -n parse-crontab-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}


%files %{python_files}
%doc README.rst

openSUSE Build Service is sponsored by