diff options
Diffstat (limited to 'storage/mroonga/vendor/groonga/packages/yum/Makefile.am')
-rw-r--r-- | storage/mroonga/vendor/groonga/packages/yum/Makefile.am | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/packages/yum/Makefile.am b/storage/mroonga/vendor/groonga/packages/yum/Makefile.am new file mode 100644 index 00000000000..93cf4b8f5b6 --- /dev/null +++ b/storage/mroonga/vendor/groonga/packages/yum/Makefile.am @@ -0,0 +1,82 @@ +REPOSITORIES_PATH = repositories +DISTRIBUTIONS = centos +ARCHITECTURES = i386 x86_64 +BASE_URL_PREFIX = http://packages.groonga.org +HAVE_DEVELOPMENT_BRANCH = no + +release: download build sign-packages update-repository upload + +ensure-rsync-path: + @if test -z "$(RSYNC_PATH)"; then \ + echo "--with-rsync-path configure option must be specified."; \ + false; \ + fi + +sign-packages: + ./sign-rpm.sh '$(GPG_UID)' '$(REPOSITORIES_PATH)/' \ + '$(DISTRIBUTIONS)' + +update-repository: + ./update-repository.sh '$(PACKAGE)' '$(REPOSITORIES_PATH)/' \ + '$(DISTRIBUTIONS)' + +upload: ensure-rsync-path + for distribution in $(DISTRIBUTIONS); do \ + rsync -avz --progress --delete --exclude .gitignore \ + $(REPOSITORIES_PATH)/$${distribution}/ \ + $(RSYNC_PATH)/$${distribution}; \ + done + +download: ensure-rsync-path + mkdir -p $(REPOSITORIES_PATH) + for distribution in $(DISTRIBUTIONS); do \ + rsync -avz --progress --delete \ + $(RSYNC_PATH)/$${distribution}/ \ + $(REPOSITORIES_PATH)/$${distribution}; \ + done + +build: build-in-vm build-release-rpm + +build-in-vm: source specs env.sh + vagrant destroy --force + for architecture in $(ARCHITECTURES); do \ + for version in 5 6 7; do \ + if [ $$version = 7 -a $$architecture = i386 ]; then \ + continue; \ + fi; \ + id=centos-$$version-$$architecture; \ + vagrant up $$id; \ + vagrant destroy --force $$id; \ + done; \ + done + +build-release-rpm: RPM-GPG-KEY-$(PACKAGE) + ./build-release-rpm.sh \ + $(PACKAGE) \ + '$(PACKAGE_TITLE)' \ + $(BASE_URL_PREFIX) \ + $(REPOSITORIES_PATH)/ \ + '$(DISTRIBUTIONS)' \ + $(HAVE_DEVELOPMENT_BRANCH) + +ensure-public-key: + gpg --list-keys '$(GPG_UID)' > /dev/null || \ + gpg --keyserver keyserver.ubuntu.com --recv-key '$(GPG_UID)' + +RPM-GPG-KEY-$(PACKAGE): ensure-public-key + gpg --armor --export '$(GPG_UID)' > $@ + +source: tmp/$(PACKAGE)-$(VERSION).tar.gz + +tmp/$(PACKAGE)-$(VERSION).tar.gz: $(abs_top_builddir)/$(PACKAGE)-$(VERSION).tar.gz + mkdir -p tmp/ + cp $(abs_top_builddir)/$(PACKAGE)-$(VERSION).tar.gz tmp/ + +$(abs_top_builddir)/$(PACKAGE)-$(VERSION).tar.gz: + cd $(abs_top_builddir) && $(MAKE) dist + +specs: tmp/centos/$(PACKAGE).spec + +tmp/centos/$(PACKAGE).spec: $(builddir)/../rpm/centos/$(PACKAGE).spec + mkdir -p tmp/centos + cp $(builddir)/../rpm/centos/$(PACKAGE).spec tmp/centos/ |