2024-01-06 11:05:50 +01:00
|
|
|
Name: python-docutils
|
2024-01-06 11:05:52 +01:00
|
|
|
Version: 0.20.1
|
|
|
|
Release: 1mamba
|
2024-01-06 11:05:50 +01:00
|
|
|
Summary: Python Documentation Utilities
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 11:05:50 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://docutils.sourceforge.io/
|
2024-01-06 11:05:50 +01:00
|
|
|
Source: https://pypi.debian.net/docutils/docutils-%{version}.tar.gz
|
2024-01-06 11:05:50 +01:00
|
|
|
License: Python, BSD, GPL, public domain
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:05:52 +01:00
|
|
|
BuildRequires: libpython311-devel
|
|
|
|
BuildRequires: python3.11dist(setuptools)
|
2024-01-06 11:05:50 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 11:05:52 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-06 11:05:50 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Docutils is an open-source text processing system for processing plaintext documentation into useful formats, such as HTML or LaTeX.
|
|
|
|
It includes reStructuredText, the easy to read, easy to use, what-you-see-is-what-you-get plaintext markup language.
|
|
|
|
|
2024-01-06 11:05:51 +01:00
|
|
|
%if 0%{?with_pyver}
|
2024-01-06 11:05:50 +01:00
|
|
|
%if "0%{?with_pyver}" == "03"
|
2024-01-06 11:05:50 +01:00
|
|
|
%define py_requires_append \
|
2024-01-06 11:05:50 +01:00
|
|
|
Provides: python-docutils \
|
|
|
|
Obsoletes: python-docutils < 0.19-2mamba
|
2024-01-06 11:05:51 +01:00
|
|
|
%endif
|
2024-01-06 11:05:50 +01:00
|
|
|
%pyver_package
|
2024-01-06 11:05:50 +01:00
|
|
|
%endif
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n docutils-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 11:05:50 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
2024-01-06 11:05:50 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 11:05:50 +01:00
|
|
|
%{__python} setup.py install \
|
2024-01-06 11:05:50 +01:00
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
2024-01-06 11:05:50 +01:00
|
|
|
--install-headers=%{_includedir}/python%{python_version} \
|
|
|
|
--install-lib=%{python_sitearch} \
|
2024-01-06 11:05:50 +01:00
|
|
|
--record=%{name}.filelist
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 11:05:50 +01:00
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
# symlink without .py extension if py_ver==3 or rename to avoid conflicts
|
|
|
|
for f in %{buildroot}%{_bindir}/*.py; do
|
|
|
|
%if "0%{?with_pyver}" == "03"
|
|
|
|
ln -s "$(basename $f)" %{buildroot}%{_bindir}/$(basename $f .py)
|
|
|
|
%else
|
2024-01-06 11:05:51 +01:00
|
|
|
mv $f %{buildroot}%{_bindir}/$(basename $f .py)%{?pyappend:-%pyappend}
|
2024-01-06 11:05:50 +01:00
|
|
|
%endif
|
|
|
|
done
|
|
|
|
sed -i "\,%{_bindir},d" %{name}.filelist
|
2024-01-06 11:05:51 +01:00
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
%if "0%{?with_pyver}" != "03"
|
2024-01-06 11:05:51 +01:00
|
|
|
mv %{buildroot}%{_bindir}/docutils %{buildroot}%{_bindir}/docutils%{?pyappend:-%pyappend}
|
2024-01-06 11:05:50 +01:00
|
|
|
%endif
|
2024-01-06 11:05:50 +01:00
|
|
|
|
|
|
|
# remove no license file
|
|
|
|
rm -f licenses/docutils.conf
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-06 11:05:50 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:05:51 +01:00
|
|
|
%{_bindir}/docutils*
|
|
|
|
%{_bindir}/rst*
|
2024-01-06 11:05:50 +01:00
|
|
|
%dir %{python_sitearch}/docutils-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/docutils-%{version}-py*.egg-info/*
|
2024-01-06 11:05:50 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:05:52 +01:00
|
|
|
* Mon Oct 02 2023 Automatic Build System <autodist@mambasoft.it> 0.20.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:05:52 +01:00
|
|
|
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 0.19-4mamba
|
|
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
|
2024-01-06 11:05:51 +01:00
|
|
|
* Thu Mar 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19-3mamba
|
|
|
|
- rebuilt with python 3.10
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Tue Aug 16 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19-2mamba
|
|
|
|
- provide tools without .py extension if python3
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Fri Jul 08 2022 Automatic Build System <autodist@mambasoft.it> 0.19-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Thu Nov 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.18.1-1mamba
|
|
|
|
- update to 0.18.1
|
|
|
|
|
|
|
|
* Sun Apr 18 2021 Automatic Build System <autodist@mambasoft.it> 0.17.1-2mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Apr 18 2021 Automatic Build System <autodist@mambasoft.it> 0.17.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Apr 04 2021 Automatic Build System <autodist@mambasoft.it> 0.17-1mamba
|
|
|
|
- automatic version update by autodist
|
2024-01-06 11:05:50 +01:00
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Sun Nov 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-4mamba
|
|
|
|
- remove requirement for python-Imaging
|
|
|
|
|
|
|
|
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-3mamba
|
|
|
|
- python-docutils-py3: obsolete python-docutils
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-2mamba
|
|
|
|
- binaries default to py3
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Sun Mar 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-1mamba
|
|
|
|
- update to 0.16
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Thu May 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.14-2mamba
|
|
|
|
- rebuilt with py36 target
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Sun Aug 20 2017 Automatic Build System <autodist@mambasoft.it> 0.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Sat Dec 10 2016 Automatic Build System <autodist@mambasoft.it> 0.13.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 0.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:05:50 +01:00
|
|
|
* Sat Jul 27 2013 Automatic Build System <autodist@mambasoft.it> 0.11-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10-2mamba
|
|
|
|
- rebuilt with python 2.7
|
|
|
|
|
|
|
|
* Mon Jan 07 2013 Automatic Build System <autodist@mambasoft.it> 0.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Aug 30 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.8.1-1mamba
|
|
|
|
- update to 0.8.1
|
|
|
|
|
|
|
|
* Tue Oct 12 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.7-1mamba
|
|
|
|
- update to 0.7
|
|
|
|
|
|
|
|
* Tue Jan 19 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.6-1mamba
|
|
|
|
- package created by autospec
|