Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/rainbow/nss/Makefile.fedora
diff options
context:
space:
mode:
Diffstat (limited to 'rainbow/nss/Makefile.fedora')
-rw-r--r--rainbow/nss/Makefile.fedora129
1 files changed, 0 insertions, 129 deletions
diff --git a/rainbow/nss/Makefile.fedora b/rainbow/nss/Makefile.fedora
deleted file mode 100644
index 17e38b1..0000000
--- a/rainbow/nss/Makefile.fedora
+++ /dev/null
@@ -1,129 +0,0 @@
-THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
-SHELL = /bin/bash
-
-help: incr-build
- @echo "Welcome to m_stone's Fedora-packaging assistant."
- @echo
- @echo "Interesting targets:"
- @echo
- @echo " snapshot release"
- @echo " snapshot-lint release-lint"
- @echo " snapshot-deploy release-deploy"
- @echo
- @echo "See also:"
- @echo
- @echo " http://dev.laptop.org/git/users/mstone/rpm-packaging"
- @echo
-
-include ./Makefile.package
-
-# Select build id.
-
-SNAPSHOT := $(shell date +%Y%m%d)git$(shell git log | head -n1 | awk '{print substr($$2,0,6)}')
-BUILDNO := $(shell if [ -f "build-no" ]; then cat build-no; else echo 1; fi)
-OLDBUILDNO := $(shell echo '$(BUILDNO) - 1' | bc)
-incr-build:
- @if [ -f "build-no" ]; then echo "1 + `cat build-no`" | bc > build-new && mv build-new build-no; else echo 1 > build-no; fi
-
-ifeq (,$(findstring snapshot,$(MAKECMDGOALS)))
- VERSION=$(COMPLETION)
-else
- VERSION=$(COMPLETION).$(BUILDNO).$(SNAPSHOT)
-endif
-
-NV = $(PKGNAME)-$(VERSION)
-NVR = $(PKGNAME)-$(VERSION)-$(RELEASE)
-
-# Files.
-
-BUILDDIR = $(LOCAL_REPO)/$(NVR)
-SRCDIR = $(BUILDDIR)/$(NV)
-TARBALL = $(BUILDDIR)/$(NV).tar.bz2
-SRPM = $(BUILDDIR)/$(NVR).$(DISTVER).src.rpm
-RPM = $(BUILDDIR)/$(NVR).$(DISTVER).$(ARCH).rpm
-SPEC = $(BUILDDIR)/$(PKGNAME).spec
-
-# Build commands.
-
-RPMBUILD = rpmbuild \
- --define "_sourcedir $(BUILDDIR)" \
- --define "_builddir $(BUILDDIR)" \
- --define "_srcrpmdir $(BUILDDIR)" \
- --define "_rpmdir $(BUILDDIR)" \
- --define "dist .$(DISTVER)" \
- --define "$(DIST) 1" \
-
-MOCK = /usr/bin/mock \
- --define "dist .$(DISTVER)" \
- --define "$(DIST) 1"
-
-RPMLINT = /usr/bin/rpmlint
-
-# Construction Rules
-
-SEDCONF = sed -e s:@TARBALL@:$(TARBALL):g \
- -e s:@RELEASE@:$(RELEASE):g \
- -e s:@VERSION@:$(VERSION):g \
- -e s:@PKGNAME@:$(PKGNAME):g \
- < $< > $@
-
-$(SRCDIR) $(BUILDDIR):
- mkdir -p $@
-
-$(BUILDDIR)/%: %.in $(BUILDDIR)
- $(SEDCONF)
-
-$(SRCDIR)/%: %.in $(SRCDIR)
- $(SEDCONF)
-
-$(SRCDIR)/%: % $(SRCDIR)
- cp -r $< $@
-
-$(TARBALL): $(SRCDIR) $(foreach src,$(SOURCES),$(SRCDIR)/$(src))
- tar cjf $(TARBALL) -C $(BUILDDIR) $(NV)
-
-$(SRPM): $(SPEC) $(TARBALL)
- $(RPMBUILD) --nodeps -bs $(BUILDDIR)/$(PKGNAME).spec
-
-build: $(SRPM)
- $(MOCK) -r $(BUILDROOT) --uniqueext=`whoami` --resultdir=$(BUILDDIR) --rebuild $(SRPM)
-
-# Tags, Signatures, Lint, and Clean
-
-$(TARBALL).asc: $(TARBALL)
- gpg -ab $<
-
-sign: $(TARBALL).asc
-
-.git/refs/tags/$(NV):
- git tag -s -m "$(NV)" $(NV)
-
-tag: .git/refs/tags/$(NV)
-
-commit:
- git commit --allow-empty -a -m "Rainbow $(NV)."
-
-lint:
- @if [ -x $(RPMLINT) ]; then \
- find $(LOCALREPO) -name '*.rpm' -execdir rpmlint {} + ; \
- else \
- echo "** SKIPPING LINT CHECKS ($(RPMLINT) not installed) **" ; \
- fi
-
-clean:
- rm -rf $(LOCAL_REPO)
- mkdir -p $(BUILDDIR)
-
-
-# Snapshot and Release Rules
-
-snapshot-deploy: VERSION=$(COMPLETION).$(OLDBUILDNO).$(SNAPSHOT)
-
-snapshot-lint release-lint: lint
-
-snapshot release: incr-build clean build lint
-
-.PHONY: clean sign tag commit incr-build snapshot release snapshot-deploy release-deploy snapshot-lint release-lint
-
-
-# vim: set noet ts=8 sw=8 :