Group :: Development/Python3
RPM: python3-module-croniter
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%global pypi_name croniter
%def_with check
Name: python3-module-%pypi_name
Version: 1.3.8
Release: alt1
Summary: Iteration for datetime object with cron like format
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/croniter/
VCS: http://github.com/kiorky/croniter
BuildArch: noarch
Source0: %name-%version.tar
Patch: %name-%version-alt.patch
BuildRequires: rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
# install_requires=
BuildRequires: python3(dateutil)
BuildRequires: python3(pytz)
BuildRequires: python3(pytest)
BuildRequires: python3(packaging)
%endif
%description
Croniter provides iteration for datetime object with cron like format.
%prep
%setup
%autopatch -p1
# Remove reundant script header to avoid rpmlint warnings
find -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +
%build
%pyproject_build
%install
%pyproject_install
%check
# override upstream's config (too much to patch)
%tox_create_default_config
# TimezoneDateutil test fails, see https://bugzilla.altlinux.org/show_bug.cgi?id=39164
%tox_check_pyproject -- -vra -k 'not testTimezoneDateutil'
%files
%doc README.rst
%python3_sitelibdir/croniter/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui
%global pypi_name croniter
%def_with check
Name: python3-module-%pypi_name
Version: 1.3.8
Release: alt1
Summary: Iteration for datetime object with cron like format
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/croniter/
VCS: http://github.com/kiorky/croniter
BuildArch: noarch
Source0: %name-%version.tar
Patch: %name-%version-alt.patch
BuildRequires: rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
%if_with check
# install_requires=
BuildRequires: python3(dateutil)
BuildRequires: python3(pytz)
BuildRequires: python3(pytest)
BuildRequires: python3(packaging)
%endif
%description
Croniter provides iteration for datetime object with cron like format.
%prep
%setup
%autopatch -p1
# Remove reundant script header to avoid rpmlint warnings
find -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +
%build
%pyproject_build
%install
%pyproject_install
%check
# override upstream's config (too much to patch)
%tox_create_default_config
# TimezoneDateutil test fails, see https://bugzilla.altlinux.org/show_bug.cgi?id=39164
%tox_check_pyproject -- -vra -k 'not testTimezoneDateutil'
%files
%doc README.rst
%python3_sitelibdir/croniter/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui