# NB: only really needed on CentOS 7 %if 0%{?rhel} && 0%{?rhel} < 8 %define __python %{__python3} %else %if 0%{?py_byte_compile} # Turn off the brp-python-bytecompile automagic %global _python_bytecompile_extra 0 %endif %endif # Enable automatic download %undefine _disable_source_fetch # Disable debug package %define debug_package %nil %global srcname pandas # ============================================================================== Name: python-%{srcname} %if 0%{?mdkver} Version: 1.2.4 %else Version: 0.24.2 %endif Release: 1%{?dist} Summary: Python library providing high-performance data analysis tools License: BSD URL: https://pandas.pydata.org/ Source0: https://pypi.io/packages/source/p/pandas/%{srcname}-%{version}.tar.gz %global _description %{expand: pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.} %description %_description %package -n python3-%{srcname} Summary: Python library providing high-performance data analysis tools BuildRequires: python3-devel %if 0%{?rhel} && 0%{?rhel} < 8 # CentOS 7 BuildRequires: devtoolset-8 BuildRequires: devtoolset-8-gcc BuildRequires: devtoolset-8-gcc-c++ BuildRequires: python36-setuptools BuildRequires: python36-matplotlib BuildRequires: python36-Cython BuildRequires: python36-numpy >= 1.12 %elif 0%{?mdkver} # OpenMandriva BuildRequires: clang BuildRequires: glibc-devel BuildRequires: python-setuptools BuildRequires: python-matplotlib BuildRequires: python-cython BuildRequires: python-numpy >= 1.12 %else # Fedora > 30 && CentOS 8 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: python3-setuptools BuildRequires: python3-matplotlib BuildRequires: python3-Cython BuildRequires: python3-numpy >= 1.12 %endif %if 0%{?mdkver} Requires: python-numpy >= 1.12 Requires: python-scipy Requires: python-matplotlib %else Requires: python3-numpy >= 1.12 Requires: python3-scipy Requires: python3-matplotlib %endif %if 0%{?rhel} && 0%{?rhel} < 8 # CentOS 7 Requires: python36-pytz Requires: python36-dateutil # Requires: python3-tables # Requires: python3-Bottleneck Requires: python36-numexpr %elif 0%{?mdkver} # OpenMandriva Requires: python-pytz Requires: python-dateutil Requires: python-tables Requires: python-Bottleneck Requires: python-numexpr %else # Fedora > 30 && CentOS 8 Requires: python3-pytz Requires: python3-dateutil Requires: python3-tables Requires: python3-Bottleneck Requires: python3-numexpr %endif %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} -p1 %if ! 0%{?mdkver} rm $(grep -rl '/\* Generated by Cython') %endif %build %if 0%{?mdkver} export LDFLAGS="-lm" %endif %if 0%{?rhel} && 0%{?rhel} < 8 scl enable devtoolset-8 -- <<\EOF %else %set_build_flags %endif %py3_build %if 0%{?rhel} && 0%{?rhel} < 8 EOF %endif %install %py3_install %{?py_byte_compile:%py_byte_compile %{__python3} %{buildroot}%{python3_sitearch}} %files -n python3-pandas %doc RELEASE.md %license LICENSE %{python3_sitearch}/%{srcname}* %exclude /usr/lib/debug/ %exclude /usr/src/debug/ %changelog * Mon Nov 11 2019 Sergio Pascual - 0.25.3-1 - New release of pandas 0.25.3 * Sat Aug 24 2019 Zbigniew Jędrzejewski-Szmek - 0.25.1-1 - Update to latest version * Fri Jul 26 2019 Fedora Release Engineering - 0.24.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 27 2019 Elliott Sales de Andrade - 0.24.1-3 - Fix doc build with numpydoc 0.9 * Tue Jun 18 2019 Miro Hrončok - 0.24.1-2 - Subpackage python2-pandas has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Thu Mar 07 2019 Elliott Sales de Andrade - 0.24.1-1 - Update to 0.24.1 * Sat Feb 02 2019 Fedora Release Engineering - 0.23.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Aug 21 2018 Sergio Pascual - 0.23.4-1 - New release of pandas 0.23.4 * Sat Jul 14 2018 Fedora Release Engineering - 0.23.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.23.0-2 - Rebuilt for Python 3.7 * Tue Jun 05 2018 Sergio Pascual - 0.23.0-1 - New release of pandas 0.23.0 * Fri Feb 09 2018 Fedora Release Engineering - 0.22.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 17 2018 Sergio Pascual - 0.22.0-1 - New release of pandas 0.22.0 * Tue Jan 16 2018 Troy Dawson - 0.20.3-2 - Update conditionals * Sun Sep 10 2017 Sergio Pascual - 0.20.3-1 - New upstream version (0.20.3) * Thu Aug 03 2017 Fedora Release Engineering - 0.20.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.20.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Sergio Pascual - 0.20.1-1 - New upstream version (0.20.1) * Sat Feb 11 2017 Fedora Release Engineering - 0.19.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 27 2017 Sergio Pascual - 0.19.2-1 - New upstream version (0.19.2) * Mon Dec 19 2016 Miro Hrončok - 0.19.1-2 - Rebuild for Python 3.6 * Wed Nov 09 2016 Sergio Pascual - 0.19.1-1 - New upstream version (0.19.1) * Wed Oct 19 2016 Sergio Pascual - 0.19.0-1 - New upstream version (0.19.0) - Brings pandas-datareader using recommends * Sat Oct 15 2016 Peter Robinson - 0.18.1-3 - rebuilt for matplotlib-2.0.0 * Tue Jul 19 2016 Fedora Release Engineering - 0.18.1-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Jul 13 2016 Sergio Pascual - 0.18.1-1 - New upstream version (0.18.1) - Update pypi url * Sat Apr 09 2016 Igor Gnatenko - 0.18.0-3 - Fix broken deps * Sat Apr 09 2016 Igor Gnatenko - 0.18.0-2 - Fix python_provide macros usage (FTBFS for some packages) * Wed Mar 30 2016 Sergio Pascual - 0.18.0-1 - New upstream version (0.18.0) * Thu Feb 04 2016 Fedora Release Engineering - 0.17.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 03 2016 Sergio Pascual - 0.17.1-1 - New upstream version (0.17.1) - Add new dependecy as weak dep (fixes bz #1288919) * Tue Nov 10 2015 Fedora Release Engineering - 0.17.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Oct 28 2015 Orion Poplawski - 0.17.0-2 - Use common build directory, new python macros - Filter provides - Fix provides * Mon Oct 12 2015 Sergio Pascual - 0.17.0-1 - New release of pandas 0.17.0 * Thu Jun 18 2015 Fedora Release Engineering - 0.16.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 15 2015 Sergio Pascual - 0.16.2-1 - New release of pandas 0.16.2 * Mon May 18 2015 Sergio Pascual - 0.16.1-1 - New release of pandas 0.16.1 * Sat May 02 2015 Kalev Lember - 0.16.0-2 - Rebuilt for GCC 5 C++11 ABI change * Tue Mar 24 2015 Sergio Pascual - 0.16.0-1 - New release of pandas 0.16.0 - Use license macro - Don't use py3dir (new python guidelines) * Tue Jan 20 2015 Sergio Pascual - 0.15.2-3 - Pandas actually supports dateutil 2 * Mon Jan 19 2015 Sergio Pascual - 0.15.2-2 - Update dependency on dateutil to dateutil15 (bz #1183368) * Wed Dec 17 2014 Sergio Pascual - 0.15.2-1 - New release of pandas 0.15.2 * Thu Nov 20 2014 Sergio Pascual - 0.15.1-1 - New release of pandas 0.15.1 * Mon Oct 20 2014 Sergio Pascual - 0.15.0-1 - New release of pandas 0.15.0 * Sun Aug 17 2014 Fedora Release Engineering - 0.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jul 13 2014 Sergio Pascual - 0.14.1-1 - New release of pandas 0.14.1 * Mon Jun 16 2014 Sergio Pascual - 0.14.0-1 - New release of pandas 0.14.0 * Sat Jun 07 2014 Fedora Release Engineering - 0.12.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 14 2014 Bohuslav Kabrda - 0.12.0-5 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Tue Jan 28 2014 Sergio Pascual - 0.12.0-4 - Enable python3 build - Set CFLAGS before build * Fri Dec 13 2013 Kushal Das 0.12.0-3 - Fixed dependency name * Fri Dec 06 2013 Pierre-Yves Chibon fr - 0.12.0-2 - Change BR from python-setuptools-devel to python-setuptools See https://fedoraproject.org/wiki/Changes/Remove_Python-setuptools-devel * Fri Sep 20 2013 Kushal Das 0.12.0-1 - New release of pandas 0.12.0 * Sun Aug 04 2013 Fedora Release Engineering - 0.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Dec 24 2012 Kushal Das 0.10.0-1 - New release of pandas 0.10.0 * Thu Nov 08 2012 Kushal Das 0.10.0-1 - New release of pandas 0.10.0 * Thu Nov 08 2012 Kushal Das 0.9-1 - New release of pandas * Fri Aug 03 2012 Kushal Das 0.8.1-2 - Fixes from review request * Tue Jul 10 2012 Kushal Das 0.8.1-1 - Initial release in Fedora