Looks like certmaster-request and certmaster-ca are working with the new --ca flag.
[certmaster.git] / Makefile
index 91456f2..af1432e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
-VERSION                = 0.2
-RELEASE                = 
+VERSION                = 0.28
+RELEASE                = 1
 PYTHON         = /usr/bin/python
+DIST            = pwan
 
 MESSAGESPOT=po/messages.pot
 
@@ -12,6 +13,12 @@ INITDIR      = init-scripts
 
 all: rpms
 
+versionfile:
+       echo "version:" $(VERSION) > etc/version
+       echo "release:" $(RELEASE) >> etc/version
+       echo "source build date:" $(DATE) >> etc/version
+       echo "git commit:" $(shell git log -n 1 --pretty="format:%H") >> etc/version
+       echo "git date:" $(shell git log -n 1 --pretty="format:%cd") >> etc/version
 
 manpage:
        pod2man --center="certmaster-request" --release="" ./docs/certmaster-request.pod | gzip -c > ./docs/certmaster-request.1.gz
@@ -86,7 +93,9 @@ async: install
 rpms: build manpage sdist
        mkdir -p rpm-build
        cp dist/*.gz rpm-build/
+       echo ${RELEASE}
        rpmbuild --define "_topdir %(pwd)/rpm-build" \
+        --define "dist ${DIST}" \
        --define "_builddir %{_topdir}" \
        --define "_rpmdir %{_topdir}" \
        --define "_srcrpmdir %{_topdir}" \