Sergio Pascual a5a98b
%global srcname patsy
Sergio Pascual a5a98b
%global summary Describing statistical models in Python using symbolic formulas
Sergio Pascual 1f0362
Sergio Pascual a5a98b
%global common_description                                             \
Sergio Pascual a5a98b
A Python package for describing statistical models and for building    \
Sergio Pascual a5a98b
design matrices. It is closely inspired by and compatible with         \
Sergio Pascual a5a98b
the 'formula' mini-language used in R and S.
Sergio Pascual 1f0362
Sergio Pascual a5a98b
Name: python-%{srcname}
df37e6
Version: 0.5.1
025328
Release: 9%{?dist}
Sergio Pascual a5a98b
Summary: %{summary}
Sergio Pascual 1f0362
# All code is under BSD except patsy.compat that is under Python
Sergio Pascual 1f0362
# See LICENSE.txt for details
Sergio Pascual 1f0362
License: BSD and Python
Sergio Pascual 1f0362
Sergio Pascual 1f0362
URL: https://github.com/pydata/patsy
d8b9d1
Source0: https://pypi.io/packages/source/p/patsy/patsy-%{version}.tar.gz
df37e6
Patch0: patsy-intersphinx.patch
df37e6
Patch1: patsy-error-doc.patch
db2f03
# https://github.com/pydata/patsy/issues/143
db2f03
Patch2: patsy-print-doc.patch
31bd3a
Patch3: patsy-python39.patch
Sergio Pascual 1f0362
Sergio Pascual 1f0362
BuildArch: noarch
34aa26
BuildRequires: python3-devel
Sergio Pascual a5a98b
Sergio Pascual a5a98b
%description
Sergio Pascual a5a98b
%{common_description}
Sergio Pascual a5a98b
Sergio Pascual a5a98b
%package -n python3-%{srcname}
Sergio Pascual a5a98b
Summary: %{summary}
Sergio Pascual a5a98b
BuildRequires: python3-nose
Sergio Pascual a5a98b
BuildRequires: python3-six
Sergio Pascual a5a98b
BuildRequires: python3-numpy
Sergio Pascual 1f0362
# For the docs
Sergio Pascual 20f162
BuildRequires: python3-sphinx
Sergio Pascual 20f162
BuildRequires: python3-ipython-sphinx
4e2cb8
BuildRequires: python3-pandas
df37e6
BuildRequires: python3-docs
df37e6
BuildRequires: python3-numpy-doc
2d24c1
BuildRequires: texlive-latex
2d24c1
BuildRequires: texlive-ucs texlive-amscls
Sergio Pascual a5a98b
# This should be required by python3-ipython-sphinx
Sergio Pascual a5a98b
BuildRequires: python3-matplotlib 
Sergio Pascual a5a98b
# For splines
Sergio Pascual a5a98b
BuildRequires: python3-scipy  
Sergio Pascual 20f162
Sergio Pascual 13e04b
Requires: python3-six
Sergio Pascual a5a98b
Requires: python3-numpy
Sergio Pascual a5a98b
# For splines
Sergio Pascual a5a98b
Recommends: python3-scipy
Sergio Pascual a5a98b
Sergio Pascual a5a98b
%{?python_provide:%python_provide python3-%{srcname}}
Sergio Pascual 1f0362
Sergio Pascual a5a98b
%description -n python3-%{srcname}
Sergio Pascual a5a98b
%{common_description}
Sergio Pascual 1f0362
Sergio Pascual a5a98b
%package -n python3-%{srcname}-doc
Sergio Pascual a5a98b
Summary: Documentation for python3-%{srcname}, includes full API docs
Sergio Pascual 1f0362
BuildArch: noarch
Sergio Pascual 1f0362
Sergio Pascual a5a98b
%description -n python3-%{srcname}-doc
Sergio Pascual a5a98b
This package contains the full API documentation for python3-%{srcname}.
Sergio Pascual 1f0362
Sergio Pascual 1f0362
Sergio Pascual 1f0362
%prep
4e2cb8
%autosetup -n %{srcname}-%{version} -p1
Sergio Pascual 1f0362
Sergio Pascual 1f0362
%build
Sergio Pascual a5a98b
%py3_build
4e2cb8
4e2cb8
pushd doc
4e2cb8
  export PYTHONPATH=`readlink -f ../build/lib`
4e2cb8
  make html SPHINXBUILD=sphinx-build-%{python3_version}
