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
=..
/..
/..
/..
7 PACKAGE
=perl-openxpki-core
8 SRCBASE
=$(OPENXPKI_SVN
)/trunk
/perl-modules
/core
/trunk
11 VERGEN
=$(OPENXPKI_SVN
)/tools
/vergen
12 VERSION
=$(shell $(VERGEN
) --format version
--directory
$(SRCBASE
))
13 PERL
=$(shell which perl
)
16 PERL_MAKEPL_ARGS
="PREFIX=$(PREFIX)"
19 #include ../Makefile.package
21 all: clean perl-dist package collect
33 mv
*.
tar.gz
$(RPMBASE
)/SOURCES \
36 $(PACKAGE
).spec
: $(PACKAGE
).spec.in
37 sed
-e
's/_VERSION_/$(VERSION)/g' <$< | sed
-e
's+_PERL_+$(PERL)+g' | sed
-e
's+_MAKEPL_ARGS_+$(PERL_MAKEPL_ARGS)+g' >$@
39 package
: $(PACKAGE
).spec
40 rpm
-ba
$(PACKAGE
).spec
43 mv
$(RPMBASE
)/SRPMS
/$(PACKAGE
)-*.rpm .
44 mv
$(RPMBASE
)/RPMS
/*/$(PACKAGE
)-*.rpm .
47 rm -f
$(PACKAGE
)-*.rpm
$(PACKAGE
).spec