|
Sergio Pascual |
1f0362a |
%global upname patsy
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%global with_python3 1
|
|
Sergio Pascual |
1f0362a |
Name: python-%{upname}
|
|
Sergio Pascual |
25f03f2 |
Version: 0.4.0
|
|
|
5b83135 |
Release: 2%{?dist}
|
|
Sergio Pascual |
1f0362a |
Summary: Describing statistical models in Python using symbolic formulas
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
Group: Development/Languages
|
|
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
|
|
Sergio Pascual |
13e04ba |
Source0: https://pypi.python.org/packages/source/p/patsy/patsy-%{version}.zip
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
BuildArch: noarch
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
BuildRequires: python2-devel python-nose
|
|
Sergio Pascual |
13e04ba |
BuildRequires: python-six
|
|
Sergio Pascual |
1f0362a |
# For the docs
|
|
Sergio Pascual |
20f1624 |
BuildRequires: python-sphinx
|
|
Sergio Pascual |
20f1624 |
BuildRequires: python-ipython-sphinx
|
|
Sergio Pascual |
1f0362a |
BuildRequires: numpy
|
|
Sergio Pascual |
1f0362a |
# For splines
|
|
Sergio Pascual |
1f0362a |
BuildRequires: scipy
|
|
Sergio Pascual |
1f0362a |
BuildRequires: python-pandas
|
|
Sergio Pascual |
20f1624 |
|
|
Sergio Pascual |
1f0362a |
Requires: numpy scipy python-pandas
|
|
Sergio Pascual |
13e04ba |
Requires: python-six
|
|
Sergio Pascual |
25f03f2 |
# New python guidelines
|
|
Sergio Pascual |
25f03f2 |
Provides: python2-%{upname}
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%description
|
|
Sergio Pascual |
1f0362a |
A Python package for describing statistical models and for building design
|
|
Sergio Pascual |
1f0362a |
matrices. It is closely inspired by and compatible with the 'formula'
|
|
Sergio Pascual |
1f0362a |
mini-language used in R and S.
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%package doc
|
|
Sergio Pascual |
1f0362a |
Summary: Documentation for %{name}, includes full API docs
|
|
Sergio Pascual |
1f0362a |
BuildArch: noarch
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%description doc
|
|
Sergio Pascual |
1f0362a |
This package contains the full API documentation for %{name}.
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%if 0%{?with_python3}
|
|
Sergio Pascual |
1f0362a |
%package -n python3-%{upname}
|
|
Sergio Pascual |
1f0362a |
Summary: Describing statistical models in Python using symbolic formulas
|
|
Sergio Pascual |
20f1624 |
BuildRequires: python3-devel
|
|
Sergio Pascual |
13e04ba |
BuildRequires: python3-six
|
|
Sergio Pascual |
20f1624 |
BuildRequires: python3-numpy python3-scipy python3-pandas
|
|
Sergio Pascual |
20f1624 |
BuildRequires: python3-nose
|
|
Sergio Pascual |
20f1624 |
|
|
Sergio Pascual |
1f0362a |
# For the docs
|
|
Sergio Pascual |
20f1624 |
BuildRequires: python3-sphinx
|
|
Sergio Pascual |
20f1624 |
BuildRequires: python3-ipython-sphinx
|
|
Sergio Pascual |
20f1624 |
|
|
Sergio Pascual |
407839d |
Requires: python3-numpy python3-scipy python3-pandas
|
|
Sergio Pascual |
13e04ba |
Requires: python3-six
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%description -n python3-%{upname}
|
|
Sergio Pascual |
1f0362a |
A Python package for describing statistical models and for building design
|
|
Sergio Pascual |
1f0362a |
matrices. It is closely inspired by and compatible with the 'formula'
|
|
Sergio Pascual |
1f0362a |
mini-language used in R and S.
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%package -n python3-%{upname}-doc
|
|
Sergio Pascual |
1f0362a |
Summary: Documentation for %{name}, includes full API docs
|
|
Sergio Pascual |
1f0362a |
BuildArch: noarch
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%description -n python3-%{upname}-doc
|
|
Sergio Pascual |
1f0362a |
This package contains the full API documentation for %{name}.
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%endif # with_python3
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%prep
|
|
Sergio Pascual |
1f0362a |
%setup -q -n %{upname}-%{version}
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%if 0%{?with_python3}
|
|
Sergio Pascual |
1f0362a |
rm -rf %{py3dir}
|
|
Sergio Pascual |
1f0362a |
cp -a . %{py3dir}
|
|
Sergio Pascual |
1f0362a |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
Sergio Pascual |
1f0362a |
%endif # with_python3
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%build
|
|
Sergio Pascual |
1f0362a |
%{__python2} setup.py build
|
|
Sergio Pascual |
20f1624 |
%{__python2} setup.py build_sphinx
|
|
Sergio Pascual |
20f1624 |
rm -f build/sphinx/html/.buildinfo
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%if 0%{?with_python3}
|
|
Sergio Pascual |
1f0362a |
pushd %{py3dir}
|
|
Sergio Pascual |
1f0362a |
%{__python3} setup.py build
|
|
Sergio Pascual |
1f0362a |
# Creating the docs with python3-sphinx doesn't work
|
|
Sergio Pascual |
1f0362a |
#%{__python3} setup.py build_sphinx
|
|
Sergio Pascual |
1f0362a |
popd
|
|
Sergio Pascual |
1f0362a |
%endif # with_python3
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%install
|
|
Sergio Pascual |
1f0362a |
%if 0%{?with_python3}
|
|
Sergio Pascual |
1f0362a |
pushd %{py3dir}
|
|
Sergio Pascual |
1f0362a |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
Sergio Pascual |
1f0362a |
popd
|
|
Sergio Pascual |
1f0362a |
%endif # with_python3
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%{__python2} setup.py install --root %{buildroot}
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%check
|
|
Sergio Pascual |
1f0362a |
pushd %{buildroot}/%{python2_sitelib}
|
|
Sergio Pascual |
1f0362a |
nosetests-%{python2_version} patsy
|
|
Sergio Pascual |
1f0362a |
popd
|
|
Sergio Pascual |
1f0362a |
%if 0%{?with_python3}
|
|
Sergio Pascual |
1f0362a |
pushd %{buildroot}/%{python3_sitelib}
|
|
Sergio Pascual |
1f0362a |
nosetests-%{python3_version} patsy
|
|
Sergio Pascual |
1f0362a |
popd
|
|
Sergio Pascual |
1f0362a |
%endif # with_python3
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%files
|
|
Sergio Pascual |
25f03f2 |
%license LICENSE.txt
|
|
Sergio Pascual |
25f03f2 |
%doc README.rst TODO
|
|
Sergio Pascual |
1f0362a |
%{python2_sitelib}/patsy*
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%files doc
|
|
Sergio Pascual |
25f03f2 |
%license LICENSE.txt
|
|
Sergio Pascual |
25f03f2 |
%doc README.rst TODO build/sphinx/html
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%if 0%{?with_python3}
|
|
Sergio Pascual |
1f0362a |
%files -n python3-%{upname}
|
|
Sergio Pascual |
25f03f2 |
%doc README.rst TODO
|
|
Sergio Pascual |
25f03f2 |
%license LICENSE.txt
|
|
Sergio Pascual |
1f0362a |
%{python3_sitelib}/patsy*
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%files -n python3-%{upname}-doc
|
|
Sergio Pascual |
25f03f2 |
%doc README.rst TODO build/sphinx/html
|
|
Sergio Pascual |
25f03f2 |
%license LICENSE.txt
|
|
Sergio Pascual |
1f0362a |
%endif # with_python3
|
|
Sergio Pascual |
1f0362a |
|
|
Sergio Pascual |
1f0362a |
%changelog
|
|
|
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 |
|