diff --git a/Makefile b/Makefile index 51cd509..a3818e4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Package details PACKAGE_NAME := pgmon -VERSION := 1.0 +VERSION := 1.0.1 SCRIPT := src/$(PACKAGE_NAME).py @@ -158,7 +158,7 @@ actually-package-debian-%: # RedHat package creation actually-package-rockylinux-%: mkdir -p /output/rockylinux-$*/{BUILD,RPMS,SOURCES,SPECS,SRPMS} - cp RPM/$(PACKAGE_NAME).spec /output/rockylinux-$*/SPECS/ + sed -e "s/@@VERSION@@/$(VERSION)/g" RPM/$(PACKAGE_NAME).spec > /output/rockylinux-$*/SPECS/$(PACKAGE_NAME).spec rpmbuild --define '_topdir /output/rockylinux-$*' \ --define 'version $(VERSION)' \ -bb /output/rockylinux-$*/SPECS/$(PACKAGE_NAME).spec @@ -173,7 +173,7 @@ actually-package-ubuntu-%: # OracleLinux package creation actually-package-oraclelinux-%: mkdir -p /output/oraclelinux-$*/{BUILD,RPMS,SOURCES,SPECS,SRPMS} - cp RPM/$(PACKAGE_NAME)-el7.spec /output/oraclelinux-$*/SPECS/$(PACKAGE_NAME).spec + sed -e "s/@@VERSION@@/$(VERSION)/g" RPM/$(PACKAGE_NAME)-el7.spec > /output/oraclelinux-$*/SPECS/$(PACKAGE_NAME).spec rpmbuild --define '_topdir /output/oraclelinux-$*' \ --define 'version $(VERSION)' \ -bb /output/oraclelinux-$*/SPECS/$(PACKAGE_NAME).spec diff --git a/RPM/pgmon-el7.spec b/RPM/pgmon-el7.spec index d7e695d..199a57b 100644 --- a/RPM/pgmon-el7.spec +++ b/RPM/pgmon-el7.spec @@ -1,5 +1,5 @@ Name: pgmon -Version: 1.0 +Version: @@VERSION@@ Release: 1%{?dist} Summary: A bridge to sit between monitoring tools and PostgreSQL diff --git a/RPM/pgmon.spec b/RPM/pgmon.spec index 9f2bf31..6bf1c5f 100644 --- a/RPM/pgmon.spec +++ b/RPM/pgmon.spec @@ -1,5 +1,5 @@ Name: pgmon -Version: 1.0 +Version: @@VERSION@@ Release: 1%{?dist} Summary: A bridge to sit between monitoring tools and PostgreSQL