From 081c91ce309c982683b7d422c854c8c4da16e740 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Wed, 27 Apr 2016 14:11:40 -0400 Subject: [PATCH] fixing the generation of VERSION --- contrib/rpm-release.py | 3 ++- contrib/tldp.spec | 6 +++--- contrib/tldp.spec.in | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/contrib/rpm-release.py b/contrib/rpm-release.py index e896c45..841e302 100644 --- a/contrib/rpm-release.py +++ b/contrib/rpm-release.py @@ -21,7 +21,8 @@ def transform(mapping, text): text = text.replace(tag, replacement) return text -subst = {'@' + VERSION + '@': VERSION} +subst = {'@VERSION@': VERSION} +print(subst) fout.write(transform(subst, fin.read())) diff --git a/contrib/tldp.spec b/contrib/tldp.spec index 0e9382f..f3b5138 100644 --- a/contrib/tldp.spec +++ b/contrib/tldp.spec @@ -1,8 +1,8 @@ %define sourcename tldp %define name python-tldp -%define version @@VERSION@@ -%define unmangled_version @@VERSION@@ -%define unmangled_version @@VERSION@@ +%define version 0.7.9 +%define unmangled_version 0.7.9 +%define unmangled_version 0.7.9 %define release 1 Summary: automatic publishing tool for DocBook, Linuxdoc and Asciidoc diff --git a/contrib/tldp.spec.in b/contrib/tldp.spec.in index 0e9382f..99506f5 100644 --- a/contrib/tldp.spec.in +++ b/contrib/tldp.spec.in @@ -1,8 +1,8 @@ %define sourcename tldp %define name python-tldp -%define version @@VERSION@@ -%define unmangled_version @@VERSION@@ -%define unmangled_version @@VERSION@@ +%define version @VERSION@ +%define unmangled_version @VERSION@ +%define unmangled_version @VERSION@ %define release 1 Summary: automatic publishing tool for DocBook, Linuxdoc and Asciidoc