15
0
forked from pool/python-ldap

Accepting request 109730 from devel:languages:python

- Remove service
- Spec file cleanup:
  * Remove outdated sections
  * Proper macro usage

OBS-URL: https://build.opensuse.org/request/show/109730
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ldap?expand=0&rev=17
This commit is contained in:
Stephan Kulow
2012-03-20 10:33:34 +00:00
committed by Git OBS Bridge
4 changed files with 30 additions and 22 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:88fb00ed5811e3df49d0f28317a48be2ae7e46252e473923005c7eb292d25e9d
size 125989

3
python-ldap-2.4.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:247c29f30faf016f0d1dbe702a5026a4633dfa9b8b90c7ef46de68a58424ee8b
size 133453

View File

@@ -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

View File

@@ -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 openldap2-devel >= 2.4.11 python-devel
Requires: openldap2-client >= 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.3
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