From 34aa26663a6e86acab79c0537fca9b4ad8308195 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Oct 05 2018 16:10:16 +0000 Subject: Drop python2 subpackage --- diff --git a/python-patsy.spec b/python-patsy.spec index 78c4f7f..05f7628 100644 --- a/python-patsy.spec +++ b/python-patsy.spec @@ -8,7 +8,7 @@ the 'formula' mini-language used in R and S. Name: python-%{srcname} Version: 0.5.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{summary} # All code is under BSD except patsy.compat that is under Python # See LICENSE.txt for details @@ -18,43 +18,11 @@ URL: https://github.com/pydata/patsy Source0: https://pypi.io/packages/source/p/patsy/patsy-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel python3-devel +BuildRequires: python3-devel %description %{common_description} -%package -n python2-%{srcname} -Summary: %{summary} - -BuildRequires: python2-nose -BuildRequires: python2-six -BuildRequires: python2-numpy -# For the docs -BuildRequires: python2-sphinx -BuildRequires: python2-ipython-sphinx -# This should be required by python-ipython-sphinx -BuildRequires: python2-matplotlib -# For splines -BuildRequires: python2-scipy - -Requires: python2-six -Requires: python2-numpy -# For splines -Recommends: python2-scipy - -%{?python_provide:%python_provide python2-%{srcname}} - -%description -n python2-%{srcname} -%{common_description} - -%package -n python2-%{srcname}-doc -Summary: Documentation for python2-%{srcname}, includes full API docs -BuildArch: noarch - -%description -n python2-%{srcname}-doc -This package contains the full API documentation for python2-%{srcname}. - - %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-nose @@ -90,36 +58,19 @@ This package contains the full API documentation for python3-%{srcname}. %autosetup -n %{srcname}-%{version} %build -%py2_build -%{__python2} setup.py build_sphinx -rm -f build/sphinx/html/.buildinfo %py3_build # Creating the docs with python3-sphinx doesn't work -#%{__python3} setup.py build_sphinx +%{__python3} setup.py build_sphinx %install -%py2_install %py3_install %check -pushd %{buildroot}/%{python2_sitelib} -nosetests-%{python2_version} patsy -popd - pushd %{buildroot}/%{python3_sitelib} nosetests-%{python3_version} patsy popd -%files -n python2-%{srcname} -%license LICENSE.txt -%doc README.rst TODO -%{python2_sitelib}/patsy* - -%files -n python2-%{srcname}-doc -%license LICENSE.txt -%doc README.rst TODO build/sphinx/html - %files -n python3-%{srcname} %doc README.rst TODO %license LICENSE.txt @@ -130,6 +81,9 @@ popd %license LICENSE.txt %changelog +* Fri Oct 05 2018 Sergio Pascual - 0.5.0-4 +- Drop python2 subpackage + * Sat Jul 14 2018 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild