1 ## Written 2006 by Martin Bartosch for the OpenXPKI project
2 ## Copyright (C) 2005-2006 by The OpenXPKI Project
5 OPENXPKI_SVN
=..
/..
/..
/..
7 PACKAGE
=perl-openxpki-client-scep
8 SRCBASE
=$(OPENXPKI_SVN
)/trunk
/clients
/perl
/OpenXPKI-Client-SCEP
9 SRCNAME
=OpenXPKI-Client-SCEP
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)"
20 #include ../Makefile.package
22 all: clean perl-dist package collect
34 mv
*.
tar.gz
$(RPMBASE
)/SOURCES \
37 $(PACKAGE
).spec
: $(PACKAGE
).spec.in
38 sed
-e
's/_VERSION_/$(VERSION)/g' <$< | sed
-e
's+_PERL_+$(PERL)+g' | sed
-e
's+_MAKEPL_ARGS_+$(PERL_MAKEPL_ARGS)+g' >$@
40 package
: $(PACKAGE
).spec
41 rpmbuild
-ba
$(PACKAGE
).spec
44 mv
$(RPMBASE
)/SRPMS
/$(PACKAGE
)-*.rpm .
45 mv
$(RPMBASE
)/RPMS
/*/$(PACKAGE
)-*.rpm .
48 rm -f
$(PACKAGE
)-*.rpm
$(PACKAGE
).spec