diff --git a/backport-fix-strip-binary-files.patch b/backport-fix-strip-binary-files.patch new file mode 100644 index 0000000000000000000000000000000000000000..33ce77a5522abab33735bb16416cdd66257d55e4 --- /dev/null +++ b/backport-fix-strip-binary-files.patch @@ -0,0 +1,12 @@ +diff -Naru python-ldap-3.3.1.old/setup.cfg python-ldap-3.3.1/setup.cfg +--- python-ldap-3.3.1.old/setup.cfg 2021-03-20 17:56:03.830392227 +0800 ++++ python-ldap-3.3.1/setup.cfg 2021-03-20 17:58:15.210726418 +0800 +@@ -3,7 +3,7 @@ + + [_ldap] + defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R +-extra_compile_args = ++extra_compile_args = -s + extra_objects = + libs = ldap_r lber + diff --git a/python-ldap.spec b/python-ldap.spec index 5fd5401e873ab5c9973f6a6b78c387a26a731d2d..ae9d06594dac98dfa6e983ed693929eec1e9d1e1 100644 --- a/python-ldap.spec +++ b/python-ldap.spec @@ -1,12 +1,14 @@ %define debug_package %{nil} Name: python-ldap Version: 3.3.1 -Release: 1 +Release: 2 Summary: An object-oriented API to access LDAP directory servers License: Python URL: http://python-ldap.org/ Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz +Patch9000: backport-fix-strip-binary-files.patch + BuildRequires: gcc openldap-devel openssl-devel cyrus-sasl-devel BuildRequires: python3-devel python3-setuptools openldap-servers @@ -56,6 +58,9 @@ sed -i 's,-Werror,-Wignore,g' tox.ini %doc CHANGES README TODO Demo %changelog +* Sat Mar 20 2021 Dehui Fan - 3.3.1-2 +- strip binary files + * Tue Feb 02 2021 xihaochen - 3.3.1-1 - Type:requirements - Id:NA