Subpackage python2-pyrfc3339 has been removed

This commit is contained in:
Miro Hrončok 2019-01-09 13:11:38 +01:00
commit 3445b5bc6b

View file

@ -1,14 +1,9 @@
%global srcname pyRFC3339
%if 0%{?fedora}
%bcond_without python3
%else
%bcond_with python3
%endif
Name: python-pyrfc3339
Version: 1.0
Release: 11%{?dist}
Release: 12%{?dist}
Summary: Generate and parse RFC 3339 timestamps
License: MIT
@ -16,31 +11,16 @@ URL: https://pypi.python.org/pypi/pyRFC3339
Source0: https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
# --- unit tests ---
BuildRequires: python2-nose
BuildRequires: python2-pytz
%if %{with python3}
BuildRequires: python3-devel
# --- unit tests ---
BuildRequires: python3-nose
BuildRequires: python3-pytz
%endif
%description
This package contains a python library to parse and generate
RFC 3339-compliant timestamps using Python datetime.datetime objects.
%package -n python2-pyrfc3339
Summary: %{summary}
%{?python_provide:%python_provide python2-pyrfc3339}
%description -n python2-pyrfc3339
This package contains a Python 2 library to parse and generate
RFC 3339-compliant timestamps using Python datetime.datetime objects.
%if %{with python3}
%package -n python3-pyrfc3339
Summary: Generate and parse RFC 3339 timestamps
%{?python_provide:%python_provide python3-pyrfc3339}
@ -48,7 +28,6 @@ Summary: Generate and parse RFC 3339 timestamps
%description -n python3-pyrfc3339
This package contains a Python 3 library to parse and generate
RFC 3339-compliant timestamps using Python datetime.datetime objects.
%endif
@ -56,40 +35,27 @@ RFC 3339-compliant timestamps using Python datetime.datetime objects.
%autosetup -n %{srcname}-%{version}
%build
%py2_build
%if %{with python3}
%py3_build
%endif
%install
%py2_install
%if %{with python3}
%py3_install
%endif
%check
%{__python2} setup.py test
%if %{with python3}
%{__python3} setup.py test
%endif
%files -n python2-pyrfc3339
%doc README.rst
%license LICENSE.txt
%{python2_sitelib}/pyrfc3339
%{python2_sitelib}/%{srcname}-%{version}-*.egg-info
%if %{with python3}
%files -n python3-pyrfc3339
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/pyrfc3339
%{python3_sitelib}/%{srcname}-%{version}-*.egg-info
%endif
%changelog
* Wed Jan 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0-12
- Subpackage python2-pyrfc3339 has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild