CBL-Mariner/SPECS/python-docutils/python-docutils.spec

137 строки
4.0 KiB
Plaintext

Summary: Docutils -- Python Documentation Utilities.
Name: python-docutils
Version: 0.20.1
Release: 1%{?dist}
License: Public Domain, PSF-2.0, BSD, GPLv3
Vendor: Microsoft Corporation
Distribution: Azure Linux
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/docutils
Source0: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz
BuildArch: noarch
%description
Docutils -- Python Documentation Utilities.
%package -n python3-docutils
Summary: Docutils -- Python Documentation Utilities.
BuildRequires: python3-devel
BuildRequires: python3-xml
Requires: python3
%description -n python3-docutils
Docutils is a modular system for processing documentation into useful formats, such as HTML, XML, and LaTeX.
For input Docutils supports reStructuredText, an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
%prep
%autosetup -n docutils-%{version}
%build
%py3_build
%install
%py3_install
for BINARY in rstpep2html rst2xml rst2xetex rst2s5 rst2pseudoxml rst2odt_prepstyles rst2odt rst2man rst2latex rst2html5 rst2html rst2html4
do
ln -sfv ${BINARY}.py %{buildroot}%{_bindir}/${BINARY}
ln -sfv ${BINARY}.py %{buildroot}%{_bindir}/${BINARY}3
ln -sfv ${BINARY}.py %{buildroot}%{_bindir}/${BINARY}3.py
done
%check
PATH=%{buildroot}%{_bindir}:${PATH} \
PYTHONPATH=%{buildroot}%{python3_sitelib} \
python3 test/alltests.py
%files -n python3-docutils
%defattr(-,root,root)
%license licenses
%{python3_sitelib}/*
%{_bindir}/docutils
%{_bindir}/rstpep2html
%{_bindir}/rst2xml
%{_bindir}/rst2xetex
%{_bindir}/rst2s5
%{_bindir}/rst2pseudoxml
%{_bindir}/rst2odt_prepstyles
%{_bindir}/rst2odt
%{_bindir}/rst2man
%{_bindir}/rst2latex
%{_bindir}/rst2html5
%{_bindir}/rst2html
%{_bindir}/rst2html4
%{_bindir}/rstpep2html.py
%{_bindir}/rst2xml.py
%{_bindir}/rst2xetex.py
%{_bindir}/rst2s5.py
%{_bindir}/rst2pseudoxml.py
%{_bindir}/rst2odt_prepstyles.py
%{_bindir}/rst2odt.py
%{_bindir}/rst2man.py
%{_bindir}/rst2latex.py
%{_bindir}/rst2html5.py
%{_bindir}/rst2html.py
%{_bindir}/rst2html4.py
%{_bindir}/rstpep2html3
%{_bindir}/rst2xml3
%{_bindir}/rst2xetex3
%{_bindir}/rst2s53
%{_bindir}/rst2pseudoxml3
%{_bindir}/rst2odt_prepstyles3
%{_bindir}/rst2odt3
%{_bindir}/rst2man3
%{_bindir}/rst2latex3
%{_bindir}/rst2html53
%{_bindir}/rst2html3
%{_bindir}/rst2html43
%{_bindir}/rstpep2html3.py
%{_bindir}/rst2xml3.py
%{_bindir}/rst2xetex3.py
%{_bindir}/rst2s53.py
%{_bindir}/rst2pseudoxml3.py
%{_bindir}/rst2odt_prepstyles3.py
%{_bindir}/rst2odt3.py
%{_bindir}/rst2man3.py
%{_bindir}/rst2latex3.py
%{_bindir}/rst2html53.py
%{_bindir}/rst2html3.py
%{_bindir}/rst2html43.py
%changelog
* Mon Feb 12 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 0.20.1-1
- Auto-upgrade to 0.20.1 - Azure Linux 3.0 - package upgrades
* Fri Feb 25 2022 Muhammad Falak <mwani@microsoft.com> - 0.18.1-2
- Fix test path `s/test3/test/` to enable ptest
* Thu Feb 24 2022 Nick Samson <nisamson@microsoft.com> - 0.18.1-1
- Updated to 0.18.1
- Removed unnecessary echo calls in build script.
* Wed Oct 20 2021 Thomas Crain <thcrain@microsoft.com> - 0.14-5
- Add license to python3 package
- Remove python2 package, move old binary names to python3 package
- Lint spec
* Fri Aug 21 2020 Thomas Crain <thcrain@microsoft.com> - 0.14-4
- Follow the Fedora convention of providing a suffix-less binary name
- License verified
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 0.14-3
- Added %%license line automatically
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 0.14-2
- Initial CBL-Mariner import from Photon (license: Apache2).
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 0.14-1
- Update to version 0.14
* Thu Jun 22 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.13.1-3
- Add BuildRequires python-xml and python3-xml for the tests to pass
* Thu Jun 01 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.13.1-2
- Create separate packages for python2 and python3 in the bin directory
* Mon Mar 20 2017 Xiaolin Li <xiaolinl@vmware.com> 0.13.1-1
- Initial packaging for Photon