RT notifier: parse templates without header correctly
[openxpki.git] / trunk / package / suse / perl-openxpki-client-scep / Makefile
blob55f56f28ac79ca8a025943f91e4be94ec4b534eb
1 ## Written 2006 by Martin Bartosch for the OpenXPKI project
2 ## Copyright (C) 2005-2006 by The OpenXPKI Project
4 RPMBASE=~/rpmbuild
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)
15 ifdef PREFIX
16 PERL_MAKEPL_ARGS="PREFIX=$(PREFIX)"
17 endif
20 #include ../Makefile.package
22 all: clean perl-dist package collect
24 dist-clean:
25 ( cd $(SRCBASE) && \
26 rm -f *.tar.gz \
30 perl-dist: dist-clean
31 ( cd $(SRCBASE) && \
32 perl Makefile.PL && \
33 make dist && \
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
43 collect:
44 mv $(RPMBASE)/SRPMS/$(PACKAGE)-*.rpm .
45 mv $(RPMBASE)/RPMS/*/$(PACKAGE)-*.rpm .
47 clean:
48 rm -f $(PACKAGE)-*.rpm $(PACKAGE).spec