4e2cb8
popd
Sergio Pascual 1f0362
Sergio Pascual 1f0362
%install
Sergio Pascual a5a98b
%py3_install
Sergio Pascual 1f0362
Sergio Pascual 1f0362
%check
Sergio Pascual 1f0362
pushd %{buildroot}/%{python3_sitelib}
Sergio Pascual 1f0362
nosetests-%{python3_version} patsy
Sergio Pascual 1f0362
popd
Sergio Pascual 1f0362
Sergio Pascual a5a98b
%files -n python3-%{srcname}
Sergio Pascual 25f03f
%doc README.rst TODO
Sergio Pascual 25f03f
%license LICENSE.txt
Sergio Pascual 1f0362
%{python3_sitelib}/patsy*
Sergio Pascual 1f0362
Sergio Pascual a5a98b
%files -n python3-%{srcname}-doc
4e2cb8
%doc README.rst TODO doc/_build/html
Sergio Pascual 25f03f
%license LICENSE.txt
Sergio Pascual 1f0362
Sergio Pascual 1f0362
%changelog
025328
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-9
025328
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
025328
31bd3a
* Sun Jan 26 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-8
31bd3a
- Patch a python39 problem (bz #1794275)
31bd3a
d6ce97
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.5.1-7
d6ce97
- Rebuilt for Python 3.8.0rc1 (#1748018)
d6ce97
d43106
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.5.1-6
d43106
- Rebuilt for Python 3.8
d43106
dac4e5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-5
dac4e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dac4e5
db2f03
* Wed Feb 13 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-4
db2f03
- Patch a "print" command in docs
db2f03
c9467e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
c9467e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c9467e
2d24c1
* Tue Nov 20 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-2
2d24c1
- Add latex for equations in docs
2d24c1
df37e6
* Mon Nov 12 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-1
df37e6
- New upstream source (0.5.1)
df37e6
- Load intersphinx object for python and numpy
df37e6
4e2cb8
* Sat Oct 06 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-5
4e2cb8
- Build docs with python3
4e2cb8
34aa26
* Fri Oct 05 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-4
34aa26
- Drop python2 subpackage
34aa26
41ed83
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
41ed83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
41ed83
1ec783
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.5.0-2
1ec783
- Rebuilt for Python 3.7
1ec783
d8b9d1
* Mon Jun 04 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-1
d8b9d1
- New upstream source (0.5.0)
d8b9d1
47500f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-9
47500f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
47500f
bf4258
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.1-8
bf4258
- Update Python 2 dependency declarations to new packaging standards
bf4258
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bf4258
eb0748
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7
eb0748
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eb0748
4e761a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-6
4e761a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4e761a
3465a0
* Mon Dec 19 2016 Miro Hron훾ok <mhroncok@redhat.com> - 0.4.1-5
3465a0
- Rebuild for Python 3.6
3465a0
Sergio Pascual a5a98b
* Mon Oct 17 2016 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.1-4
Sergio Pascual a5a98b
- Refactored spec
Sergio Pascual a5a98b
- Remove pandas dep, it's circular
Sergio Pascual a5a98b
- Recommend scipy, not require it
Sergio Pascual a5a98b
6990ea
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
6990ea
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6990ea
cb443d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
cb443d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cb443d
Sergio Pascual 2d571e
* Tue Nov 17 2015 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.1-1
Sergio Pascual 2d571e
- New upstream source (0.4.1)
Sergio Pascual 2d571e
5b8313
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
5b8313
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5b8313
Sergio Pascual 25f03f
* Wed Sep 02 2015 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.0-1
Sergio Pascual 25f03f
- New upstream source (0.4.0)
Sergio Pascual 25f03f
f64402
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
f64402
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f64402
Sergio Pascual 13e04b
* Mon Jul 21 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.3.0-1
Sergio Pascual 13e04b
- New upstream source (0.3.0)
Sergio Pascual 13e04b
- Removed patches
Sergio Pascual 13e04b
Sergio Pascual 20f162
* Tue Jun 17 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-6
Sergio Pascual 20f162
- Doc generation enabled, patch from upstream
Sergio Pascual 20f162
05899f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-5
05899f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
05899f
Sergio Pascual cf04bf
* Mon Jun 02 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-4
Sergio Pascual cf04bf
- Doc generation broken due to new ipython, disabled for the moment
Sergio Pascual cf04bf
Sergio Pascual 407839
* Fri Apr 04 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-3
Sergio Pascual 407839
- Enable pandas support in python3-patsy
Sergio Pascual 407839
Sergio Pascual 1f0362
* Sat Jan 11 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-2
Sergio Pascual 1f0362
- Split docs in a subpackage
Sergio Pascual 1f0362
- License is BSD and Python
Sergio Pascual 1f0362
Sergio Pascual 1f0362
* Fri Dec 13 2013 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-1
Sergio Pascual 1f0362
- Initial specfile
Sergio Pascual 1f0362