File python3-statsmodels.spec of Package python3-statsmodels
#
# spec file for package python3-statsmodels
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python3-statsmodels
Version: 0.8.0~rc1
%define tarver 0.8.0rc1
Release: 0
Summary: A Python module that allows users to explore data
License: BSD-3-Clause
Group: Development/Libraries/Python
Url: http://statsmodels.sourceforge.net/
Source: https://files.pythonhosted.org/packages/source/s/statsmodels/statsmodels-%{tarver}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-fortran
BuildRequires: python3-Cython >= 0.20.1
BuildRequires: python3-devel >= 2.6
BuildRequires: python3-matplotlib >= 1.0.0
BuildRequires: python3-nose
BuildRequires: python3-numpy-devel >= 1.7.0
BuildRequires: python3-pandas >= 0.7.1
BuildRequires: python3-patsy >= 0.3.0
BuildRequires: python3-scipy >= 0.9.0
BuildRequires: python3-setuptools >= 0.6
Requires: python3-numpy >= 1.7.0
Requires: python3-pandas >= 0.7.1
Requires: python3-patsy >= 0.3.0
Requires: python3-scipy >= 0.9.0
Recommends: python3-matplotlib >= 1.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Statsmodels is a Python module that allows users to explore data,
estimate statistical models, and perform statistical tests.
An extensive list of descriptive statistics, statistical tests,
plotting functions, and result statistics are available for different
types of data and each estimator. Researchers across fields may find
that statsmodels fully meets their needs for statistical computing
and data analysis in Python.
%prep
%setup -q -n statsmodels-%{tarver}
find statsmodels -type f -name "*.py" -exec sed -i "/#! \/usr\/bin\/env python3/d" {} \;
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build
%install
python3 setup.py install --root %{buildroot} --prefix=%{_prefix}
# Remove unwanted setup files
find %{buildroot}%{python3_sitearch} -name 'setup.py*' -exec rm {} \;
# Remove duplicates
%fdupes %{buildroot}%{python3_sitearch}
# Fix python-bytecode-inconsistent-mtime
pushd %{buildroot}%{python3_sitearch}
%py3_compile .
popd
%files
%defattr(-,root,root)
%doc COPYRIGHTS.txt LICENSE.txt README.rst README_l1.txt
%doc examples/
%{python3_sitearch}/statsmodels/
%{python3_sitearch}/statsmodels-*-py*.egg-info
%changelog