Blame mingw-numpy.spec

2b7520
%{?mingw_package_header}
2b7520
2b7520
%global pkgname numpy
2b7520
2b7520
Name:          mingw-%{pkgname}
2b7520
Summary:       MinGW Windows Python %{pkgname} library
28b9b7
Version:       1.15.1
a3b87e
Release:       1%{?dist}
2b7520
BuildArch:     noarch
2b7520
2b7520
# Everything is BSD except for class SafeEval in numpy/lib/utils.py which is Python
0ec574
License:       BSD and Python
0ec574
URL:           http://www.numpy.org/
0ec574
Source0:       https://github.com/%{pkgname}/%{pkgname}/releases/download/v%{version}/%{pkgname}-%{version}.tar.gz
2b7520
2b7520
591b29
BuildRequires: mingw32-filesystem >= 102
2b7520
BuildRequires: mingw32-gcc
2b7520
BuildRequires: mingw32-python2
39ee98
BuildRequires: mingw32-python2-Cython
2b7520
BuildRequires: mingw32-python2-setuptools
2b7520
591b29
BuildRequires: mingw64-filesystem >= 102
2b7520
BuildRequires: mingw64-gcc
2b7520
BuildRequires: mingw64-python2
39ee98
BuildRequires: mingw64-python2-Cython
2b7520
BuildRequires: mingw64-python2-setuptools
2b7520
2b7520
2b7520
%description
2b7520
MinGW Windows Python %{pkgname} library.
2b7520
2b7520
2b7520
%package -n mingw32-python2-%{pkgname}
2b7520
Summary:       MinGW Windows Python2 %{pkgname} library
2b7520
2b7520
%description -n mingw32-python2-%{pkgname}
2b7520
MinGW Windows Python2 %{pkgname} library.
2b7520
2b7520
2b7520
%package -n mingw64-python2-%{pkgname}
2b7520
Summary:       MinGW Windows Python2 %{pkgname} library
2b7520
2b7520
%description -n mingw64-python2-%{pkgname}
2b7520
MinGW Windows Python2 %{pkgname} library.
2b7520
591b29
%{?mingw_debug_package}
2b7520
2b7520
2b7520
%prep
2b7520
%autosetup -p1 -n %{pkgname}-%{version}
2b7520
2b7520
2b7520
%build
2b7520
%{mingw32_python2} setup.py build -b build_mingw32
2b7520
%{mingw64_python2} setup.py build -b build_mingw64
2b7520
2b7520
2b7520
%install
2b7520
ln -s build_mingw32 build
2b7520
# --skip-build currently broken
2b7520
%{mingw32_python2} setup.py install -O1 --root=%{buildroot}
2b7520
rm build
2b7520
2b7520
ln -s build_mingw64 build
2b7520
# --skip-build currently broken
2b7520
%{mingw64_python2} setup.py install -O1 --root=%{buildroot}
2b7520
rm build
2b7520
591b29
# Exclude debug files from the main files (note: the debug files are only created after %%install, so we can't search for them directly)
591b29
find %{buildroot}%{mingw32_prefix} | grep -E '.(exe|dll|pyd)$' | sed 's|^%{buildroot}\(.*\)$|%%exclude \1.debug|' > mingw32-python2-%{pkgname}.debugfiles
591b29
find %{buildroot}%{mingw64_prefix} | grep -E '.(exe|dll|pyd)$' | sed 's|^%{buildroot}\(.*\)$|%%exclude \1.debug|' > mingw64-python2-%{pkgname}.debugfiles
2b7520
591b29
591b29
%files -n mingw32-python2-%{pkgname} -f mingw32-python2-%{pkgname}.debugfiles
2b7520
%license LICENSE.txt
2b7520
%{mingw32_bindir}/f2py2
2b7520
%{mingw32_python2_sitearch}/*
2b7520
591b29
%files -n mingw64-python2-%{pkgname} -f mingw64-python2-%{pkgname}.debugfiles
2b7520
%license LICENSE.txt
2b7520
%{mingw64_bindir}/f2py2
2b7520
%{mingw64_python2_sitearch}/*
2b7520
2b7520
2b7520
%changelog
28b9b7
* Thu Aug 30 2018 Sandro Mani <manisandro@gmail.com> - 1.15.1-1
28b9b7
- Update to 1.15.1
28b9b7
a3b87e
* Thu Aug 02 2018 Sandro Mani <manisandro@gmail.com> - 1.15.0-1
a3b87e
- Update to 1.15.0
a3b87e
1dd4f0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.5-2
1dd4f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1dd4f0
cc5f42
* Thu Jun 14 2018 Sandro Mani <manisandro@gmail.com> - 1.14.5-1
cc5f42
- Update to 1.14.5
cc5f42
12ee93
* Wed May 02 2018 Sandro Mani <manisandro@gmail.com> - 1.14.3-1
12ee93
- Update to 1.14.3
12ee93
af76e7
* Tue Mar 13 2018 Sandro Mani <manisandro@gmail.com> - 1.14.2-1
af76e7
- Update to 1.14.2
af76e7
54ecab
* Thu Feb 22 2018 Sandro Mani <manisandro@gmail.com> - 1.14.1-1
54ecab
- Update to 1.14.1
54ecab
5bb5b9
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.3-2
5bb5b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5bb5b9
0ec574
* Sun Oct 08 2017 Sandro Mani <manisandro@gmail.com> - 1.13.3-1
0ec574
- Update to 1.13.3
0ec574
fd0de5
* Fri Sep 29 2017 Sandro Mani <manisandro@gmail.com> - 1.13.2-1
fd0de5
- Update to 1.13.2
fd0de5
591b29
* Sat Sep 09 2017 Sandro Mani <manisandro@gmail.com> - 1.13.1-2
591b29
- Rebuild for mingw-filesystem
591b29
2b7520
* Sat Sep 02 2017 Sandro Mani <manisandro@gmail.com> - 1.13.1-1
2b7520
- Initial package