Skip to content

Commit

Permalink
Automatically populate main version
Browse files Browse the repository at this point in the history
  • Loading branch information
DBezemer committed Mar 16, 2020
1 parent 3856f62 commit f080758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ build: $(build_stages)
cp -r ./SPECS/* ./rpmbuild/SPECS/ || true
cp -r ./SOURCES/* ./rpmbuild/SOURCES/ || true
rpmbuild -ba SPECS/haproxy.spec \
--define "mainversion ${MAINVERSION}" \
--define "version ${VERSION}" \
--define "release ${RELEASE}" \
--define "_topdir %(pwd)/rpmbuild" \
Expand Down
2 changes: 1 addition & 1 deletion SPECS/haproxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Release: %{release}%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://www.haproxy.org/
Source0: http://www.haproxy.org/download/2.1/src/%{name}-%{version}.tar.gz
Source0: http://www.haproxy.org/download/%{mainversion}/src/%{name}-%{version}.tar.gz
Source1: %{name}.cfg
%if 0%{?el6} || 0%{?amzn1}
Source2: %{name}.init
Expand Down

0 comments on commit f080758

Please sign in to comment.