diff --git a/python-docutils.spec b/python-docutils.spec index 6142b65..5163522 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -1,12 +1,12 @@ Name: python-docutils Version: 0.16 -Release: 4mamba +Release: 5mamba Summary: Python Documentation Utilities Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba Packager: Stefano Cotta Ramusino -URL: http://docutils.sourceforge.net/ +URL: https://docutils.sourceforge.net/ Source: https://pypi.debian.net/docutils/docutils-%{version}.tar.gz License: Python, BSD, GPL, public domain ## AUTOBUILDREQ-BEGIN @@ -14,36 +14,14 @@ 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}. +%if 0%{?with_pyver} +%pyver_package %endif %prep @@ -62,6 +40,7 @@ CFLAGS="%{optflags}" %{__python} setup.py build --record=%{name}.filelist sed -i "\,^%{_bindir},d" %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist # remove .py extension for executable for file in %{buildroot}%{_bindir}/*.py; do @@ -81,10 +60,15 @@ rm -f licenses/docutils.conf %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %{_bindir}/rst* +%dir %{python_sitearch}/docutils-%{version}-py*.egg-info +%{python_sitearch}/docutils-%{version}-py*.egg-info/* %dir %{python_sitearch}/docutils %doc *.txt licenses docs tools/editors %changelog +* Sat Apr 17 2021 Silvan Calarco 0.16-5mamba +- rebuilt with distdeps + * Sun Nov 29 2020 Silvan Calarco 0.16-4mamba - remove requirement for python-Imaging