mirror of https://github.com/tLDP/python-tldp
fixing the generation of VERSION
This commit is contained in:
parent
0bea124838
commit
081c91ce30
|
@ -21,7 +21,8 @@ def transform(mapping, text):
|
||||||
text = text.replace(tag, replacement)
|
text = text.replace(tag, replacement)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
subst = {'@' + VERSION + '@': VERSION}
|
subst = {'@VERSION@': VERSION}
|
||||||
|
print(subst)
|
||||||
|
|
||||||
fout.write(transform(subst, fin.read()))
|
fout.write(transform(subst, fin.read()))
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
%define sourcename tldp
|
%define sourcename tldp
|
||||||
%define name python-tldp
|
%define name python-tldp
|
||||||
%define version @@VERSION@@
|
%define version 0.7.9
|
||||||
%define unmangled_version @@VERSION@@
|
%define unmangled_version 0.7.9
|
||||||
%define unmangled_version @@VERSION@@
|
%define unmangled_version 0.7.9
|
||||||
%define release 1
|
%define release 1
|
||||||
|
|
||||||
Summary: automatic publishing tool for DocBook, Linuxdoc and Asciidoc
|
Summary: automatic publishing tool for DocBook, Linuxdoc and Asciidoc
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
%define sourcename tldp
|
%define sourcename tldp
|
||||||
%define name python-tldp
|
%define name python-tldp
|
||||||
%define version @@VERSION@@
|
%define version @VERSION@
|
||||||
%define unmangled_version @@VERSION@@
|
%define unmangled_version @VERSION@
|
||||||
%define unmangled_version @@VERSION@@
|
%define unmangled_version @VERSION@
|
||||||
%define release 1
|
%define release 1
|
||||||
|
|
||||||
Summary: automatic publishing tool for DocBook, Linuxdoc and Asciidoc
|
Summary: automatic publishing tool for DocBook, Linuxdoc and Asciidoc
|
||||||
|
|
Loading…
Reference in New Issue