From d3a969eeb23acdaaf009d87079ec67543c68a8c6 Mon Sep 17 00:00:00 2001 From: markeryang Date: Thu, 12 Jan 2023 09:19:44 +0800 Subject: [PATCH] Changing the binary packing mode --- python-docutils.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/python-docutils.spec b/python-docutils.spec index 1254951..a29d47f 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -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 - 0.17.1-2 +- Changing the binary packing mode + * Mon Dec 19 2022 wangjunqi - 0.17.1-1 - Update package to version 0.17.1