2022-06-30 11:50:10 +00:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2019-12-17 11:34:08 +08:00
|
|
|
%global modname docutils
|
|
|
|
|
%global _description \
|
|
|
|
|
Docutils is an open-source text processing system for processing plaintext\
|
|
|
|
|
documentation into useful formats, such as HTML, LaTeX, man-pages,\
|
|
|
|
|
open-document or XML. It includes reStructuredText, the easy to read, easy\
|
|
|
|
|
to use, what-you-see-is-what-you-get plaintext markup language.
|
|
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
Name: python-docutils
|
2023-07-27 20:30:54 +08:00
|
|
|
Version: 0.20
|
|
|
|
|
Release: 1
|
2022-06-30 11:50:10 +00:00
|
|
|
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
|
2023-07-27 20:30:54 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/e6/a9/8ddfaa7a9414e42520e0041d1354ebda699e4eb1b47e2f1b6d8bda66aba6/docutils-0.20.tar.gz
|
2022-06-30 11:50:10 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2019-12-17 11:34:08 +08:00
|
|
|
%description
|
|
|
|
|
%{_description}
|
|
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
%package -n python3-docutils
|
|
|
|
|
Summary: Documentation Utilities Written in Python, for General- and Special-Purpose Use
|
2023-03-04 10:55:28 +08:00
|
|
|
Requires: python3-lxml
|
2022-06-30 11:50:10 +00:00
|
|
|
Provides: python-docutils = %{version}-%{release}
|
|
|
|
|
BuildRequires: python3-devel
|
2023-07-27 20:30:54 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
BuildRequires: python3-hatchling
|
|
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
%description -n python3-docutils
|
2019-12-17 11:34:08 +08:00
|
|
|
%{_description}
|
|
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
%package help
|
|
|
|
|
Summary: Development documents and examples for docutils
|
|
|
|
|
Provides: python3-docutils-doc
|
|
|
|
|
%description help
|
|
|
|
|
%{_description}
|
2019-12-17 11:34:08 +08:00
|
|
|
|
|
|
|
|
%prep
|
2022-06-30 11:50:10 +00:00
|
|
|
%autosetup -n docutils-%{version}
|
2019-12-17 11:34:08 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-07-27 20:30:54 +08:00
|
|
|
%pyproject_build
|
2019-12-17 11:34:08 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-07-27 20:30:54 +08:00
|
|
|
%pyproject_install
|
2022-06-30 11:50:10 +00:00
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
if [ -d usr/lib ]; then
|
|
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
|
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
|
|
|
fi
|
2023-01-12 09:19:44 +08:00
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
|
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
|
|
|
fi
|
2019-12-17 11:34:08 +08:00
|
|
|
popd
|
2023-01-12 09:19:44 +08:00
|
|
|
for file in %{buildroot}%{_bindir}/*.py;do
|
|
|
|
|
mv $file $(dirname $file)/$(basename $file .py)
|
|
|
|
|
done
|
|
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
2019-12-17 11:34:08 +08:00
|
|
|
|
|
|
|
|
%check
|
2020-07-29 18:31:11 +08:00
|
|
|
python3 test/alltests.py
|
2019-12-17 11:34:08 +08:00
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
%files -n python3-docutils -f filelist.lst
|
|
|
|
|
%dir %{python3_sitelib}/*
|
2023-01-12 09:19:44 +08:00
|
|
|
%{_bindir}/rst*
|
2023-07-27 20:30:54 +08:00
|
|
|
%{_bindir}/docutils
|
|
|
|
|
%{python3_sitelib}/docutils
|
2019-12-17 11:34:08 +08:00
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
%doc BUGS.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt tools/editors
|
2019-12-17 11:34:08 +08:00
|
|
|
%license COPYING.txt licenses/*.txt
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-27 20:30:54 +08:00
|
|
|
* Thu Jul 27 2023 zhuofeng <zhuofeng2@huawei.com> - 0.20-1
|
|
|
|
|
- Update package to version 0.20
|
|
|
|
|
|
2023-03-04 10:55:28 +08:00
|
|
|
* Sat Mar 4 2023 yanglongkang <yanglongkang@h-partners.com> - 0.17.1-3
|
|
|
|
|
- add requires python3-lxml
|
|
|
|
|
|
2023-01-12 09:19:44 +08:00
|
|
|
* Thu Jan 12 2023 yanglongkang <yanglongkang@h-partners.com> - 0.17.1-2
|
|
|
|
|
- Changing the binary packing mode
|
|
|
|
|
|
2022-12-19 11:03:05 +08:00
|
|
|
* Mon Dec 19 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.17.1-1
|
|
|
|
|
- Update package to version 0.17.1
|
|
|
|
|
|
2022-06-30 11:50:10 +00:00
|
|
|
* Mon Dec 05 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.19-1
|
|
|
|
|
- Update package to version 0.19
|
|
|
|
|
|
2022-05-10 17:32:55 +08:00
|
|
|
* Mon May 9 2022 baizhonggui <baizhonggui@h-partners.com> - 0.17.1-2
|
|
|
|
|
- modify license identifier
|
|
|
|
|
|
2022-01-12 16:31:13 +08:00
|
|
|
* Wed Jan 12 2022 shixuantong <shixuantong@huawei.com> - 0.17.1-1
|
|
|
|
|
- update version to 0.17.1
|
|
|
|
|
|
2020-09-11 11:54:17 +08:00
|
|
|
* Mon Nov 2 2020 wangjie<wangjie294@huawei.com> -0.16-5
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove python2
|
|
|
|
|
|
2020-09-10 18:01:37 +08:00
|
|
|
* Thu Sep 10 2020 wangxiao <wangxiao65@huawei.com> - 0.16-4
|
|
|
|
|
- fix rst2odt_prepstyles error
|
|
|
|
|
|
2020-08-03 18:39:28 +08:00
|
|
|
* Mon Aug 3 2020 wutao <wutao61@huawei.com> - 0.16-3
|
|
|
|
|
- fix test error problem
|
|
|
|
|
|
2020-07-29 18:31:11 +08:00
|
|
|
* Wed Jul 29 2020 dingyue <dingyue5@huawei.com> - 0.16-2
|
|
|
|
|
- Fix 0.16-1 for error
|
|
|
|
|
|
2020-07-24 15:04:58 +08:00
|
|
|
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 0.16-1
|
|
|
|
|
- NA
|
|
|
|
|
|
2020-06-24 17:29:04 +08:00
|
|
|
* Wed Jun 24 2020 wangyue <wangyue92@huawei.com> - 0.14-8
|
|
|
|
|
- Fix python3.8 complied failed
|
|
|
|
|
|
2020-01-10 14:15:44 +08:00
|
|
|
* Fri Jan 10 2020 qinjian <qinjian18@huawei.com> - 0.14-7
|
|
|
|
|
- Update Source0
|
|
|
|
|
|
2019-12-17 11:34:08 +08:00
|
|
|
* Tue Dec 10 2019 mengxian <mengxian@huawei.com> - 0.14-6
|
|
|
|
|
- Package init
|