15
0
forked from pool/python-ldap

Accepting request 656823 from devel:languages:python

- Reduce the runtime dependencies to match the actual needs
  * User can use either openldap or 389-ds or anything else
- Run the tests on the package
- Fix the fdupes call

OBS-URL: https://build.opensuse.org/request/show/656823
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ldap?expand=0&rev=52
This commit is contained in:
2019-01-03 17:06:19 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Dec 10 12:23:48 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Reduce the runtime dependencies to match the actual needs
* User can use either openldap or 389-ds or anything else
- Run the tests on the package
- Fix the fdupes call
-------------------------------------------------------------------
Fri Dec 7 09:18:38 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -26,18 +26,19 @@ Group: Development/Libraries/Python
URL: https://www.python-ldap.org/
Source0: https://files.pythonhosted.org/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pyasn1 >= 0.3.7}
BuildRequires: %{python_module pyasn1-modules >= 0.1.5}
BuildRequires: %{python_module setuptools}
BuildRequires: cyrus-sasl-devel >= 2.1
BuildRequires: fdupes
BuildRequires: krb5-devel
BuildRequires: libopenssl-devel >= 0.9.7
# needed for slapd binary in tests
BuildRequires: openldap2
# needed for ldapadd binary in tests
BuildRequires: openldap2-client
BuildRequires: openldap2-devel >= 2.4.11
BuildRequires: python-rpm-macros
Requires: libldap-2_4-2 >= 2.4.11
Requires: openldap2
Requires: openldap2-client
Requires: python-pyasn1 >= 0.3.7
Requires: python-pyasn1-modules >= 0.1.5
%python_subpackages
@@ -57,7 +58,10 @@ CFLAGS="%{optflags}" %python_build
%install
%python_install
%fdupes %{buildroot}/%{_libdir}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_exec setup.py test
%files %{python_files}
%license LICENCE