From c285b8c99fc2fcb0d07dc91f4bed64af2395159b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 23 Sep 2009 09:43:24 +0200 Subject: Fixed .spec file issues after review from the Fedora community Details can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=515230#c1 The comment regarding check against older Python versions is needed to be able to build RPMs on RHEL4 and RHEL5. --- contrib/python-dmidecode.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'contrib/python-dmidecode.spec') diff --git a/contrib/python-dmidecode.spec b/contrib/python-dmidecode.spec index 0d48fc3..c70f37b 100644 --- a/contrib/python-dmidecode.spec +++ b/contrib/python-dmidecode.spec @@ -1,17 +1,15 @@ %{!?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]")} -Summary: python extension module to access DMI data +Summary: Python module to access DMI data Name: python-dmidecode Version: 3.10.6 Release: 6%{?dist} License: GPLv2 Group: System Environment/Libraries -URL: http://projects.autonomy.net.au/dmidecode/ -Source0: %{name}-%{version}.tar.gz +URL: http://projects.autonomy.net.au/python-dmidecode/ +Source0: http://src.autonomy.net.au/python-dmidecode/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -Requires: libxml2 -Requires: libxml2-python BuildRequires: libxml2-python BuildRequires: libxml2-devel BuildRequires: python-devel @@ -37,7 +35,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc +%doc README doc/README.upstream doc/LICENSE doc/AUTHORS doc/AUTHORS.upstream %{python_sitearch}/dmidecodemod.so %{python_sitearch}/dmidecode.py %{python_sitearch}/dmidecode.py[co] -- cgit