From b1db52e62be1a700517308877b08dbf8c5d9e1eb Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 12 Jun 2009 17:31:39 +0200 Subject: Make use of setup_common::get_version() in python-dmidecode.spec as well Now you only need to change the src/version.h to set the correct version numbers. The utils/set_version script will still help you remember the important steps and make sure you don't do the wrong things. --- contrib/python-dmidecode.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'contrib/python-dmidecode.spec') diff --git a/contrib/python-dmidecode.spec b/contrib/python-dmidecode.spec index 791fc9d..e8740fb 100644 --- a/contrib/python-dmidecode.spec +++ b/contrib/python-dmidecode.spec @@ -1,9 +1,10 @@ %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")} +%(!?dmidec_ver: %define dmidec_ver %(cd src ; %{__python} -c "from setup_common import *; print get_version();")) Summary: python extension module to access DMI data Name: python-dmidecode -Version: 3.10.6 +Version: %{dmidec_ver} Release: 1 License: GPLv2 Group: System Environment/Libraries @@ -44,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT /usr/share/python-dmidecode/pymap.xml %changelog +* Fri Jun 12 2009 David Sommerseth - 3.10.6-1 +- Use python setup_common::get_version() function to get the version number + * Wed Jun 10 2009 David Sommerseth - 3.10.6-1 - Updated to work with the new XML based python-dmidecode -- cgit