15
0

Accepting request 731370 from home:jayvdb:strictyaml

dep of yacron, a Python cron

OBS-URL: https://build.opensuse.org/request/show/731370
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-crontab?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-09-17 08:46:14 +00:00
committed by Git OBS Bridge
commit 07c36a4c78
5 changed files with 91 additions and 0 deletions

60
python-crontab.spec Normal file
View File

@@ -0,0 +1,60 @@
#
# spec file for package python-crontab
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-crontab
Version: 0.22.6
Release: 0
Summary: Parse and use crontab schedules in Python
License: LGPL-2.1-only
Group: Development/Languages/Python
URL: https://github.com/josiahcarlson/parse-crontab
Source: https://github.com/josiahcarlson/parse-crontab/archive/%{version}.tar.gz#/crontab-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires: python-python-dateutil
Requires: python-pytz
%python_subpackages
%description
Parse and use crontab schedules in Python.
%prep
%setup -q -n parse-crontab-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE LICENSE3
%{python_sitelib}/*
%changelog