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

133 строки
3.9 KiB
Plaintext
Исходник Обычный вид История

2020-08-07 06:17:52 +03:00
Summary: Docutils -- Python Documentation Utilities.
Name: python-docutils
Version: 0.18.1
Release: 2%{?dist}
License: Public Domain, PSF-2.0, BSD, GPLv3
2020-08-07 06:17:52 +03:00
Vendor: Microsoft Corporation
Distribution: Azure Linux
Group: Development/Languages/Python
URL: https://pypi.python.org/pypi/docutils
2020-08-07 06:17:52 +03:00
Source0: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz
BuildArch: noarch
%description
Docutils -- Python Documentation Utilities.
2020-08-07 06:17:52 +03:00
%package -n python3-docutils
Summary: Docutils -- Python Documentation Utilities.
2020-08-07 06:17:52 +03:00
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.
2020-08-07 06:17:52 +03:00
%prep
%autosetup -n docutils-%{version}
2020-08-07 06:17:52 +03:00
%build
%py3_build
2020-08-07 06:17:52 +03:00
%install
%py3_install
2020-10-08 16:55:21 +03:00
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
2020-10-08 16:55:21 +03:00
done
2020-08-07 06:17:52 +03:00
%check
PATH=%{buildroot}%{_bindir}:${PATH} \
PYTHONPATH=%{buildroot}%{python3_sitelib} \
python3 test/alltests.py
2020-08-07 06:17:52 +03:00
%files -n python3-docutils
2020-08-07 06:17:52 +03:00
%defattr(-,root,root)
%license licenses
%{python3_sitelib}/*
2020-10-08 16:55:21 +03:00
%{_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
2020-08-07 06:17:52 +03:00
%{_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
2020-10-08 16:55:21 +03:00
%{_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
2020-08-07 06:17:52 +03:00
%{_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
2020-10-08 16:55:21 +03:00
%{_bindir}/rst2html43.py
2020-08-07 06:17:52 +03:00
%changelog
* 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
2020-10-08 16:55:21 +03:00
* 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
2020-10-08 16:55:21 +03:00
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 0.14-3
2020-08-07 06:17:52 +03:00
- Added %%license line automatically
2020-10-08 16:55:21 +03:00
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 0.14-2
- Initial CBL-Mariner import from Photon (license: Apache2).
2020-10-08 16:55:21 +03:00
* 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