1 ## Written 2006 by Martin Bartosch for the OpenXPKI project
2 ## Copyright (C) 2005-2006 by The OpenXPKI Project
4 RPMBASE
=/usr
/src
/packages
5 OPENXPKI_SVN
=..
/..
/..
/..
8 SRCBASE
=$(OPENXPKI_SVN
)/trunk
/i18n
11 VERGEN
=$(OPENXPKI_SVN
)/tools
/vergen
12 VERSION
=$(shell $(VERGEN
) --format version
--directory
$(SRCBASE
))
14 default
: clean dist package collect
25 mv
*.
tar.gz
$(RPMBASE
)/SOURCES \
28 $(PACKAGE
).spec
: $(PACKAGE
).spec.in
29 sed
-e
's/_VERSION_/$(VERSION)/g' <$< >$@
31 package
: $(PACKAGE
).spec
32 rpm
-ba
$(PACKAGE
).spec
35 mv
$(RPMBASE
)/SRPMS
/$(PACKAGE
)-*.rpm .
36 mv
$(RPMBASE
)/RPMS
/*/$(PACKAGE
)-*.rpm .
39 rm -f
$(PACKAGE
)-*.rpm
$(PACKAGE
).spec