#5 Use static package version
Merged 5 years ago by lucasagomes. Opened 5 years ago by etingof.
rpms/ etingof/python-pyghmi use-static-version  into  master

file modified
+2 -2
@@ -11,7 +11,7 @@ 

  

  Summary: %{common_summary}

  Name: python-%{sname}

- Version: %{?version:%{version}}%{!?version:%(python setup.py --version)}

+ Version: %{?version:%{version}}%{!?version:1.2.4}

  Release: %{?release:%{release}}%{!?release:2}

  Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz

  License: Apache License, Version 2.0
@@ -142,7 +142,7 @@ 

  

  %files -n python-%{sname}-doc

  %license LICENSE

- %doc doc/build/html README.rst

+ %doc doc/build/html README.md

  

  %changelog

  * Tue Aug 14 2018 Ilya Etingof <etingof@gmail.com> - 1.2.4-2

Figuring out package version by querying source tree at build time does not seem to work on rpm build.

Also fixed README file name.

Pull-Request has been merged by lucasagomes

5 years ago