When attempting to build from the latest 1.5-dev18 haproxy.spec file I
receive the following error:
# rpmbuild -bb haproxy.spec
error: line 3: Illegal char '-' in: Version: 1.5-dev18
I have attached a patch which allowed me to properly execute the
rpmbuild. Unfortunately, this requires more static related references in
the file which would need modified with each releasee.
I'm not sure if you'd like to include these modifications at this time
or not. Or, if there is a better way to handle this I'd be happy to do
so in another way.
Clay
--- haproxy.spec.orig 2013-05-06 10:19:48.462440897 -0500
+++ haproxy.spec 2013-05-06 10:04:55.340651017 -0500
@@ -5,8 +5,8 @@
License: GPL
Group: System Environment/Daemons
URL: http://haproxy.1wt.eu/
-Source0: http://haproxy.1wt.eu/download/1.5/src/devel/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+Source0: http://haproxy.1wt.eu/download/1.5/src/devel/%{name}-1.5-dev18.tar.gz
+BuildRoot: %{_tmppath}/%{name}-1.5dev18
BuildRequires: pcre-devel
Requires: /sbin/chkconfig, /sbin/service
@@ -27,7 +27,7 @@
risking the system's stability.
%prep
-%setup -q
+%setup -q -n %{name}-1.5-dev18
# We don't want any perl dependecies in this RPM:
%define __perl_requires /bin/true