From 80cbf7782c37faac6584627cd17d43212adb8325 Mon Sep 17 00:00:00 2001
From: Dan Callaghan <dcallagh(a)redhat.com>
Date: Mon, 1 Aug 2016 10:54:33 +1000
Subject: added Python 3 subpackage, updated to latest Python guidelines
---
python-fastimport.spec | 51 ++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 41 insertions(+), 10 deletions(-)
diff --git a/python-fastimport.spec b/python-fastimport.spec
index a2e9a55..007fa62 100644
--- a/python-fastimport.spec
+++ b/python-fastimport.spec
@@ -3,39 +3,70 @@
Name: python-%{module_name}
Version: 0.9.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Python parser for fastimport (VCS interchange format)
-Group: Development/Languages
License: GPLv2+
URL:
https://launchpad.net/python-fastimport
Source0:
https://files.pythonhosted.org/packages/source/f/%{module_name}/%{module_...
BuildArch: noarch
-BuildRequires: python-setuptools
-BuildRequires: python-testtools
-BuildRequires: python-nose
%description
This is the Python parser that was originally developed for bzr-fastimport, but
extracted so it can be used by other projects.
+%package -n python2-%{module_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python2-%{module_name}}
+BuildRequires: python2-devel
+BuildRequires: python2-setuptools
+BuildRequires: python2-testtools
+BuildRequires: python2-nose
+
+%description -n python2-%{module_name}
+This is the Python parser that was originally developed for bzr-fastimport, but
+extracted so it can be used by other projects.
+
+%package -n python3-%{module_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python3-%{module_name}}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-testtools
+BuildRequires: python3-nose
+
+%description -n python3-%{module_name}
+This is the Python parser that was originally developed for bzr-fastimport, but
+extracted so it can be used by other projects.
+
%prep
%setup -q -n %{module_name}-%{version}
%build
-%{__python} setup.py build
+%{py2_build}
+%{py3_build}
%install
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{py2_install}
+%{py3_install}
%check
-PYTHONPATH=$RPM_BUILD_ROOT%{python_sitelib} nosetests %{module_name}
+PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitelib} nosetests-2.7 %{module_name}
+PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} nosetests-3.5 %{module_name}
+
+%files -n python2-%{module_name}
+%license COPYING
+%doc AUTHORS NEWS README.md
+%{python2_sitelib}/%{module_name}*
-%files
+%files -n python3-%{module_name}
%license COPYING
%doc AUTHORS NEWS README.md
-%{python_sitelib}/%{module_name}*
+%{python3_sitelib}/%{module_name}*
%changelog
+* Mon Aug 01 2016 Dan Callaghan <dcallagh(a)redhat.com> - 0.9.6-2
+- added Python 3 subpackage, updated to latest Python guidelines
+
* Mon Aug 01 2016 Dan Callaghan <dcallagh(a)redhat.com> - 0.9.6-1
- upstream release 0.9.6 (RHBZ#1361922)
https://github.com/jelmer/python-fastimport/blob/fastimport-0.9.6/NEWS
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/python-fastimport.git/commit/?h=f25&am...