[python-confparser/f14] updated spec to fix EPEL5 compilation

Douglas Schilling Landgraf dougsland at fedoraproject.org
Sat Jul 30 02:33:11 UTC 2011


commit da69f15cb6e29d481cd8b567fdf6bdfa252ab251
Author: Douglas Schilling Landgraf <dougsland at redhat.com>
Date:   Fri Jul 29 23:56:52 2011 -0300

    updated spec to fix EPEL5 compilation

 python-confparser.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/python-confparser.spec b/python-confparser.spec
index 475d934..6953be2 100644
--- a/python-confparser.spec
+++ b/python-confparser.spec
@@ -2,7 +2,7 @@
 
 Name:           python-confparser
 Version:        1.0.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        A KISS python module to parse *nix config files
 
 Group:          Development/Libraries
@@ -12,7 +12,11 @@ Source0:        https://github.com/dougsland/python-confparser/raw/master/%{name
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
+%if (0%{?fedora} > 12 || 0%{?rhel} > 5)
 BuildRequires: python-devel, python-setuptools-devel
+%else
+BuildRequires: python-devel, python-setuptools
+%endif
 
 %description
 Parser for *nix config files
@@ -35,9 +39,14 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-,root,root,-)
 %doc README COPYING
 %{python_sitelib}/confparser.py*
+%if (0%{?fedora} > 12 || 0%{?rhel} > 5)
 %{python_sitelib}/*.egg-info
+%endif
 
 %changelog
+* Wed Jul 27 2011 Douglas Schilling Landgraf <dougsland at redhat.com> 1.0.0-4
+- Fixed EPEL5 compilation
+
 * Wed Jul 27 2011 Douglas Schilling Landgraf <dougsland at redhat.com> 1.0.0-3
 - Renamed project/module name to python-confparser
 - Fixed the BuildArch space


More information about the scm-commits mailing list