diff --git a/python-ldap.changes b/python-ldap.changes index b0cf475..8dd190d 100644 --- a/python-ldap.changes +++ b/python-ldap.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Dec 10 12:23:48 UTC 2018 - Tomáš Chvátal + +- 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 diff --git a/python-ldap.spec b/python-ldap.spec index 7f531fe..b781832 100644 --- a/python-ldap.spec +++ b/python-ldap.spec @@ -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