diff --git a/.python-croniter.metadata b/.python-croniter.metadata new file mode 100644 index 0000000..7b6b601 --- /dev/null +++ b/.python-croniter.metadata @@ -0,0 +1 @@ +e2222e7b04992473d601d9a4dc0cbfec1e67b398 SOURCES/croniter-0.3.35.tar.gz diff --git a/SPECS/python-croniter.spec b/SPECS/python-croniter.spec new file mode 100644 index 0000000..1adcd33 --- /dev/null +++ b/SPECS/python-croniter.spec @@ -0,0 +1,184 @@ +# Created by pyp2rpm-3.2.3 +%global pypi_name croniter + +%if 0%{?fedora} || 0%{?rhel} > 7 +%bcond_with python2 +%bcond_without python3 +%else +%bcond_without python2 +%bcond_with python3 +%endif + +Name: python-%{pypi_name} +Version: 0.3.35 +Release: 2%{?dist} +Summary: Iteration for datetime object with cron like format + +License: MIT +URL: https://github.com/kiorky/croniter +Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%if %{with python2} +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%endif + +%if %{with python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%endif + +%description +croniter provides iteration for the datetime object with a cron like format. + +%if %{with python2} +%package -n python2-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{pypi_name}} + +Requires: python2-dateutil +Requires: python2-natsort +%description -n python2-%{pypi_name} +croniter provides iteration for the datetime object with a cron like format. +%endif + +%if %{with python3} +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-dateutil +Requires: python3-natsort +%description -n python3-%{pypi_name} +croniter provides iteration for the datetime object with a cron like format. +%endif + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +# Remove reundant script header to avoid rpmlint warnings +find -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} + + +%build +%if %{with python2} +%py2_build +%endif +%if %{with python3} +%py3_build +%endif + +%install +# Must do the subpackages' install first because the scripts in /usr/bin are +# overwritten with every setup.py install. +%if %{with python3} +%py3_install +%endif + +%if %{with python2} +%py2_install +%endif + +%if %{with python2} +%files -n python2-%{pypi_name} +%license docs/LICENSE +%doc README.rst + +%{python2_sitelib}/%{pypi_name} +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%endif + +%if %{with python3} +%files -n python3-%{pypi_name} +%license docs/LICENSE +%doc README.rst + +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%endif + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 0.3.35-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Nov 2 2020 Yatin Karel - 0.3.35-1 +- Update to 0.3.35 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.27-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.3.27-6 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.27-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.3.27-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.3.27-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.27-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Feb 07 2019 Yatin Karel - 0.3.27-1 +- Bump to 0.3.27 +- Add conditionals to build python2 subpackage in CentOS <=7 + +* Sat Feb 02 2019 Fedora Release Engineering - 0.3.19-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 0.3.19-5 +- Subpackage python2-croniter has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Fri Jul 13 2018 Fedora Release Engineering - 0.3.19-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.3.19-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.3.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Oct 21 2017 Thomas Andrejak - 0.3.19-1 +- Bump version to 0.3.19 +- Update to pyp2rpm 3.2.3 + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.3.4-12 +- Python 2 binary package renamed to python2-croniter + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.3.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.3.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.3.4-9 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.3.4-8 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.3.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 0.3.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.3.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.3.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 14 2014 Bohuslav Kabrda - 0.3.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Fri Feb 21 2014 Pádraig Brady - 0.3.4-2 +- Initial package.