[packages/python-ltc_scrypt] Killed fragment part in Source0 url.

matkor matkor at pld-linux.org
Mon Sep 11 10:15:37 CEST 2017


commit 69dfd2cf16398249fbf2c48e04cd1951719be325
Author: Mateusz Korniak <matkor at pld-linux.org>
Date:   Mon Sep 11 10:15:26 2017 +0200

    Killed fragment part in Source0 url.

 python-ltc_scrypt.spec | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/python-ltc_scrypt.spec b/python-ltc_scrypt.spec
index a7a6dc2..b5f5c6b 100644
--- a/python-ltc_scrypt.spec
+++ b/python-ltc_scrypt.spec
@@ -5,16 +5,16 @@
 %bcond_with	python3 # CPython 3.x module
 
 %define 	module	ltc_scrypt
+%define		egg_name	ltc_scrypt
+%define		pypi_name	ltc-scrypt
 Summary:	Bindings for scrypt proof of work used by Litecoin
 # Summary(pl.UTF-8):	
-# Name must match the python module/package name (as on pypi or in 'import' statement)
 Name:		python-%{module}
 Version:	1.0
 Release:	1
 License:	Unknown
 Group:		Libraries/Python
-# Source0:	https://pypi.python.org/packages/source/M/MODULE/%{module}-%{version}.tar.gz
-Source0:	https://pypi.python.org/packages/6e/5b/22f4434692439ff895a46c60a222cce995f1e52566bee0f4a64714c96f2b/ltc_scrypt-1.0.tar.gz#md5=7d019c3c98f16eb466a272e518ffb014
+Source0:	https://pypi.python.org/packages/6e/5b/22f4434692439ff895a46c60a222cce995f1e52566bee0f4a64714c96f2b/ltc_scrypt-1.0.tar.gz
 # Source0-md5:	7d019c3c98f16eb466a272e518ffb014
 URL:		https://pypi.python.org/pypi/ltc_scrypt
 BuildRequires:	rpm-pythonprov
@@ -92,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/%{module}.so
-%{py_sitedir}/%{module}-%{version}-py*.egg-info
+%{py_sitedir}/%{egg_name}-%{version}-py*.egg-info
 %endif
 
 %if %{with python3}
@@ -103,7 +103,7 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitedir}/%{module}/*.py
 %attr(755,root,root) %{py3_sitedir}/%{module}/*.so
 %{py3_sitedir}/%{module}/__pycache__
-%{py3_sitedir}/%{module}-%{version}-py*.egg-info
+%{py3_sitedir}/%{egg_name}-%{version}-py*.egg-info
 %endif
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ltc_scrypt.git/commitdiff/69dfd2cf16398249fbf2c48e04cd1951719be325



More information about the pld-cvs-commit mailing list