%{?mingw_package_header} # Disable debugsource packages %undefine _debugsource_packages %global pypi_name numpy Name: mingw-%{pypi_name} Summary: MinGW Windows Python %{pypi_name} library Version: 2.3.3 Release: 1%{?dist} # Everything is BSD except for class SafeEval in numpy/lib/utils.py which is Python License: BSD-3-Clause AND Apache-2.0 URL: http://www.numpy.org/ Source0: %{pypi_source} # Make longdouble_format settable as option, as it cannot be determined when crosscompiling Patch0: mingw-numpy-longdoubleformat.patch # Mingw does not have endian.h Patch1: mingw-numpy-endian.patch BuildRequires: gcc-c++ BuildRequires: ninja-build BuildRequires: mingw32-filesystem BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-python3 BuildRequires: mingw32-python3-setuptools BuildRequires: mingw32-python3-Cython BuildRequires: mingw64-filesystem BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-python3 BuildRequires: mingw64-python3-setuptools BuildRequires: mingw64-python3-Cython %description %package -n mingw32-python3-%{pypi_name} Summary: MinGW Windows Python3 %{pypi_name} library %description -n mingw32-python3-%{pypi_name} MinGW Windows Python3 %{pypi_name} library. %package -n mingw64-python3-%{pypi_name} Summary: MinGW Windows Python3 %{pypi_name} library %description -n mingw64-python3-%{pypi_name} MinGW Windows Python3 %{pypi_name} library. %{?mingw_debug_package} %prep %autosetup -p1 -n %{pypi_name}-%{version} %build ( mkdir build_win32 cd build_win32 %mingw32_python3 ../vendored-meson/meson/meson.py setup \ --cross-file /usr/share/mingw/toolchain-mingw32.meson \ --default-library shared \ --prefix %{mingw32_prefix} \ --bindir %{mingw32_bindir} \ --sbindir %{mingw32_sbindir} \ --sysconfdir %{mingw32_sysconfdir} \ --datadir %{mingw32_datadir} \ --includedir %{mingw32_includedir} \ --libdir %{mingw32_libdir} \ --libexecdir %{mingw32_libexecdir} \ --localstatedir %{mingw32_localstatedir} \ --sharedstatedir %{mingw32_sharedstatedir} \ --mandir %{mingw32_mandir} \ --infodir %{mingw32_infodir} \ -Dlongdouble_format=INTEL_EXTENDED_12_BYTES_LE \ .. %mingw32_python3 ../vendored-meson/meson/meson.py compile ) ( mkdir build_win32_host cd build_win32_host %mingw32_python3_host ../vendored-meson/meson/meson.py setup \ --default-library shared \ --prefix %{_prefix}/%{mingw32_target} \ --bindir %{_prefix}/%{mingw32_target}/bin \ --sbindir %{_prefix}/%{mingw32_target}/sbin \ --sysconfdir %{_prefix}/%{mingw32_target}/etc \ --datadir %{_prefix}/%{mingw32_target}/share \ --includedir %{_prefix}/%{mingw32_target}/include \ --libdir %{_prefix}/%{mingw32_target}/lib \ --libexecdir %{_prefix}/%{mingw32_target}/libexec \ --localstatedir %{_prefix}/%{mingw32_target}/var \ --sharedstatedir %{_prefix}/%{mingw32_target}/var/lib \ --mandir %{_prefix}/%{mingw32_target}/share/man \ --infodir %{_prefix}/%{mingw32_target}/share/info \ -Dlongdouble_format=UNKNOWN \ .. %mingw32_python3_host ../vendored-meson/meson/meson.py compile ) ( mkdir build_win64 cd build_win64 %mingw64_python3 ../vendored-meson/meson/meson.py setup \ --cross-file /usr/share/mingw/toolchain-mingw64.meson \ --default-library shared \ --prefix %{mingw64_prefix} \ --bindir %{mingw64_bindir} \ --sbindir %{mingw64_sbindir} \ --sysconfdir %{mingw64_sysconfdir} \ --datadir %{mingw64_datadir} \ --includedir %{mingw64_includedir} \ --libdir %{mingw64_libdir} \ --libexecdir %{mingw64_libexecdir} \ --localstatedir %{mingw64_localstatedir} \ --sharedstatedir %{mingw64_sharedstatedir} \ --mandir %{mingw64_mandir} \ --infodir %{mingw64_infodir} \ -Dlongdouble_format=INTEL_EXTENDED_16_BYTES_LE \ .. %mingw64_python3 ../vendored-meson/meson/meson.py compile ) ( mkdir build_win64_host cd build_win64_host %mingw64_python3_host ../vendored-meson/meson/meson.py setup \ --default-library shared \ --prefix %{_prefix}/%{mingw64_target} \ --bindir %{_prefix}/%{mingw64_target}/bin \ --sbindir %{_prefix}/%{mingw64_target}/sbin \ --sysconfdir %{_prefix}/%{mingw64_target}/etc \ --datadir %{_prefix}/%{mingw64_target}/share \ --includedir %{_prefix}/%{mingw64_target}/include \ --libdir %{_prefix}/%{mingw64_target}/lib \ --libexecdir %{_prefix}/%{mingw64_target}/libexec \ --localstatedir %{_prefix}/%{mingw64_target}/var \ --sharedstatedir %{_prefix}/%{mingw64_target}/var/lib \ --mandir %{_prefix}/%{mingw64_target}/share/man \ --infodir %{_prefix}/%{mingw64_target}/share/info \ -Dlongdouble_format=UNKNOWN \ .. %mingw64_python3_host ../vendored-meson/meson/meson.py compile ) # Manually generate dist-info as invoking the the venored meson directly does not do this cat > setup.cfg < - 2.3.3-1 - Update to 2.3.3 * Sun Jul 27 2025 Sandro Mani - 2.3.2-1 - Update to 2.3.2 * Thu Jul 24 2025 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 24 2025 Sandro Mani - 2.3.1-1 - Update to 2.3.1 * Thu May 29 2025 Sandro Mani - 2.2.6-1 - Update to 2.2.6 * Wed Apr 23 2025 Sandro Mani - 2.2.5-1 - Update to 2.2.5 * Wed Apr 16 2025 Sandro Mani - 2.2.4-2 - Add dist-info * Sat Apr 05 2025 Sandro Mani - 2.2.4-1 - Update to 2.2.4 * Fri Jan 17 2025 Fedora Release Engineering - 1.26.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.26.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Feb 27 2024 Sandro Mani - 1.26.4-1 - Update to 1.26.4 * Sat Feb 17 2024 Sandro Mani - 1.26.2-6 - Also install __ufunc_api.h * Sat Feb 03 2024 Sandro Mani - 1.26.2-5 - Update numpy_mingw.patch: endian.h does not exist on mingw * Sat Feb 03 2024 Sandro Mani - 1.26.2-4 - Fix missing files * Thu Jan 25 2024 Fedora Release Engineering - 1.26.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.26.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Dec 27 2023 Sandro Mani - 1.26.2-1 - Update to 1.26.2 * Tue Sep 26 2023 Sandro Mani - 1.26.0-1 - Update to 1.26.0 * Sat Jul 29 2023 Sandro Mani - 1.24.4-1 - Update to 1.24.4 * Thu Jul 20 2023 Fedora Release Engineering - 1.24.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Apr 24 2023 Sandro Mani - 1.24.3-1 - Update to 1.24.3 * Tue Mar 21 2023 Sandro Mani - 1.24.2-4 - Install missing headers from target build also for host build * Mon Mar 20 2023 Sandro Mani - 1.24.2-3 - Package headers * Mon Mar 20 2023 Sandro Mani - 1.24.2-2 - Add host build * Sun Mar 19 2023 Sandro Mani - 1.24.2-1 - Update to 1.24.2 * Sat Jan 28 2023 Sandro Mani - 1.24.1-1 - Update to 1.24.1 * Thu Jan 19 2023 Fedora Release Engineering - 1.23.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Dec 05 2022 Sandro Mani - 1.23.5-1 - Update to 1.23.5 * Wed Oct 19 2022 Sandro Mani - 1.23.4-1 - Update to 1.23.4 * Thu Jul 21 2022 Fedora Release Engineering - 1.22.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Mar 25 2022 Sandro Mani - 1.22.0-5 - Rebuild with mingw-gcc-12 * Thu Feb 10 2022 Sandro Mani - 1.22.0-4 - Rebuild for new python dependency generator (take two) * Thu Feb 10 2022 Sandro Mani - 1.22.0-3 - Rebuild for new python dependency generator * Thu Jan 20 2022 Fedora Release Engineering - 1.22.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jan 07 2022 Sandro Mani - 1.22.0-1 - Update to 1.22.0 * Thu Dec 23 2021 Sandro Mani - 1.21.5-1 - Update to 1.21.5 * Sat Aug 07 2021 Sandro Mani - 1.21.1-1 - Update to 1.21.1 * Thu Jul 22 2021 Fedora Release Engineering - 1.20.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 11 2021 Sandro Mani - 1.20.1-2 - Rebuild (python-3.10) * Mon Feb 08 2021 Sandro Mani - 1.20.1-1 - Update to 1.20.1 * Wed Feb 03 2021 Sandro Mani - 1.20.0-1 - Update to 1.20.0 * Tue Jan 26 2021 Fedora Release Engineering - 1.19.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Jan 09 2021 Sandro Mani - 1.19.5-1 - Update to 1.19.5 * Wed Nov 04 2020 Sandro Mani - 1.19.4-1 - Update to 1.19.4 * Thu Oct 29 2020 Sandro Mani - 1.19.3-1 - Update to 1.19.3 * Fri Sep 11 2020 Sandro Mani - 1.19.2-1 - Update to 1.19.2 * Tue Jul 28 2020 Fedora Release Engineering - 1.19.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 23 2020 Sandro Mani - 1.19.1-1 - Update to 1.19.1 * Tue Jun 23 2020 Sandro Mani - 1.19.0-1 - Update to 1.19.0 * Mon Jun 08 2020 Sandro Mani - 1.18.5-1 - Update to 1.18.5 * Sat May 30 2020 Sandro Mani - 1.18.4-2 - Rebuild (python-3.9) * Mon May 04 2020 Sandro Mani - 1.18.4-1 - Update to 1.18.4 * Tue Apr 21 2020 Sandro Mani - 1.18.3-1 - Update to 1.18.3 * Wed Mar 18 2020 Sandro Mani - 1.18.2-1 - Update to 1.18.2 * Wed Jan 29 2020 Fedora Release Engineering - 1.18.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 07 2020 Sandro Mani - 1.18.1-1 - Update to 1.18.1 * Mon Dec 30 2019 Sandro Mani - 1.18.0-1 - Update to 1.18.0 * Tue Nov 12 2019 Sandro Mani - 1.17.4-1 - Update to 1.17.4 * Thu Oct 24 2019 Sandro Mani - 1.17.3-2 - Link devel files to include dir - Add missing headers * Fri Oct 18 2019 Sandro Mani - 1.17.3-1 - Update to 1.17.3 * Tue Oct 08 2019 Sandro Mani - 1.17.2-2 - Rebuild (Changes/Mingw32GccDwarf2) * Fri Sep 27 2019 Sandro Mani - 1.17.2-1 - Update to 1.17.2 * Fri Aug 02 2019 Sandro Mani - 1.17.0-1 - Update to 1.17.0 - Drop python2 packages * Thu Jul 25 2019 Fedora Release Engineering - 1.16.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 02 2019 Sandro Mani - 1.16.4-1 - Update to 1.16.4 * Wed May 01 2019 Sandro Mani - 1.16.3-2 - Add python3 subpackages * Tue Apr 23 2019 Sandro Mani - 1.16.3-1 - Update to 1.16.3 * Wed Feb 27 2019 Sandro Mani - 1.16.2-1 - Update to 1.16.2 * Mon Feb 04 2019 Sandro Mani - 1.16.1-1 - Update to 1.16.1 * Fri Feb 01 2019 Fedora Release Engineering - 1.16.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 22 2019 Sandro Mani - 1.16.0-1 - Update to 1.16.0 * Thu Aug 30 2018 Sandro Mani - 1.15.1-1 - Update to 1.15.1 * Thu Aug 02 2018 Sandro Mani - 1.15.0-1 - Update to 1.15.0 * Fri Jul 13 2018 Fedora Release Engineering - 1.14.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 14 2018 Sandro Mani - 1.14.5-1 - Update to 1.14.5 * Wed May 02 2018 Sandro Mani - 1.14.3-1 - Update to 1.14.3 * Tue Mar 13 2018 Sandro Mani - 1.14.2-1 - Update to 1.14.2 * Thu Feb 22 2018 Sandro Mani - 1.14.1-1 - Update to 1.14.1 * Thu Feb 08 2018 Fedora Release Engineering - 1.13.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Oct 08 2017 Sandro Mani - 1.13.3-1 - Update to 1.13.3 * Fri Sep 29 2017 Sandro Mani - 1.13.2-1 - Update to 1.13.2 * Sat Sep 09 2017 Sandro Mani - 1.13.1-2 - Rebuild for mingw-filesystem * Sat Sep 02 2017 Sandro Mani - 1.13.1-1 - Initial package