From 2dad762569569e03e7bf28db44da8dd0fd400397d81d202354ca95a537caa390 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 16 Mar 2012 13:25:48 +0000 Subject: [PATCH 1/2] Accepting request 109646 from home:stroeder:branches:devel:languages:python Changes since 2.4.3: - Fixes for ReconnectLDAPObject - More improvements for various LDAPv3 controls - Fixed memory leaks - Fixed locking issue in LDAPObject - new experimental(!) sub-module ldap.syncrepl - some updates to docs OBS-URL: https://build.opensuse.org/request/show/109646 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=16 --- _service | 3 +++ _service:download_files:python-ldap-2.4.9.tar.gz | 3 +++ python-ldap-2.4.3.tar.gz | 3 --- python-ldap.spec | 8 ++++---- 4 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 _service create mode 100644 _service:download_files:python-ldap-2.4.9.tar.gz delete mode 100644 python-ldap-2.4.3.tar.gz diff --git a/_service b/_service new file mode 100644 index 0000000..76828d7 --- /dev/null +++ b/_service @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/_service:download_files:python-ldap-2.4.9.tar.gz b/_service:download_files:python-ldap-2.4.9.tar.gz new file mode 100644 index 0000000..298eef0 --- /dev/null +++ b/_service:download_files:python-ldap-2.4.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:247c29f30faf016f0d1dbe702a5026a4633dfa9b8b90c7ef46de68a58424ee8b +size 133453 diff --git a/python-ldap-2.4.3.tar.gz b/python-ldap-2.4.3.tar.gz deleted file mode 100644 index 1fa6f8d..0000000 --- a/python-ldap-2.4.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88fb00ed5811e3df49d0f28317a48be2ae7e46252e473923005c7eb292d25e9d -size 125989 diff --git a/python-ldap.spec b/python-ldap.spec index 2ee4d06..37ed59f 100644 --- a/python-ldap.spec +++ b/python-ldap.spec @@ -19,12 +19,12 @@ Name: python-ldap -BuildRequires: fdupes krb5-devel openldap2-devel >= 2.4.11 python-devel -Requires: openldap2-client >= 2.4.11 -License: Public Domain, Freeware +BuildRequires: fdupes krb5-devel cyrus-sasl-devel openldap2-devel >= 2.4.11 python-devel +Requires: libldap-2_4-2 >= 2.4.11 +License: SUSE-Public-Domain Group: Development/Libraries/Python AutoReqProv: on -Version: 2.4.3 +Version: 2.4.9 Release: 1 Summary: Python LDAP interface Url: http://www.python-ldap.org/ From 11d82bee78c315053a0e5ca0713d49f12146f4a713eeb72e022dd15a9c30a5b7 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 16 Mar 2012 14:35:11 +0000 Subject: [PATCH 2/2] - Remove service - Spec file cleanup: * Remove outdated sections * Proper macro usage OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=17 --- _service | 3 -- ...p-2.4.9.tar.gz => python-ldap-2.4.9.tar.gz | 0 python-ldap.changes | 8 ++++ python-ldap.spec | 38 +++++++++---------- 4 files changed, 27 insertions(+), 22 deletions(-) delete mode 100644 _service rename _service:download_files:python-ldap-2.4.9.tar.gz => python-ldap-2.4.9.tar.gz (100%) diff --git a/_service b/_service deleted file mode 100644 index 76828d7..0000000 --- a/_service +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/_service:download_files:python-ldap-2.4.9.tar.gz b/python-ldap-2.4.9.tar.gz similarity index 100% rename from _service:download_files:python-ldap-2.4.9.tar.gz rename to python-ldap-2.4.9.tar.gz diff --git a/python-ldap.changes b/python-ldap.changes index e5e324e..1129435 100644 --- a/python-ldap.changes +++ b/python-ldap.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Mar 16 14:34:59 UTC 2012 - saschpe@suse.de + +- Remove service +- Spec file cleanup: + * Remove outdated sections + * Proper macro usage + ------------------------------------------------------------------- Tue Oct 11 12:45:02 UTC 2011 - jmatejek@suse.com diff --git a/python-ldap.spec b/python-ldap.spec index 37ed59f..820f724 100644 --- a/python-ldap.spec +++ b/python-ldap.spec @@ -1,7 +1,7 @@ # # spec file for package python-ldap # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,22 +15,25 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: python-ldap -BuildRequires: fdupes krb5-devel cyrus-sasl-devel openldap2-devel >= 2.4.11 python-devel -Requires: libldap-2_4-2 >= 2.4.11 +Version: 2.4.9 +Release: 0 +Summary: Python LDAP interface License: SUSE-Public-Domain Group: Development/Libraries/Python -AutoReqProv: on -Version: 2.4.9 -Release: 1 -Summary: Python LDAP interface Url: http://www.python-ldap.org/ Source: http://pypi.python.org/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz +BuildRequires: cyrus-sasl-devel +BuildRequires: fdupes +BuildRequires: krb5-devel +BuildRequires: openldap2-devel >= 2.4.11 +BuildRequires: python-devel +Requires: libldap-2_4-2 >= 2.4.11 BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{py_requires} +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif %description python-ldap provides an LDAP client API for Python in the spirit of @@ -39,23 +42,20 @@ LDAP C library, an object-oriented API for X.500 directories. See python-ldap pages on http://python-ldap.sourceforge.net/ %prep -%setup +%setup -q cp Build/setup.cfg.suse-linux setup.cfg find -name ".CVS" -o -name ".cvsignore" -exec rm -rf {} ";" %build -#export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED" -python setup.py build +CFLAGS="%{optflags} -DLDAP_DEPRECATED" python setup.py build %install -python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES -%fdupes $RPM_BUILD_ROOT/%{_libdir} +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes %{buildroot}/%{_libdir} -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f INSTALLED_FILES +%files %defattr(-,root,root) %doc README Demo CHANGES TODO LICENCE +%{python_sitearch}/* %changelog