From: Scott Baker Date: Wed, 14 May 2014 00:43:02 +0000 (-0700) Subject: Fix spec file (Matthias' patch), bump version, exlude *.rpm from tar.gz X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=commitdiff_plain;h=c00bbfcc54b06ffaa419ecbd51d480028402330f Fix spec file (Matthias' patch), bump version, exlude *.rpm from tar.gz --- diff --git a/Makefile b/Makefile index 7f36f03..520b53e 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ dist rpm: $(NAME)-$(VERSION)-$(RELEASE).rpm $(NAME)-$(VERSION).tar.gz: mkdir -p $(NAME)-$(VERSION) - rsync -av --exclude=.svn --exclude=.git --exclude=*.tar.gz --exclude=__history --exclude=$(NAME)-$(VERSION)/ ./ $(NAME)-$(VERSION) + rsync -av --exclude=.svn --exclude=.git --exclude=*.tar.gz --exclude=*.rpm --exclude=__history --exclude=$(NAME)-$(VERSION)/ ./ $(NAME)-$(VERSION) tar -czf $@ $(NAME)-$(VERSION) rm -fr $(NAME)-$(VERSION) @@ -40,7 +40,7 @@ ifndef UPLOAD_HOST endif scp $(NAME)-$(VERSION)-$(RELEASE).x86_64.rpm $(UPLOAD_SLICE)@$(UPLOAD_HOST):/root/ ssh $(UPLOAD_SLICE)@$(UPLOAD_HOST) yum -y install gcc graphviz-devel graphviz-python postgresql postgresql-server python-pip python-psycopg2 libxslt-devel python-httplib2 GeoIP - ssh $(UPLOAD_SLICE)@$(UPLOAD_HOST) rpm --install --upgrade --replacepkgs /root/$(NAME)-$(VERSION)-$(RELEASE).x86_64.rpm + ssh $(UPLOAD_SLICE)@$(UPLOAD_HOST) rpm --install --upgrade --replacefiles --replacepkgs /root/$(NAME)-$(VERSION)-$(RELEASE).x86_64.rpm scp /opt/planetstack/hpc_wizard/bigquery_credentials.dat /opt/planetstack/hpc_wizard/client_secrets.json $(UPLOAD_SLICE)@$(UPLOAD_HOST):/opt/planetstack/hpc_wizard/ .PHONY: dist diff --git a/opencloud.spec b/opencloud.spec index 2828bdb..54aa962 100644 --- a/opencloud.spec +++ b/opencloud.spec @@ -1,6 +1,6 @@ Summary: OpenCloud core services Name: opencloud -Version: 1.0.8 +Version: 1.0.10 Release: 1 License: GPL+ Group: Development/Tools @@ -65,7 +65,7 @@ mkdir -p %{buildroot} install -d %{buildroot}/opt/planetstack # in builddir -cp -rp /opt/plstackapi/planetstack %{buildroot}/opt/. +cp -rp ./planetstack %{buildroot}/opt/. find %{buildroot}/opt/planetstack -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" > %{_tmppath}/tmp-filelist