forked from pool/python-python-crontab
- Update to 2.6.0 - Fix #87 with specials flag on rendering options * Fix #82 with a cron_command API and README updates * Fix #88 with comment change * Merge branch 'issue-cron-weekdays-vs-python-weekdays' into 'master' * Fix test_02_days_per_year calculations incorrect * Fix #81 make a command valid when setting the command * bump version * Fix #75 apply disabled comment prefix before pre-comment * Fix #73 add support for percent sign stdin and escaping * Fix #71 record pre-comment styles faithfully for re-rendering OBS-URL: https://build.opensuse.org/request/show/1008605 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-crontab?expand=0&rev=14
79 lines
2.3 KiB
RPMSpec
79 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-python-crontab
|
|
#
|
|
# Copyright (c) 2022 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%bcond_without python2
|
|
Name: python-python-crontab
|
|
Version: 2.6.0
|
|
Release: 0
|
|
Summary: Python Crontab API
|
|
License: LGPL-3.0-only
|
|
Group: Development/Languages/Python
|
|
URL: https://gitlab.com/doctormo/python-crontab/
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-crontab/python-crontab-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-python-dateutil
|
|
Recommends: cronie
|
|
Recommends: python-cron-descriptor
|
|
Recommends: python-croniter
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module cron-descriptor}
|
|
BuildRequires: %{python_module croniter}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module testsuite if %python-base >= 3}
|
|
BuildRequires: cronie
|
|
%if %{with python2}
|
|
BuildRequires: python2-devel
|
|
%endif
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Crontab module for reading and writing crontab files and
|
|
accessing the system cron automatically using an API.
|
|
|
|
%prep
|
|
%setup -q -n python-crontab-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
%{python_expand mkdir -p build/bin
|
|
ln -s %{_bindir}/$python build/bin/python
|
|
}
|
|
export PATH=$PWD/build/bin:$PATH
|
|
# test_07_non_posix_shell - only for Windows
|
|
%pytest -k "not test_07_non_posix_shell"
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license COPYING AUTHORS
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|