[python-confparser/el5] Fixed compilation to EPEL5

Douglas Schilling Landgraf dougsland at fedoraproject.org
Sat Jul 30 02:05:58 UTC 2011


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

    Fixed compilation to EPEL5

 python-confparser.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/python-confparser.spec b/python-confparser.spec
index f2f3acd..6953be2 100644
--- a/python-confparser.spec
+++ b/python-confparser.spec
@@ -1,10 +1,8 @@
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%endif
 
 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
@@ -14,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
@@ -37,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