summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Landau <alex.landau@xorcom.com>2008-12-07 15:44:07 +0000
committerAlex Landau <alex.landau@xorcom.com>2008-12-07 15:44:07 +0000
commit817f3069a8eb684675d266d4b95aa0bb1a4de9ff (patch)
tree24873d2e40c904faf1f579117fb711acd1471719 /Makefile
parent4b6f3a17dc619141628161b927efd9689f15fc22 (diff)
rapid-tunneling:
- Added RPM Spec and a Makefile. - Running "make" creates an RPM and an SRPM. git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@6423 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1a1fdef
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+PACKAGE = rapid-tunneling
+SPEC = rapid-tunneling.spec
+
+SOURCES = rapid-tunneling
+
+VER = $(shell awk '/^Version: / {print $$2}' $(SPEC)| head -n 1)
+REL = $(shell awk '/^Release: / {print $$2}' $(SPEC)| head -n 1)
+
+all: rpm
+
+rpm: $(SPEC) SOURCES/$(PACKAGE)-$(VER).tar.gz
+ mkdir -p BUILD RPMS SOURCES SRPMS
+ [ -e SPECS ] || ln -s . SPECS
+ cd SPECS; rpmbuild --target noarch --define "_topdir $(PWD)" -ba $(SPEC)
+
+SOURCES/$(PACKAGE)-%.tar.gz: $(SOURCES)
+ tar czf $@ --transform 's|^|$(PACKAGE)-$(VER)/|' $^