diff --git a/python-recommonmark.spec b/python-recommonmark.spec index 06d6a51..8edad9c 100644 --- a/python-recommonmark.spec +++ b/python-recommonmark.spec @@ -1,6 +1,8 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) + Name: python-recommonmark Version: 0.7.1 -Release: 1mamba +Release: 2mamba Summary: A 'docutils'-compatibility bridge to [CommonMark][cm] Group: System/Libraries Vendor: openmamba @@ -10,12 +12,8 @@ URL: https://pypi.org/project/recommonmark/ Source: https://pypi.debian.net/recommonmark/recommonmark-%{version}.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN -## note: run 'autospec -u -a6 python-recommonmark' to get the list of build requirements. +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -BuildRequires: libpython-devel -Requires: python >= %python_version -Requires: python-commonmark%{?pyappend:-%pyappend} -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description %{summary}. @@ -39,7 +37,7 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -sed -i "s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %if 0%{?with_pyver} for f in cm2html cm2latex cm2man cm2pseudoxml cm2xetex cm2xml; do @@ -50,8 +48,13 @@ done %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info +%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %changelog +* Sun May 14 2023 Silvan Calarco 0.7.1-2mamba +- rebuilt with python 3.10 + * Sun Feb 21 2021 Automatic Build System 0.7.1-1mamba - automatic version update by autodist