!28 优化二进制打包方式以供6.1内核编译用

From: @markeryang 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2023-01-12 01:48:00 +00:00 committed by Gitee
commit 04c2d1efa2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -8,7 +8,7 @@ to use, what-you-see-is-what-you-get plaintext markup language.
Name: python-docutils
Version: 0.17.1
Release: 1
Release: 2
Summary: Documentation Utilities Written in Python, for General- and Special-Purpose Use
License: Public Domain and BSD-2-Clause and Python and GPL-3.0-or-later
URL: http://docutils.sourceforge.net
@ -54,17 +54,16 @@ fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
for file in %{buildroot}%{_bindir}/*.py;do
mv $file $(dirname $file)/$(basename $file .py)
done
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
@ -73,6 +72,7 @@ python3 test/alltests.py
%files -n python3-docutils -f filelist.lst
%dir %{python3_sitelib}/*
%{_bindir}/rst*
%files help -f doclist.lst
%{_docdir}/*
@ -80,6 +80,9 @@ python3 test/alltests.py
%license COPYING.txt licenses/*.txt
%changelog
* Thu Jan 12 2023 yanglongkang <yanglongkang@h-partners.com> - 0.17.1-2
- Changing the binary packing mode
* Mon Dec 19 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.17.1-1
- Update package to version 0.17.1