[packages/python-pyopencl] use reusable source url

glen glen at pld-linux.org
Fri Sep 14 14:51:01 CEST 2018


commit 617f4758eadace5450e9770a9168596523eee26a
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Sep 14 15:50:49 2018 +0300

    use reusable source url

 python-pyopencl.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/python-pyopencl.spec b/python-pyopencl.spec
index b44ac37..3c22267 100644
--- a/python-pyopencl.spec
+++ b/python-pyopencl.spec
@@ -10,6 +10,7 @@
 %if %{without python2}
 %undefine	with_doc
 %endif
+%define		pypi_name	pyopencl
 Summary:	Python 2 wrapper for OpenCL
 Summary(pl.UTF-8):	Interfejs Pythona 2 do OpenCL
 Name:		python-pyopencl
@@ -18,7 +19,7 @@ Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/pyopencl/
-Source0:	https://files.pythonhosted.org/packages/d3/66/080ee1a9cc3f71f7491c7e3261b767c788be2aea0d694017cd25aa762b0e/pyopencl-%{version}.tar.gz
+Source0:	https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 # Source0-md5:	4a834f4e0e60016c216b3d039a2952ee
 URL:		http://mathema.tician.de/software/pyopencl
 BuildRequires:	OpenCL-devel >= 1.2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyopencl.git/commitdiff/617f4758eadace5450e9770a9168596523eee26a



More information about the pld-cvs-commit mailing list