%global srcname patsy %global summary Describing statistical models in Python using symbolic formulas %global common_description \ A Python package for describing statistical models and for building \ design matrices. It is closely inspired by and compatible with \ the 'formula' mini-language used in R and S. Name: python-%{srcname} Version: 0.4.1 Release: 6%{?dist} Summary: %{summary} # All code is under BSD except patsy.compat that is under Python # See LICENSE.txt for details License: BSD and Python URL: https://github.com/pydata/patsy Source0: https://pypi.python.org/packages/source/p/patsy/patsy-%{version}.zip BuildArch: noarch BuildRequires: python2-devel 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: python-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 BuildRequires: python3-six BuildRequires: python3-numpy # For the docs BuildRequires: python3-sphinx BuildRequires: python3-ipython-sphinx # This should be required by python3-ipython-sphinx BuildRequires: python3-matplotlib # For splines BuildRequires: python3-scipy Requires: python3-six Requires: python3-numpy # For splines Recommends: python3-scipy %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{common_description} %package -n python3-%{srcname}-doc Summary: Documentation for python3-%{srcname}, includes full API docs BuildArch: noarch %description -n python3-%{srcname}-doc This package contains the full API documentation for python3-%{srcname}. %prep %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 %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 %{python3_sitelib}/patsy* %files -n python3-%{srcname}-doc %doc README.rst TODO build/sphinx/html %license LICENSE.txt %changelog * Sat Feb 11 2017 Fedora Release Engineering - 0.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro HronĨok - 0.4.1-5 - Rebuild for Python 3.6 * Mon Oct 17 2016 Sergio Pascual - 0.4.1-4 - Refactored spec - Remove pandas dep, it's circular - Recommend scipy, not require it * Tue Jul 19 2016 Fedora Release Engineering - 0.4.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 17 2015 Sergio Pascual - 0.4.1-1 - New upstream source (0.4.1) * Tue Nov 10 2015 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Sep 02 2015 Sergio Pascual - 0.4.0-1 - New upstream source (0.4.0) * Thu Jun 18 2015 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jul 21 2014 Sergio Pascual - 0.3.0-1 - New upstream source (0.3.0) - Removed patches * Tue Jun 17 2014 Sergio Pascual - 0.2.1-6 - Doc generation enabled, patch from upstream * Sat Jun 07 2014 Fedora Release Engineering - 0.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Jun 02 2014 Sergio Pascual - 0.2.1-4 - Doc generation broken due to new ipython, disabled for the moment * Fri Apr 04 2014 Sergio Pascual - 0.2.1-3 - Enable pandas support in python3-patsy * Sat Jan 11 2014 Sergio Pascual - 0.2.1-2 - Split docs in a subpackage - License is BSD and Python * Fri Dec 13 2013 Sergio Pascual - 0.2.1-1 - Initial specfile