!19 modify to generate debug rpms

From: @eaglegai
Reviewed-by: 
Signed-off-by:
This commit is contained in:
openeuler-ci-bot 2021-09-07 08:10:02 +00:00 committed by Gitee
commit faa1aa4942

View File

@ -1,7 +1,6 @@
%define debug_package %{nil}
Name: python-ldap Name: python-ldap
Version: 3.3.1 Version: 3.3.1
Release: 1 Release: 2
Summary: An object-oriented API to access LDAP directory servers Summary: An object-oriented API to access LDAP directory servers
License: Python License: Python
URL: http://python-ldap.org/ URL: http://python-ldap.org/
@ -39,7 +38,7 @@ OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks\
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|' find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
sed -i 's,-Werror,-Wignore,g' tox.ini sed -i 's,-Werror,-Wignore,g' tox.ini
%build %build
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' %py3_build
%install %install
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot %_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
@ -56,6 +55,12 @@ sed -i 's,-Werror,-Wignore,g' tox.ini
%doc CHANGES README TODO Demo %doc CHANGES README TODO Demo
%changelog %changelog
* Mon Sep 06 2021 gaihuiying <gaihuiying1@huawei.com> - 3.3.1-2
- Type:requirements
- Id:NA
- SUG:NA
- DESC:modify to generate debug rpms
* Tue Feb 02 2021 xihaochen <xihaochen@huawei.com> - 3.3.1-1 * Tue Feb 02 2021 xihaochen <xihaochen@huawei.com> - 3.3.1-1
- Type:requirements - Type:requirements
- Id:NA - Id:NA