Notification time stamped 2019-11-30 18:55:31 UTC
From 8fee36067d265c332d71623dd9c06ff6944f6f37 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion(a)nwra.com>
Date: Apr 23 2019 01:55:29 +0000
Subject: Build for python3/python3_other in EPEL
---
diff --git a/python-rfc3986.spec b/python-rfc3986.spec
index fef7c95..8629a0f 100644
--- a/python-rfc3986.spec
+++ b/python-rfc3986.spec
@@ -1,13 +1,10 @@
# Created by pyp2rpm-1.1.0b
-%if 0%{?fedora}
-%global with_python3 1
-%endif
%global pypi_name rfc3986
Name: python-%{pypi_name}
Version: 1.2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Validating URI References per RFC 3986
License: ASL 2.0
@@ -25,15 +22,25 @@ BuildRequires: python2-setuptools
%description -n python2-%{pypi_name}
A Python implementation of RFC 3986 including validation and authority parsing.
-%if 0%{?with_python3}
-%package -n python3-%{pypi_name}
+%package -n python%{python3_pkgversion}-%{pypi_name}
+Summary: Validating URI References per RFC 3986
+%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
+
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+
+%description -n python%{python3_pkgversion}-%{pypi_name}
+A Python implementation of RFC 3986 including validation and authority parsing.
+
+%if 0%{?python3_other_pkgversion}
+%package -n python%{python3_other_pkgversion}-%{pypi_name}
Summary: Validating URI References per RFC 3986
-%{?python_provide:%python_provide python3-%{pypi_name}}
+%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}}
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
+BuildRequires: python%{python3_other_pkgversion}-devel
+BuildRequires: python%{python3_other_pkgversion}-setuptools
-%description -n python3-%{pypi_name}
+%description -n python%{python3_other_pkgversion}-%{pypi_name}
A Python implementation of RFC 3986 including validation and authority parsing.
%endif
@@ -49,16 +56,16 @@ rm -rf %{pypi_name}.egg-info
%build
%py2_build
-
-%if 0%{?with_python3}
%py3_build
+%if 0%{?python3_other_pkgversion}
+%py3_other_build
%endif
%install
%py2_install
-
-%if 0%{?with_python3}
%py3_install
+%if 0%{?python3_other_pkgversion}
+%py3_other_install
%endif
%files -n python2-%{pypi_name}
@@ -66,15 +73,22 @@ rm -rf %{pypi_name}.egg-info
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
-%if 0%{?with_python3}
-%files -n python3-%{pypi_name}
+%files -n python%{python3_pkgversion}-%{pypi_name}
%doc README.rst LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%if 0%{?python3_other_pkgversion}
+%files -n python%{python3_other_pkgversion}-%{pypi_name}
+%doc README.rst LICENSE
+%{python3_other_sitelib}/%{pypi_name}
+%{python3_other_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%endif
%changelog
+* Mon Apr 22 2019 Orion Poplawski <orion(a)nwra.com> - 1.2.0-2
+- Build for python3/python3_other in EPEL
+
* Wed Jan 02 2019 Yatin Karel <ykarel(a)redhat.com> - 1.2.0-1
- Bump to 1.2.0
https://src.fedoraproject.org/rpms/python-rfc3986/c/8fee36067d265c332d716...