Sergio Pascual a5a98b8
%global srcname patsy
Sergio Pascual a5a98b8
%global summary Describing statistical models in Python using symbolic formulas
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%global common_description                                             \
Sergio Pascual a5a98b8
A Python package for describing statistical models and for building    \
Sergio Pascual a5a98b8
design matrices. It is closely inspired by and compatible with         \
Sergio Pascual a5a98b8
the 'formula' mini-language used in R and S.
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
Name: python-%{srcname}
df37e6a
Version: 0.5.1
3171e4c
Release: 12%{?dist}
Sergio Pascual a5a98b8
Summary: %{summary}
Sergio Pascual 1f0362a
# All code is under BSD except patsy.compat that is under Python
Sergio Pascual 1f0362a
# See LICENSE.txt for details
Sergio Pascual 1f0362a
License: BSD and Python
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
URL: https://github.com/pydata/patsy
9f40941
Source0:  %{pypi_source} 
df37e6a
Patch0: patsy-intersphinx.patch
df37e6a
Patch1: patsy-error-doc.patch
db2f03a
# https://github.com/pydata/patsy/issues/143
db2f03a
Patch2: patsy-print-doc.patch
31bd3ad
Patch3: patsy-python39.patch
9f40941
# The contour routine emits a warning with numpy 1.9
9f40941
Patch4: patsy-warn-doc.patch
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
BuildArch: noarch
34aa266
BuildRequires: python3-devel
Sergio Pascual a5a98b8
Sergio Pascual a5a98b8
%description
Sergio Pascual a5a98b8
%{common_description}
Sergio Pascual a5a98b8
Sergio Pascual a5a98b8
%package -n python3-%{srcname}
Sergio Pascual a5a98b8
Summary: %{summary}
Sergio Pascual a5a98b8
BuildRequires: python3-nose
Sergio Pascual a5a98b8
BuildRequires: python3-six
Sergio Pascual a5a98b8
BuildRequires: python3-numpy
Sergio Pascual 1f0362a
# For the docs
Sergio Pascual 20f1624
BuildRequires: python3-sphinx
Sergio Pascual 20f1624
BuildRequires: python3-ipython-sphinx
4e2cb8f
BuildRequires: python3-pandas
df37e6a
BuildRequires: python3-docs
df37e6a
BuildRequires: python3-numpy-doc
2d24c1a
BuildRequires: texlive-latex
2d24c1a
BuildRequires: texlive-ucs texlive-amscls
Sergio Pascual a5a98b8
# This should be required by python3-ipython-sphinx
Sergio Pascual a5a98b8
BuildRequires: python3-matplotlib 
Sergio Pascual a5a98b8
# For splines
Sergio Pascual a5a98b8
BuildRequires: python3-scipy  
Sergio Pascual 20f1624
Sergio Pascual 13e04ba
Requires: python3-six
Sergio Pascual a5a98b8
Requires: python3-numpy
Sergio Pascual a5a98b8
# For splines
Sergio Pascual a5a98b8
Recommends: python3-scipy
Sergio Pascual a5a98b8
Sergio Pascual a5a98b8
%{?python_provide:%python_provide python3-%{srcname}}
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%description -n python3-%{srcname}
Sergio Pascual a5a98b8
%{common_description}
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%package -n python3-%{srcname}-doc
Sergio Pascual a5a98b8
Summary: Documentation for python3-%{srcname}, includes full API docs
Sergio Pascual 1f0362a
BuildArch: noarch
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%description -n python3-%{srcname}-doc
Sergio Pascual a5a98b8
This package contains the full API documentation for python3-%{srcname}.
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%prep
4e2cb8f
%autosetup -n %{srcname}-%{version} -p1
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%build
Sergio Pascual a5a98b8
%py3_build
4e2cb8f
4e2cb8f
pushd doc
4e2cb8f
  export PYTHONPATH=`readlink -f ../build/lib`
4e2cb8f
  make html SPHINXBUILD=sphinx-build-%{python3_version}
