|
|
719194 |
%global pypi_name pytimeparse
|
|
|
719194 |
|
|
|
719194 |
%if 0%{?fedora} || 0%{?rhel} >=8
|
|
|
719194 |
%bcond_without python3
|
|
|
719194 |
%else
|
|
|
719194 |
%bcond_with python3
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if 0%{?fedora} && 0%{?fedora} >= 30
|
|
|
719194 |
%bcond_with python2
|
|
|
719194 |
%else
|
|
|
719194 |
%bcond_with python2
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
Name: python-%{pypi_name}
|
|
|
719194 |
Version: 1.1.8
|
|
|
719194 |
Release: 8%{?dist}
|
|
|
719194 |
Summary: Time expression parser
|
|
|
719194 |
|
|
|
719194 |
License: MIT
|
|
|
719194 |
URL: https://github.com/wroberts/%{pypi_name}
|
|
|
719194 |
Source0: %{pypi_source}
|
|
|
719194 |
BuildArch: noarch
|
|
|
719194 |
|
|
|
719194 |
%if %{with python2}
|
|
|
719194 |
BuildRequires: python2-devel
|
|
|
719194 |
BuildRequires: python2-nose
|
|
|
719194 |
BuildRequires: python2-setuptools
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if %{with python3}
|
|
|
719194 |
BuildRequires: python3-devel
|
|
|
719194 |
BuildRequires: python3dist(nose)
|
|
|
719194 |
BuildRequires: python3dist(setuptools)
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%description
|
|
|
719194 |
A small Python module to parse various kinds of time expressions.
|
|
|
719194 |
|
|
|
719194 |
%if %{with python2}
|
|
|
719194 |
%package -n python2-%{pypi_name}
|
|
|
719194 |
Summary: %{summary}
|
|
|
719194 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
719194 |
|
|
|
719194 |
%description -n python2-%{pypi_name}
|
|
|
719194 |
A small Python module to parse various kinds of time expressions.
|
|
|
719194 |
|
|
|
719194 |
This is the Python 2 version of the package.
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if %{with python3}
|
|
|
719194 |
%package -n python3-%{pypi_name}
|
|
|
719194 |
Summary: %{summary}
|
|
|
719194 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
719194 |
|
|
|
719194 |
%description -n python3-%{pypi_name}
|
|
|
719194 |
A small Python module to parse various kinds of time expressions.
|
|
|
719194 |
|
|
|
719194 |
This is the Python 3 version of the package.
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%prep
|
|
|
719194 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
719194 |
# Remove bundled egg-info
|
|
|
719194 |
rm -rf %{pypi_name}.egg-info
|
|
|
719194 |
|
|
|
719194 |
# Remove shebangs from Python scripts
|
|
|
719194 |
find . -name '*.py' -exec sed -i '1 { /^#!/ d }' {} \+
|
|
|
719194 |
|
|
|
719194 |
%build
|
|
|
719194 |
%if %{with python2}
|
|
|
719194 |
%py2_build
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if %{with python3}
|
|
|
719194 |
%py3_build
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%install
|
|
|
719194 |
%if %{with python2}
|
|
|
719194 |
%py2_install
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if %{with python3}
|
|
|
719194 |
%py3_install
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%check
|
|
|
719194 |
%if %{with python2}
|
|
|
719194 |
%{__python2} setup.py test
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if %{with python3}
|
|
|
719194 |
%{__python3} setup.py test
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if %{with python2}
|
|
|
719194 |
%files -n python2-%{pypi_name}
|
|
|
719194 |
%license LICENSE.rst
|
|
|
719194 |
%doc README.rst
|
|
|
719194 |
%{python2_sitelib}/%{pypi_name}
|
|
|
719194 |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%if %{with python3}
|
|
|
719194 |
%files -n python3-%{pypi_name}
|
|
|
719194 |
%license LICENSE.rst
|
|
|
719194 |
%doc README.rst
|
|
|
719194 |
%{python3_sitelib}/%{pypi_name}
|
|
|
719194 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
|
719194 |
%endif
|
|
|
719194 |
|
|
|
719194 |
%changelog
|
|
|
719194 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-8
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-7
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.8-6
|
|
|
719194 |
- Rebuilt for Python 3.9
|
|
|
719194 |
|
|
|
719194 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-5
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.8-4
|
|
|
719194 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
719194 |
|
|
|
719194 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.8-3
|
|
|
719194 |
- Rebuilt for Python 3.8
|
|
|
719194 |
|
|
|
719194 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-2
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Mon Mar 11 2019 Eli Young <elyscape@gmail.com> - 1.1.8-1
|
|
|
719194 |
- Update to 1.1.8
|
|
|
719194 |
|
|
|
719194 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-15
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-14
|
|
|
719194 |
- Subpackage python2-pytimeparse has been removed
|
|
|
719194 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
719194 |
|
|
|
719194 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-13
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-12
|
|
|
719194 |
- Rebuilt for Python 3.7
|
|
|
719194 |
|
|
|
719194 |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.5-11
|
|
|
719194 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
719194 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
719194 |
|
|
|
719194 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-10
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-9
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-8
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-7
|
|
|
719194 |
- Rebuild for Python 3.6
|
|
|
719194 |
|
|
|
719194 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-6
|
|
|
719194 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
719194 |
|
|
|
719194 |
* Fri Jun 17 2016 Pradeep Kilambi <pkilambi@redhat.com> - 1.1.5-5
|
|
|
719194 |
- Add support so we build both py2 and py3
|
|
|
719194 |
|
|
|
719194 |
* Fri Apr 08 2016 Dominika Krejci <dkrejci@redhat.com> - 1.1.5-4
|
|
|
719194 |
- Remove unnecessary shebang lines
|
|
|
719194 |
|
|
|
719194 |
* Mon Feb 08 2016 Matej Dujava <mdujava@redhat.com> - 1.1.5-3
|
|
|
719194 |
- Add python3
|
|
|
719194 |
|
|
|
719194 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Tue Aug 04 2015 Pradeep Kilambi <pkilambi@redhat.com> - 1.1.5-1
|
|
|
719194 |
- new version build
|
|
|
719194 |
|
|
|
719194 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
719194 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
719194 |
|
|
|
719194 |
* Tue May 05 2015 Pradeep Kilambi <pkilambi@redhat.com> 1.1.4
|
|
|
719194 |
- initial package release
|
|
|
719194 |
|