diff --git a/VERSION b/VERSION new file mode 100644 index 0000000000000000000000000000000000000000..7e08c5178d4c00dcc62b8268ea120b8a5ef49ba8 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +V1.0 \ No newline at end of file diff --git a/dsms_deploy/Makefile b/dsms_deploy/Makefile index be8609f6d1723c15289967c7cbbd31a5437c8606..112d20989e6f2b051c04be0fa2e9c9b872c62673 100644 --- a/dsms_deploy/Makefile +++ b/dsms_deploy/Makefile @@ -1,6 +1,6 @@ RPM_NAME=dsms-deploy -RPM_VERSION=1.1 -RPM_RELEASE=2.0.0 +RPM_VERSION=V1.0.0 +RPM_RELEASE=V1.0 RPM_ARCH=x86_64 RPM_BUILD_DIR=$(shell pwd)/rpmbuild RPM_SPEC_FILE=$(RPM_BUILD_DIR)/SPECS/$(RPM_NAME).spec @@ -20,6 +20,7 @@ build: clean cp config/add-node.conf $(RPM_BUILD_DIR)/BUILD/$(RPM_NAME)/ cp config/depend_list $(RPM_BUILD_DIR)/BUILD/$(RPM_NAME)/ cp config/whl/* $(RPM_BUILD_DIR)/BUILD/$(RPM_NAME)/ + cp ../VERSION $(RPM_BUILD_DIR)/BUILD/$(RPM_NAME)/ sed -e "s/@RPM_NAME@/$(RPM_NAME)/g" \ -e "s/@RPM_VERSION@/$(RPM_VERSION)/g" \ diff --git a/dsms_deploy/config/dsms-deploy.spec b/dsms_deploy/config/dsms-deploy.spec index 88baa7f461dbda802ea9a17046cfec67b44d73cc..e0077964d613d7d89e7b02c2e9db15b5d40834a6 100644 --- a/dsms_deploy/config/dsms-deploy.spec +++ b/dsms_deploy/config/dsms-deploy.spec @@ -21,6 +21,7 @@ cp dsms-deploy/*.conf %{buildroot}/etc/dsms/dsms-deploy/ cp dsms-deploy/depend_list %{buildroot}/etc/dsms/dsms-deploy/ cp dsms-deploy/dsms-deploy %{buildroot}/etc/dsms/dsms-deploy/ cp dsms-deploy/*.tar.gz %{buildroot}/etc/dsms/dsms-deploy/ +cp dsms-deploy/VERSION %{buildroot}/etc/dsms/ %post