Notification time stamped 2019-11-30 18:55:31 UTC
From b33887c31042ed83331e9c51268d9270d1c146c0 Mon Sep 17 00:00:00 2001
From: Javier Pena <jpena(a)redhat.com>
Date: Jun 20 2016 13:45:07 +0000
Subject: Updated to upstream version 0.3.1
- Added python3 subpackage
---
diff --git a/.gitignore b/.gitignore
index ff0332c..ce5dd90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/rfc3986-0.2.0.tar.gz
+/rfc3986-0.3.1.tar.gz
diff --git a/python-rfc3986.spec b/python-rfc3986.spec
index 213949d..360add7 100644
--- a/python-rfc3986.spec
+++ b/python-rfc3986.spec
@@ -1,9 +1,13 @@
# Created by pyp2rpm-1.1.0b
+%if 0%{?fedora}
+%global with_python3 1
+%endif
+
%global pypi_name rfc3986
Name: python-%{pypi_name}
-Version: 0.2.0
-Release: 3%{?dist}
+Version: 0.3.1
+Release: 1%{?dist}
Summary: Validating URI References per RFC 3986
License: ASL 2.0
@@ -11,7 +15,27 @@ URL:
https://pypi.python.org/pypi/rfc3986
Source0:
https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{ver...
BuildArch: noarch
+%package -n python2-%{pypi_name}
+Summary: Validating URI References per RFC 3986
+%{?python_provide:%python_provide python2-%{pypi_name}}
+
BuildRequires: python2-devel
+BuildRequires: python-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}
+Summary: Validating URI References per RFC 3986
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+%description -n python3-%{pypi_name}
+A Python implementation of RFC 3986 including validation and authority parsing.
+%endif
%description
@@ -23,21 +47,38 @@ A Python implementation of RFC 3986 including validation and authority
parsing.
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
-
%build
-%{__python2} setup.py build
+%py2_build
+%if 0%{?with_python3}
+%py3_build
+%endif
%install
-%{__python2} setup.py install --skip-build --root %{buildroot}
+%py2_install
+%if 0%{?with_python3}
+%py3_install
+%endif
-%files
+%files -n python2-%{pypi_name}
%doc README.rst LICENSE
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README.rst LICENSE
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%endif
+
%changelog
+* Mon Jun 20 2016 Javier Peña <jpena(a)redhat.com> - 0.3.1-4
+- Updated to upstream version 0.3.1
+- Added python3 subpackage
+
* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.2.0-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
diff --git a/sources b/sources
index 550a24e..4d6884a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a80b964a92c3a40e57ec95f7c0d68fa9 rfc3986-0.2.0.tar.gz
+4a0cc842d0e1b061f1b5202917095340 rfc3986-0.3.1.tar.gz
https://src.fedoraproject.org/rpms/python-rfc3986/c/b33887c31042ed83331e9...