Auto sync2gitlab import of python-iso8601-0.1.11-12.el8.src.rpm

This commit is contained in:
CentOS Sources 2022-08-20 12:13:40 +00:00
parent 8b3056be2f
commit 27c51e809c

View File

@ -6,9 +6,11 @@
This module parses the most common forms of ISO 8601 date strings \
(e.g. 2007-01-14T20:34:22+00:00) into datetime objects.
%bcond_without tests
Name: python-%{srcname}
Version: 0.1.11
Release: 9%{?dist}
Release: 12%{?dist}
Summary: %{sum}
License: MIT
@ -17,6 +19,7 @@ Source0: http://pypi.python.org/packages/source/i/%{srcname}/%{srcname}-%
BuildArch: noarch
BuildRequires: python-srpm-macros
BuildRequires: python3-pytest
%description %{pkgdesc}
@ -27,7 +30,7 @@ Summary: %{sum}
Provides: python-%{srcname} = %{version}-%{release}
Obsoletes: python-%{srcname} < 0.1.10-6
BuildRequires: python2-devel python-setuptools
BuildRequires: python2-devel python2-setuptools
%description -n python2-%{srcname} %{pkgdesc}
@ -69,6 +72,11 @@ export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
%py3_other_install
%endif
%if %{with tests}
%check
%pytest
%endif
%files -n python2-%{srcname}
%doc LICENSE README.rst
%{python2_sitelib}/*
@ -84,6 +92,18 @@ export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
%endif
%changelog
* Fri Aug 19 2022 Tomas Orsava <torsava@redhat.com> - 0.1.11-12
- Modify test for RHEL 8
- Related: rhbz#2108089
* Thu Aug 18 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.1.11-11
- Enable tests
- Related: rhbz#2108089
* Wed Aug 10 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.1.11-10
- Fix BuildRequire in spec file
- Resolves: rhbz#2108089
* Mon Jun 25 2018 Petr Viktorin <pviktori@redhat.com> - 0.1.11-9
- Allow Python 2 for build
see https://hurl.corp.redhat.com/rhel8-py2