Compare commits

..

No commits in common. "be5e1f3763a2affc1f3e2c8bdd3911f42164d0df" and "63a9209658f5ca61908565e52d641c68a8679e49" have entirely different histories.

3 changed files with 10 additions and 34 deletions

BIN
docutils-0.19.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -7,12 +7,12 @@ open-document or XML. It includes reStructuredText, the easy to read, easy\
to use, what-you-see-is-what-you-get plaintext markup language. to use, what-you-see-is-what-you-get plaintext markup language.
Name: python-docutils Name: python-docutils
Version: 0.20.1 Version: 0.19
Release: 1 Release: 1
Summary: Documentation Utilities Written in Python, for General- and Special-Purpose Use 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 License: Public Domain and BSD-2-Clause and Python and GPL-3.0-or-later
URL: http://docutils.sourceforge.net URL: http://docutils.sourceforge.net
Source0: https://files.pythonhosted.org/packages/1f/53/a5da4f2c5739cf66290fac1431ee52aff6851c7c8ffd8264f13affd7bcdd/docutils-0.20.1.tar.gz Source0: https://files.pythonhosted.org/packages/6b/5c/330ea8d383eb2ce973df34d1239b3b21e91cd8c865d21ff82902d952f91f/%{modname}-0.19.tar.gz
BuildArch: noarch BuildArch: noarch
%description %description
@ -20,15 +20,8 @@ BuildArch: noarch
%package -n python3-docutils %package -n python3-docutils
Summary: Documentation Utilities Written in Python, for General- and Special-Purpose Use Summary: Documentation Utilities Written in Python, for General- and Special-Purpose Use
Requires: python3-lxml
Provides: python-docutils = %{version}-%{release} Provides: python-docutils = %{version}-%{release}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description -n python3-docutils %description -n python3-docutils
%{_description} %{_description}
@ -42,10 +35,10 @@ Provides: python3-docutils-doc
%autosetup -n docutils-%{version} %autosetup -n docutils-%{version}
%build %build
%pyproject_build %py3_build
%install %install
%pyproject_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -61,16 +54,17 @@ fi
if [ -d usr/lib64 ]; then if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi 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 touch doclist.lst
if [ -d usr/share/man ]; then if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi fi
popd popd
for file in %{buildroot}%{_bindir}/*.py;do
mv $file $(dirname $file)/$(basename $file .py)
done
mv %{buildroot}/filelist.lst . mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
@ -79,9 +73,6 @@ python3 test/alltests.py
%files -n python3-docutils -f filelist.lst %files -n python3-docutils -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
%{_bindir}/rst*
%{_bindir}/docutils
%{python3_sitelib}/docutils
%files help -f doclist.lst %files help -f doclist.lst
%{_docdir}/* %{_docdir}/*
@ -89,21 +80,6 @@ python3 test/alltests.py
%license COPYING.txt licenses/*.txt %license COPYING.txt licenses/*.txt
%changelog %changelog
* Fri Sep 1 2023 luluoc <luluoc@isoftstone.com> - 0.20.1-1
- upgrade package to version 0.20.1
* Thu Jul 27 2023 zhuofeng <zhuofeng2@huawei.com> - 0.20-1
- Update package to version 0.20
* Sat Mar 4 2023 yanglongkang <yanglongkang@h-partners.com> - 0.17.1-3
- add requires python3-lxml
* 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
* Mon Dec 05 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.19-1 * Mon Dec 05 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.19-1
- Update package to version 0.19 - Update package to version 0.19