129 lines
4.2 KiB
RPMSpec
129 lines
4.2 KiB
RPMSpec
Name: python-docutils
|
|
Version: 0.16
|
|
Release: 4mamba
|
|
Summary: Python Documentation Utilities
|
|
Group: System/Libraries/Python
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
URL: http://docutils.sourceforge.net/
|
|
Source: https://pypi.debian.net/docutils/docutils-%{version}.tar.gz
|
|
License: Python, BSD, GPL, public domain
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libpython3-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: python-setuptools
|
|
Requires: python >= %python_version
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
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.
|
|
|
|
%if "%?with_pyver"
|
|
%define pyver %{with_pyver}
|
|
%define pyappend py%{with_pyver}
|
|
%define __python %(rpm --eval %{__python%{with_pyver}})
|
|
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
|
|
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
|
|
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
|
|
%define python_version %(rpm --eval %{python%{with_pyver}_version})
|
|
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
|
|
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
|
|
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
|
|
|
|
%package py%{pyver}
|
|
Group: System/Libraries/Python
|
|
Summary: %{summary}.
|
|
%if "%?with_pyver" == "3"
|
|
Provides: python-docutils
|
|
Obsoletes: python-docutils
|
|
%endif
|
|
%py_requires
|
|
|
|
%description py%{pyver}
|
|
%{summary}.
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n docutils-%{version}
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} setup.py install \
|
|
-O1 --skip-build \
|
|
--root="%{buildroot}" \
|
|
--install-headers=%{_includedir}/python%{python_version} \
|
|
--install-lib=%{python_sitearch} \
|
|
--record=%{name}.filelist
|
|
|
|
sed -i "\,^%{_bindir},d" %{name}.filelist
|
|
|
|
# remove .py extension for executable
|
|
for file in %{buildroot}%{_bindir}/*.py; do
|
|
%if "%{?pyappend}" == "py3"
|
|
mv $file %{buildroot}%{_bindir}/$(basename $file .py)
|
|
%else
|
|
mv $file %{buildroot}%{_bindir}/$(basename $file .py)%{?pyappend:-%pyappend}
|
|
%endif
|
|
done
|
|
|
|
# remove no license file
|
|
rm -f licenses/docutils.conf
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
|
%defattr(-,root,root)
|
|
%{_bindir}/rst*
|
|
%dir %{python_sitearch}/docutils
|
|
%doc *.txt licenses docs tools/editors
|
|
|
|
%changelog
|
|
* 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
|
|
|
|
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-2mamba
|
|
- binaries default to py3
|
|
|
|
* Sun Mar 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-1mamba
|
|
- update to 0.16
|
|
|
|
* Thu May 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.14-2mamba
|
|
- rebuilt with py36 target
|
|
|
|
* Sun Aug 20 2017 Automatic Build System <autodist@mambasoft.it> 0.14-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Dec 10 2016 Automatic Build System <autodist@mambasoft.it> 0.13.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 0.12-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* 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
|