[python-ldap] - Merge-review cleanup (#226343)

paragn paragn at fedoraproject.org
Mon Oct 11 07:30:05 UTC 2010


commit e7f02e74f5ad960f2a4143274a4b6fd9e0ed0a02
Author: paragn <paragn at fedoraproject.org>
Date:   Mon Oct 11 13:05:03 2010 +0530

    - Merge-review cleanup (#226343)

 python-ldap.spec |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/python-ldap.spec b/python-ldap.spec
index 048e564..80998ed 100644
--- a/python-ldap.spec
+++ b/python-ldap.spec
@@ -1,36 +1,36 @@
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
-%define openldap_version 2.1.22
-
 ### Abstract ###
 
 Name: python-ldap
-Version: 2.3.10
-Release: 2%{?dist}
+Version: 2.3.12
+Release: 1%{?dist}
 Epoch: 0
 License: Python
 Group: System Environment/Libraries
 Summary: An object-oriented API to access LDAP directory servers
 URL: http://python-ldap.sourceforge.net/
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Source0: http://pypi.python.org/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz
 
 ### Patches ###
-
+# Fedora specific patch
 Patch0: python-ldap-2.2.0-dirs.patch
 
 ### Dependencies ###
 
-Requires: openldap >= %{openldap_version}
+Requires: openldap 
 
 ### Build Dependencies ###
 
-# the openldap from RHL <= 9 and RHEL <= 3 is too old for python-ldap
-BuildRequires: openldap-devel >= %{openldap_version}
+BuildRequires: openldap-devel
 BuildRequires: openssl-devel
-BuildRequires: python-devel >= 2.2
+BuildRequires: python2-devel 
 BuildRequires: cyrus-sasl-devel
 
+# we don't want to provide private python extension libs
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_setup
+}
+
 %description
 python-ldap provides an object-oriented API for working with LDAP within
 Python programs.  It allows access to LDAP directory servers by wrapping the 
@@ -52,11 +52,8 @@ sed -i 's|#! python|#!/usr/bin/python|g' Demo/simplebrowse.py
 %{__python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
 
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
@@ -69,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/python_ldap-%{version}-*.egg-info/
 
 %changelog
+* Fri Sep 24 2010 Parag Nemade <paragn AT fedoraproject.org> - 0:2.3.12-1
+- Merge-review cleanup (#226343)
+
 * Thu Jul 22 2010 David Malcolm <dmalcolm at redhat.com> - 0:2.3.10-2
 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
 


More information about the scm-commits mailing list