[packages/haproxy] - literal major version in Source0 URL, distfiles cannot expand %(...)

adamg adamg at pld-linux.org
Thu Nov 19 14:47:07 CET 2026


commit a5974f761466892f7938d046de94024584efcb38
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Thu Nov 19 14:47:04 2026 +0100

    - literal major version in Source0 URL, distfiles cannot expand %(...)

 haproxy.spec | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/haproxy.spec b/haproxy.spec
index 81742fc..041c9d2 100644
--- a/haproxy.spec
+++ b/haproxy.spec
@@ -7,7 +7,6 @@
 %bcond_without	pcre		# pcre support
 %bcond_without	ssl		# SSL support
 
-%define main_ver %(echo %{version} | cut -f1-2 -d.)
 
 Summary:	haproxy - high-performance TCP/HTTP load balancer
 Summary(pl.UTF-8):	haproxy - wysoko wydajny load balancer TCP/HTTP
@@ -16,7 +15,7 @@ Version:	3.4.8
 Release:	1
 License:	GPL v2
 Group:		Networking/Daemons
-Source0:	https://www.haproxy.org/download/%{main_ver}/src/%{name}-%{version}.tar.gz
+Source0:	https://www.haproxy.org/download/3.4/src/%{name}-%{version}.tar.gz
 # Source0-md5:	497c3d7dfd41b36978f144f2520e4301
 Source1:	https://github.com/makinacorpus/haproxy-1.5/raw/master/debian/halog.1
 # Source1-md5:	df4631f3cbc59893a2cd5e4364c9e755
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/haproxy.git/commitdiff/a5974f761466892f7938d046de94024584efcb38



More information about the pld-cvs-commit mailing list