forked from pool/python-ldap
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
2dad762569
commit
11d82bee78
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user