[python-confparser/f15] updated spec to compile EPEL5

Douglas Schilling Landgraf dougsland at fedoraproject.org
Sat Jul 30 06:43:05 UTC 2011


commit 5815f003fcf095b0af05139015f79b981fd3a2bf
Author: Douglas Schilling Landgraf <dougsland at redhat.com>
Date:   Sat Jul 30 04:06:53 2011 -0300

    updated spec to compile EPEL5

 python-confparser.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/python-confparser.spec b/python-confparser.spec
index 9435e06..6953be2 100644
--- a/python-confparser.spec
+++ b/python-confparser.spec
@@ -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,10 +39,12 @@ 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
-* Fri Jul 29 2011 Douglas Schilling Landgraf <dougsland at redhat.com> 1.0.0-4
+* 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


More information about the scm-commits mailing list