|
|
7dda42c |
%global srcname pyopencl
|
|
|
7dda42c |
|
|
|
7dda42c |
Name: python-%{srcname}
|
|
|
3a1cebf |
Version: 2021.1.6
|
|
|
086c59c |
Release: 1%{?dist}
|
|
|
7dda42c |
Summary: Python wrapper for OpenCL
|
|
|
7dda42c |
|
|
|
7dda42c |
# https://bugzilla.redhat.com/show_bug.cgi?id=1219819#c16
|
|
|
7dda42c |
# Boost (boost):
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-bessel-j.cl
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-bessel-y.cl
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-eval-tbl.cl
|
|
|
7dda42c |
# GPLv2 (cephes):
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-airy.cl
|
|
Igor Gnatenko |
05edff3 |
# ASL 2.0 (ranluxcl), will be removed in 2018.x:
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-ranluxcl.cl
|
|
Igor Gnatenko |
05edff3 |
# ASL 2.0:
|
|
Igor Gnatenko |
05edff3 |
# pyopencl/scan.py
|
|
Igor Gnatenko |
05edff3 |
# BSD (random123):
|
|
Igor Gnatenko |
05edff3 |
# pyopencl/cl/pyopencl-random123/array.h
|
|
Igor Gnatenko |
05edff3 |
# pyopencl/cl/pyopencl-random123/openclfeatures.h
|
|
Igor Gnatenko |
05edff3 |
# pyopencl/cl/pyopencl-random123/philox.cl
|
|
Igor Gnatenko |
05edff3 |
# pyopencl/cl/pyopencl-random123/threefry.cl
|
|
Igor Gnatenko |
05edff3 |
# BSD:
|
|
Igor Gnatenko |
05edff3 |
# pyopencl/bitonic_sort.py
|
|
Igor Gnatenko |
05edff3 |
# pyopencl/bitonic_sort_templates.py
|
|
Igor Gnatenko |
05edff3 |
|
|
Igor Gnatenko |
05edff3 |
License: MIT and Boost and ASL 2.0 and GPLv2 and BSD
|
|
Igor Gnatenko |
378375e |
URL: https://mathema.tician.de/software/pyopencl
|
|
|
fa441a3 |
Source0: %{pypi_source}
|
|
|
554e34e |
Patch1: 0001-disable-executing-git-submodule.patch
|
|
|
7dda42c |
# Have not asked upstream, but they want to enforce CFLAGS/LDFLAGS
|
|
|
554e34e |
Patch2: 0002-don-t-hack-distutils-with-C-LDFLAGS.patch
|
|
|
7dda42c |
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-bessel-[j,y].cl and
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-eval-tbl.cl contain snippets taken from boost
|
|
|
7dda42c |
# and cephes. pyopencl/cl/pyopencl-airy.cl contains code taken from
|
|
|
7dda42c |
# cephes.
|
|
|
7dda42c |
Provides: bundled(boost-math)
|
|
|
7dda42c |
Provides: bundled(cephes) = 2.8
|
|
|
7dda42c |
# pyopencl/cl/pyopencl-ranluxcl.cl contains a modified version of the
|
|
|
7dda42c |
# ranluxcl library
|
|
|
7dda42c |
Provides: bundled(ranluxcl) = 1.3.1
|
|
|
fa441a3 |
# ./pyopencl/compyte/*
|
|
|
fa441a3 |
Provides: bundled(compyte)
|
|
|
7dda42c |
|
|
|
fa441a3 |
BuildRequires: gcc-c++
|
|
|
7dda42c |
BuildRequires: boost-devel
|
|
|
fa441a3 |
BuildRequires: opencl-headers
|
|
|
fa441a3 |
BuildRequires: ocl-icd-devel
|
|
|
7dda42c |
BuildRequires: pkgconfig(libffi)
|
|
|
7dda42c |
BuildRequires: pkgconfig(gl)
|
|
|
7dda42c |
|
|
|
e681573 |
%description
|
|
|
863a90a |
PyOpenCL makes it possible to access GPUs and other massively\
|
|
|
863a90a |
parallel compute devices from Python. Specifically, PyOpenCL\
|
|
|
863a90a |
provides Pythonic access to the OpenCL parallel computation\
|
|
|
7dda42c |
API in a manner similar to the sister project `PyCUDA`.
|
|
|
7dda42c |
|
|
|
7dda42c |
%package -n python3-%{srcname}
|
|
|
7dda42c |
Summary: Python 3 wrapper for OpenCL
|
|
|
7dda42c |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
7dda42c |
BuildRequires: python3-devel
|
|
|
863a90a |
BuildRequires: python3-setuptools
|
|
|
3b96b77 |
BuildRequires: python3dist(pybind11)
|
|
|
02bbb9a |
BuildRequires: python3dist(numpy)
|
|
|
e681573 |
Recommends: python3dist(Mako)
|
|
|
863a90a |
|
|
|
e681573 |
%description -n python3-%{srcname}
|
|
|
e681573 |
Python 3 version of python-pyopencl.
|
|
|
7dda42c |
|
|
|
7dda42c |
%prep
|
|
|
863a90a |
%autosetup -n %{srcname}-%{version} -p1
|
|
|
fa441a3 |
rm -vrf *.egg-info
|
|
|
fa441a3 |
rm -vf examples/download-examples-from-wiki.py
|
|
|
7dda42c |
|
|
|
554e34e |
# generate html docs
|
|
|
7dda42c |
#sphinx-build doc/source html
|
|
|
7dda42c |
# remove the sphinx-build leftovers
|
|
|
7dda42c |
#rm -rf html/.{doctrees,buildinfo}
|
|
|
7dda42c |
|
|
|
7dda42c |
%build
|
|
|
e681573 |
%{__python3} configure.py --cl-enable-gl --cl-pretend-version=1.2
|
|
|
7dda42c |
%py3_build
|
|
|
7dda42c |
|
|
|
7dda42c |
%install
|
|
|
7dda42c |
%py3_install
|
|
|
7dda42c |
|
|
|
fa441a3 |
find %{buildroot}%{python3_sitearch}/%{srcname} -name '*.so' -exec chmod 755 {} \+
|
|
|
7dda42c |
|
|
|
7dda42c |
%files -n python3-%{srcname}
|
|
|
7dda42c |
%license LICENSE
|
|
|
7dda42c |
%doc examples
|
|
|
863a90a |
%{python3_sitearch}/%{srcname}/
|
|
|
863a90a |
%{python3_sitearch}/%{srcname}-*.egg-info/
|
|
|
7dda42c |
|
|
|
7dda42c |
%changelog
|
|
|
3a1cebf |
* Mon Apr 12 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 2021.1.6-1
|
|
|
3a1cebf |
- Update to v2021.1.6
|
|
|
3a1cebf |
|
|
|
33e9db0 |
* Mon Mar 29 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 2021.1.4-1
|
|
|
33e9db0 |
- Update to v2021.1.4
|
|
|
33e9db0 |
|
|
|
bbd94b3 |
* Thu Feb 18 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 2021.1.2-1
|
|
|
bbd94b3 |
- Update to v2021.1.2
|
|
|
bbd94b3 |
|
|
|
a0fcaec |
* Thu Jan 28 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 2021.1.1-1
|
|
|
a0fcaec |
- Update to v2021.1.1
|
|
|
a0fcaec |
|
|
|
b7b1e95 |
* Tue Jan 26 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 2021.1-1
|
|
|
b7b1e95 |
- Update to v2021.1
|
|
|
b7b1e95 |
|
|
|
e681573 |
* Tue Nov 24 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 2020.3.1-1
|
|
|
e681573 |
- Update to v2020.3.1 (RHBZ#1899285)
|
|
|
e681573 |
- Support nVidia GPUs with proprietary drivers (--cl-pretend-version=1.2) (RHBZ#1900351)
|
|
|
e681573 |
|
|
|
086c59c |
* Mon Sep 28 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 2020.2.2-1
|
|
|
086c59c |
- Update to v2020.2.2
|
|
|
086c59c |
|
|
|
6cfb81f |
* Thu Aug 27 2020 Iñaki Úcar <iucar@fedoraproject.org> - 2020.2.1-2
|
|
|
6cfb81f |
- Drop unneeded libraries
|
|
|
6cfb81f |
|
|
|
c985cc0 |
* Fri Aug 21 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 2020.2.1-1
|
|
|
c985cc0 |
- Update to v2020.2.1
|
|
|
c985cc0 |
|
|
|
77195cf |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2020.2-2
|
|
|
77195cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
77195cf |
|
|
|
99cab1e |
* Fri Jun 19 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 2020.2-1
|
|
|
99cab1e |
- Update to v2020.2
|
|
|
99cab1e |
|
|
|
1d37ae7 |
* Wed Jun 03 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 2020.1-1
|
|
|
1d37ae7 |
- Update to v2020.1
|
|
|
1d37ae7 |
|
|
|
d2e44e8 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2019.1.2-3
|
|
|
d2e44e8 |
- Rebuilt for Python 3.9
|
|
|
d2e44e8 |
|
|
|
a9f95ae |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.1.2-2
|
|
|
a9f95ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a9f95ae |
|
|
|
8c45b00 |
* Fri Nov 08 2019 Frantisek Zatloukal <fzatlouk@redhat.com> - 2019.1.2-1
|
|
|
8c45b00 |
- Update to v2019.1.2
|
|
|
8c45b00 |
|
|
|
31c8d46 |
* Fri Nov 08 2019 Frantisek Zatloukal <fzatlouk@redhat.com> - 2018.2.5-4
|
|
|
31c8d46 |
- Rebuild
|
|
|
31c8d46 |
|
|
|
73a6233 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2018.2.5-3
|
|
|
73a6233 |
- Rebuilt for Python 3.8
|
|
|
73a6233 |
|
|
|
1310967 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.2.5-2
|
|
|
1310967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
1310967 |
|
|
|
554e34e |
* Sat Mar 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2018.2.5-1
|
|
|
554e34e |
- Update to 2018.2.5
|
|
|
554e34e |
|
|
|
5c0c117 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.1.1-4
|
|
|
5c0c117 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
5c0c117 |
|
|
|
02bbb9a |
* Sun Aug 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2018.1.1-3
|
|
|
02bbb9a |
- Drop python2 subpackage
|
|
|
02bbb9a |
|
|
|
13715b4 |
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 2018.1.1-2
|
|
|
13715b4 |
- Rebuild with fixed binutils
|
|
|
13715b4 |
|
|
|
fa441a3 |
* Sun Jul 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2018.1.1-1
|
|
|
fa441a3 |
- Update to 2018.1.1
|
|
|
fa441a3 |
|
|
|
146d118 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2.2-5
|
|
|
146d118 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
146d118 |
|
|
|
f14a997 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2017.2.2-4
|
|
|
f14a997 |
- Rebuilt for Python 3.7
|
|
|
f14a997 |
|
|
|
830eaee |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2.2-3
|
|
|
830eaee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
830eaee |
|
|
|
c21744c |
* Mon Jan 29 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2017.2.2-2
|
|
|
c21744c |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
c21744c |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
c21744c |
|
|
Igor Gnatenko |
378375e |
* Sun Dec 31 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2017.2.2-1
|
|
Igor Gnatenko |
378375e |
- Update to 2017.2.2
|
|
Igor Gnatenko |
378375e |
|
|
|
4d87fcc |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2-3
|
|
|
4d87fcc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
4d87fcc |
|
|
|
536f5f8 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2-2
|
|
|
536f5f8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
536f5f8 |
|
|
|
05adedc |
* Sat Jul 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 2017.2-1
|
|
|
05adedc |
- Update to 2017.2
|
|
|
05adedc |
|
|
|
26477d1 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2016.2.1-2
|
|
|
26477d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
26477d1 |
|
|
Igor Gnatenko |
95988e3 |
* Thu Jan 19 2017 Igor Gnatenko <ignatenko@redhat.com> - 2016.2.1-1
|
|
Igor Gnatenko |
95988e3 |
- Upate to 2016.2.1
|
|
Igor Gnatenko |
95988e3 |
|
|
|
f24472a |
* Tue Jan 17 2017 Than Ngo <than@redhat.com> - 2016.1-6
|
|
|
f24472a |
- fix the conditionalize tests support
|
|
|
d3d7f73 |
- switching to gnu++11 to fix the build failure on ppc64le
|
|
|
f24472a |
|
|
|
bb9e695 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2016.1-5
|
|
|
bb9e695 |
- Rebuild for Python 3.6
|
|
|
bb9e695 |
|
|
|
863a90a |
* Wed Aug 31 2016 Igor Gnatenko <ignatenko@redhat.com> - 2016.1-4
|
|
|
863a90a |
- Update to 2016.1
|
|
|
863a90a |
- Cleanups in packaging
|
|
|
863a90a |
|
|
|
1377aba |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2015.2-4
|
|
|
1377aba |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
1377aba |
|
|
|
f9e3b9e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2015.2-3
|
|
|
f9e3b9e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
f9e3b9e |
|
|
|
b5db207 |
* Sun Nov 15 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2015.2-2
|
|
|
b5db207 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
b5db207 |
|
|
|
7dda42c |
* Thu Nov 05 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2015.2-1
|
|
|
7dda42c |
- Update to 2015.2
|
|
|
7dda42c |
- Add some description to bundled libs providing
|
|
|
7dda42c |
- Provide exact version of bundled cephes
|
|
|
7dda42c |
- Force tests passed
|
|
|
7dda42c |
- Fixed dependencies list
|
|
|
7dda42c |
|
|
|
7dda42c |
* Wed Nov 04 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2015.1-4
|
|
|
7dda42c |
- Fixed license tag
|
|
|
7dda42c |
- Run tests
|
|
|
7dda42c |
- Add license
|
|
|
7dda42c |
|
|
|
7dda42c |
* Sat Oct 24 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2015.1-3
|
|
|
7dda42c |
- Fix errors during review
|
|
|
7dda42c |
|
|
|
7dda42c |
* Sat Oct 24 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2015.1-2
|
|
|
7dda42c |
- Trivial fixes in spec
|
|
|
7dda42c |
|
|
|
7dda42c |
* Fri May 08 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2015.1-1
|
|
|
7dda42c |
- Initial package
|