4e2cb8f
popd
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%install
Sergio Pascual a5a98b8
%py3_install
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%check
Sergio Pascual 1f0362a
pushd %{buildroot}/%{python3_sitelib}
Sergio Pascual 1f0362a
nosetests-%{python3_version} patsy
Sergio Pascual 1f0362a
popd
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%files -n python3-%{srcname}
Sergio Pascual 25f03f2
%doc README.rst TODO
Sergio Pascual 25f03f2
%license LICENSE.txt
Sergio Pascual 1f0362a
%{python3_sitelib}/patsy*
Sergio Pascual 1f0362a
Sergio Pascual a5a98b8
%files -n python3-%{srcname}-doc
4e2cb8f
%doc README.rst TODO doc/_build/html
Sergio Pascual 25f03f2
%license LICENSE.txt
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
%changelog
3171e4c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-12
3171e4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3171e4c
9f40941
* Sun Jun 28 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-11
9f40941
- Patch a numpy 1.9 problem (bz #1838488)
9f40941
6c2ecb7
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-10
6c2ecb7
- Rebuilt for Python 3.9
6c2ecb7
0253284
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-9
0253284
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0253284
31bd3ad
* Sun Jan 26 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-8
31bd3ad
- Patch a python39 problem (bz #1794275)
31bd3ad
d6ce97f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-7
d6ce97f
- Rebuilt for Python 3.8.0rc1 (#1748018)
d6ce97f
d431066
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-6
d431066
- Rebuilt for Python 3.8
d431066
dac4e53
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-5
dac4e53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dac4e53
db2f03a
* Wed Feb 13 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-4
db2f03a
- Patch a "print" command in docs
db2f03a
c9467ed
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-3
c9467ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c9467ed
2d24c1a
* Tue Nov 20 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-2
2d24c1a
- Add latex for equations in docs
2d24c1a
df37e6a
* Mon Nov 12 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.1-1
df37e6a
- New upstream source (0.5.1)
df37e6a
- Load intersphinx object for python and numpy
df37e6a
4e2cb8f
* Sat Oct 06 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-5
4e2cb8f
- Build docs with python3
4e2cb8f
34aa266
* Fri Oct 05 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-4
34aa266
- Drop python2 subpackage
34aa266
41ed837
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-3
41ed837
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
41ed837
1ec7839
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-2
1ec7839
- Rebuilt for Python 3.7
1ec7839
d8b9d14
* Mon Jun 04 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.5.0-1
d8b9d14
- New upstream source (0.5.0)
d8b9d14
47500fd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-9
47500fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
47500fd
bf42587
* Fri Jan 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.1-8
bf42587
- Update Python 2 dependency declarations to new packaging standards
bf42587
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bf42587
eb07482
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7
eb07482
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eb07482
4e761af
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-6
4e761af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4e761af
3465a06
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-5
3465a06
- Rebuild for Python 3.6
3465a06
Sergio Pascual a5a98b8
* Mon Oct 17 2016 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.1-4
Sergio Pascual a5a98b8
- Refactored spec
Sergio Pascual a5a98b8
- Remove pandas dep, it's circular
Sergio Pascual a5a98b8
- Recommend scipy, not require it
Sergio Pascual a5a98b8
6990ea3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-3
6990ea3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6990ea3
cb443de
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
cb443de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cb443de
Sergio Pascual 2d571e8
* Tue Nov 17 2015 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.1-1
Sergio Pascual 2d571e8
- New upstream source (0.4.1)
Sergio Pascual 2d571e8
5b83135
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
5b83135
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5b83135
Sergio Pascual 25f03f2
* Wed Sep 02 2015 Sergio Pascual <sergio.pasra@gmail.com> - 0.4.0-1
Sergio Pascual 25f03f2
- New upstream source (0.4.0)
Sergio Pascual 25f03f2
f644029
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
f644029
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f644029
Sergio Pascual 13e04ba
* Mon Jul 21 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.3.0-1
Sergio Pascual 13e04ba
- New upstream source (0.3.0)
Sergio Pascual 13e04ba
- Removed patches
Sergio Pascual 13e04ba
Sergio Pascual 20f1624
* Tue Jun 17 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-6
Sergio Pascual 20f1624
- Doc generation enabled, patch from upstream
Sergio Pascual 20f1624
05899fe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-5
05899fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
05899fe
Sergio Pascual cf04bf5
* Mon Jun 02 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-4
Sergio Pascual cf04bf5
- Doc generation broken due to new ipython, disabled for the moment
Sergio Pascual cf04bf5
Sergio Pascual 407839d
* Fri Apr 04 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-3
Sergio Pascual 407839d
- Enable pandas support in python3-patsy
Sergio Pascual 407839d
Sergio Pascual 1f0362a
* Sat Jan 11 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-2
Sergio Pascual 1f0362a
- Split docs in a subpackage
Sergio Pascual 1f0362a
- License is BSD and Python
Sergio Pascual 1f0362a
Sergio Pascual 1f0362a
* Fri Dec 13 2013 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-1
Sergio Pascual 1f0362a
- Initial specfile
Sergio Pascual 1f0362a