aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Makefile.am')
-rw-r--r--trunk/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/trunk/Makefile.am b/trunk/Makefile.am
index 5ed1b623..0bf354d0 100644
--- a/trunk/Makefile.am
+++ b/trunk/Makefile.am
@@ -52,3 +52,11 @@ gpgmeplug =
endif
SUBDIRS = ${assuan} jnlib gpgme ${tests} doc ${bonobo} ${complus} ${gpgmeplug}
+
+# Fix the version of the spec file and create a file named VERSION
+# to be used for patch's Prereq: feature.
+dist-hook:
+ @set -e; \
+ sed -e 's/@pkg_version@/$(VERSION)/g' \
+ $(top_srcdir)/gpgme.spec.in > $(distdir)/gpgme.spec
+ echo "$(VERSION)" > $(distdir)/VERSION