jcapitao pushed to rpms/python-croniter (epel9). "Bump version to 0.3.19"
by notifications@fedoraproject.org
Notification time stamped 2023-05-31 16:59:53 UTC
From c4a142e3a2eb75d42bec28d75807a71a77e24a46 Mon Sep 17 00:00:00 2001
From: Thomas Andrejak <thomas.andrejak(a)gmail.com>
Date: Oct 21 2017 20:51:47 +0000
Subject: Bump version to 0.3.19
---
diff --git a/python-croniter.spec b/python-croniter.spec
index 8a56cb6..ef77bed 100644
--- a/python-croniter.spec
+++ b/python-croniter.spec
@@ -1,115 +1,80 @@
-# Created by pyp2rpm-1.0.1
+# Created by pyp2rpm-3.2.3
%global pypi_name croniter
-%if 0%{?fedora}
-%global with_python3 1
-%endif
-
-%if 0%{?rhel} && 0%{?rhel} <= 6
-%{!?__python2: %global __python2 /usr/bin/python}
-%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
-%endif
-
Name: python-%{pypi_name}
-Version: 0.3.4
-Release: 12%{?dist}
+Version: 0.3.19
+Release: 1%{?dist}
Summary: Iteration for datetime object with cron like format
License: MIT
-URL: http://github.com/kiorky/croniter
-Source0: https://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{ver...
+URL: https://github.com/kiorky/croniter
+Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name...
BuildArch: noarch
-
+
BuildRequires: python2-devel
-BuildRequires: python-setuptools
-
-# For tests
-BuildRequires: python-dateutil
-BuildRequires: pytz
-
-%global _description\
-Croniter provides iteration for datetime object with cron like format.
-
-%description %_description
-
-%package -n python2-%{pypi_name}
-Summary: %summary
-Requires: python-dateutil
-%{?python_provide:%python_provide python2-%{pypi_name}}
-
-%description -n python2-%{pypi_name} %_description
-
-%if 0%{?with_python3}
-%package -n python3-%{pypi_name}
-Summary: Iteration for datetime object with cron like format
+BuildRequires: python2-setuptools
+
BuildRequires: python3-devel
BuildRequires: python3-setuptools
-BuildRequires: python3-dateutil
-BuildRequires: python3-pytz
-Requires: python3-dateutil
+%description
+croniter provides iteration for the datetime object with a cron like format.
+%package -n python2-%{pypi_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python2-%{pypi_name}}
+
+Requires: python2-dateutil
+%description -n python2-%{pypi_name}
+croniter provides iteration for the datetime object with a cron like format.
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+Requires: python3-dateutil
%description -n python3-%{pypi_name}
-Croniter provides iteration for datetime object with cron like format.
-%endif
+croniter provides iteration for the datetime object with a cron like format.
%prep
-%setup -q -n %{pypi_name}-%{version}
+%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}' {} +
-%if 0%{?with_python3}
-cp -a . %{py3dir}
-%endif
-
-
%build
-%{__python2} setup.py build
-
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py build
-popd
-%endif
-
+%py2_build
+%py3_build
%install
-%{__python2} setup.py install --skip-build --root %{buildroot}
-
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py install --skip-build --root %{buildroot}
-popd
-%endif
-
-
-%check
-PYTHONPATH=%{buildroot}%{python2_sitelib}/ %{__python2} -m unittest %{pypi_name}.tests.test_croniter
-rm -fr %{buildroot}%{python2_sitelib}/%{pypi_name}/tests/
-
-%if 0%{?with_python3}
-PYTHONPATH=%{buildroot}%{python3_sitelib}/ %{__python3} -m unittest discover -s %{buildroot}%{python3_sitelib}/%{pypi_name}/tests -p 'test_*.py'
-rm -fr %{buildroot}%{python3_sitelib}/%{pypi_name}/tests/
-%endif
+# Must do the subpackages' install first because the scripts in /usr/bin are
+# overwritten with every setup.py install.
+%py3_install
+%py2_install
%files -n python2-%{pypi_name}
-%doc README.rst docs/LICENSE
+%license docs/LICENSE
+%doc README.rst
+
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
-%if 0%{?with_python3}
%files -n python3-%{pypi_name}
-%doc README.rst docs/LICENSE
+%license docs/LICENSE
+%doc README.rst
+
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
-%endif
-
%changelog
+* Sat Oct 21 2017 Thomas Andrejak <thomas.andrejak(a)c-s.fr> - 0.3.19-1
+- Bump version to 0.3.19
+- Update to pyp2rpm 3.2.3
+
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl> - 0.3.4-12
- Python 2 binary package renamed to python2-croniter
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
diff --git a/sources b/sources
index b924384..b833a64 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0e82c181071558136d63ff3203f91290 croniter-0.3.4.zip
+e8b3f4a684c64878f7c6be6c4f9352a6 croniter-0.3.19.tar.gz
https://src.fedoraproject.org/rpms/python-croniter/c/c4a142e3a2eb75d42bec...
1 year
jcapitao pushed to rpms/python-croniter (epel9). "Rebuilt for Python 3.7"
by notifications@fedoraproject.org
Notification time stamped 2023-05-31 16:59:54 UTC
From f0f1b9fdbaa965692c71150977095837b180a999 Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: Jun 19 2018 08:58:02 +0000
Subject: Rebuilt for Python 3.7
---
diff --git a/python-croniter.spec b/python-croniter.spec
index dba2c3b..e001698 100644
--- a/python-croniter.spec
+++ b/python-croniter.spec
@@ -7,7 +7,7 @@
Name: python-%{pypi_name}
Version: 0.3.19
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Iteration for datetime object with cron like format
License: MIT
@@ -85,6 +85,9 @@ find -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +
%endif
%changelog
+* Tue Jun 19 2018 Miro Hrončok <mhroncok(a)redhat.com> - 0.3.19-3
+- Rebuilt for Python 3.7
+
* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.3.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
https://src.fedoraproject.org/rpms/python-croniter/c/f0f1b9fdbaa965692c71...
1 year
jcapitao pushed to rpms/python-croniter (epel9). "Add new sources
for 0.3.19"
by notifications@fedoraproject.org
Notification time stamped 2023-05-31 16:59:53 UTC
From c41842909930935fc5b8af7207cea172497ca35b Mon Sep 17 00:00:00 2001
From: Alan Pevec <alan.pevec(a)redhat.com>
Date: Oct 30 2017 18:43:40 +0000
Subject: Add new sources for 0.3.19
---
diff --git a/.gitignore b/.gitignore
index b9aa2f8..7514892 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/croniter-0.3.4.zip
+/croniter-0.3.19.tar.gz
diff --git a/sources b/sources
index b833a64..c04ecad 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e8b3f4a684c64878f7c6be6c4f9352a6 croniter-0.3.19.tar.gz
+SHA512 (croniter-0.3.19.tar.gz) = 3942798f82cafe11a29fa5c28ac8079bd77bbfd19c56df5195ab26af46a135022b455fafc189d00768290ec4eb45854a671cfd1b86515f8de3168f450a9c4201
https://src.fedoraproject.org/rpms/python-croniter/c/c41842909930935fc5b8...
1 year
jcapitao pushed to rpms/python-croniter (epel9). "Python 2 binary
package renamed to python2-croniter"
by notifications@fedoraproject.org
Notification time stamped 2023-05-31 16:59:53 UTC
From a8802b62046fbf57f41ea1066cfe72818767fbc6 Mon Sep 17 00:00:00 2001
From: Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl>
Date: Aug 19 2017 13:40:02 +0000
Subject: Python 2 binary package renamed to python2-croniter
---
diff --git a/python-croniter.spec b/python-croniter.spec
index 6df4309..8a56cb6 100644
--- a/python-croniter.spec
+++ b/python-croniter.spec
@@ -13,7 +13,7 @@
Name: python-%{pypi_name}
Version: 0.3.4
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Iteration for datetime object with cron like format
License: MIT
@@ -28,10 +28,17 @@ BuildRequires: python-setuptools
BuildRequires: python-dateutil
BuildRequires: pytz
+%global _description\
+Croniter provides iteration for datetime object with cron like format.
+
+%description %_description
+
+%package -n python2-%{pypi_name}
+Summary: %summary
Requires: python-dateutil
+%{?python_provide:%python_provide python2-%{pypi_name}}
-%description
-Croniter provides iteration for datetime object with cron like format.
+%description -n python2-%{pypi_name} %_description
%if 0%{?with_python3}
%package -n python3-%{pypi_name}
@@ -89,7 +96,7 @@ rm -fr %{buildroot}%{python3_sitelib}/%{pypi_name}/tests/
%endif
-%files
+%files -n python2-%{pypi_name}
%doc README.rst docs/LICENSE
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
@@ -103,6 +110,10 @@ rm -fr %{buildroot}%{python3_sitelib}/%{pypi_name}/tests/
%changelog
+* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl> - 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 <releng(a)fedoraproject.org> - 0.3.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
https://src.fedoraproject.org/rpms/python-croniter/c/a8802b62046fbf57f41e...
1 year