Skip to content

Commit

Permalink
Set RPM version properly
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hoes <[email protected]>
  • Loading branch information
robhoes committed Dec 9, 2016
1 parent 3af7342 commit edb05e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ build: srpm $(PKG_STAMP)
.PHONY: srpm
srpm: $(RPM_SPECSDIR)/$(REPO_NAME).spec
mkdir -p $(RPM_SRPMSDIR) $(RPM_SPECSDIR) $(RPM_SOURCESDIR) $(RPM_RPMSDIR)
cd $(REPO) && git archive --prefix xha-$(PRODUCT_VERSION)/ --format tar.gz --output $(RPM_SOURCESDIR)/xha-$(PRODUCT_VERSION).tar.gz HEAD
cd $(REPO) && git archive --prefix xha-10.0.1/ --format tar.gz --output $(RPM_SOURCESDIR)/xha-10.0.1.tar.gz HEAD
$(RPMBUILD) -bs $(RPM_SPECSDIR)/xha.spec

$(RPM_SPECSDIR)/$(REPO_NAME).spec: $(REPO_NAME).spec.in $(RPM_SPECSDIR)/.dirstamp $(MY_OBJ_DIR)/version.inc
Expand Down
6 changes: 3 additions & 3 deletions mk/xha.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Summary: xha - XenServer HA daemon
Name: xha
Version: @PRODUCT_VERSION@
Release: @CSET_NUMBER@
Version: 10.0.1
Release: 1
Group: System/Hypervisor
License: GPLv2
URL: http://www.citrix.com
Source0: xha-@PRODUCT_VERSION@.tar.gz
Source0: xha-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root

BuildRequires: libxml2-devel
Expand Down

0 comments on commit edb05e8

Please sign in to comment.