fixing the generation of VERSION

This commit is contained in:
Martin A. Brown 2016-04-27 14:11:40 -04:00
parent 0bea124838
commit 081c91ce30
3 changed files with 8 additions and 7 deletions

View File

@ -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()))

View File

@ -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

View File

@ -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