Name: python-openopt Version: 0.5629 Release: 10%{?dist} Summary: A python module for numerical optimization License: BSD URL: http://openopt.org/ Source0: https://pypi.python.org/packages/source/o/openopt/openopt-%{version}.tar.gz BuildArch: noarch BuildRequires: /usr/bin/2to3 BuildRequires: python3-devel BuildRequires: python3-setproctitle BuildRequires: python3-numpy BuildRequires: python3-setuptools %global _description\ Universal numerical optimization package with several\ own solvers (e.g. ralg) and connections to tens of\ other, graphical output of convergence and many other\ goodies. %description %_description %package -n python3-openopt Summary: A python module for numerical optimization %{?python_provide:%python_provide python3-openopt} Requires: python3-numpy %description -n python3-openopt Universal numerical optimization package with several own solvers (e.g. ralg) and connections to tens of other, graphical output of convergence and many other goodies. %prep %setup -q -n openopt-%{version} # Remove some shebangs for lib in openopt/solvers/Standalone/tsp.py openopt/__init__.py openopt/kernel/mfa.py ; do sed '1{\@^#!.*@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done # Remove some executable bits on documentation examples. chmod 0644 openopt/examples/snle_1.py openopt/examples/tsp_1.py %build 2to3 --write --nobackups . %py3_build %install %py3_install rm -rf %{buildroot}%{python3_sitelib}/openopt/examples %check #python3 tests not working #%%{__python3} setup.py test %files -n python3-openopt %doc PKG-INFO openopt/examples %{python3_sitelib}/openopt %{python3_sitelib}/openopt-%{version}-py%{python3_version}.egg-info %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.5629-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.5629-9 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.5629-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.5629-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.5629-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5629-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5629-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.5629-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.5629-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Nov 06 2019 Steve Traylen - 0.5629-1 - Update version. * Thu Oct 03 2019 Miro Hrončok - 0.5625-16 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.5625-15 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5625-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.5625-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 11 2018 Miro Hrončok - 0.5625-12 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.5625-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.5625-10 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.5625-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 26 2018 Iryna Shcherbina - 0.5625-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.5625-7 - Python 2 binary package renamed to python2-openopt See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.5625-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.5625-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.5625-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.5625-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.5625-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Dec 17 2015 Steve Traylen - 0.5625-1 - Upstream 0.5625 * Tue Nov 10 2015 Fedora Release Engineering - 0.5602-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.5602-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 1 2015 Steve Traylen - 0.5602-1 - Upstream 0.5602 * Fri Sep 12 2014 Steve Traylen - 0.5402-1 - Upstream 0.5402 * Sat Jun 07 2014 Fedora Release Engineering - 0.5092-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 14 2014 Bohuslav Kabrda - 0.5092-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Mon Aug 26 2013 Steve Traylen - 0.5092-1 - Initial package