diff --git a/python-commonmark.spec b/python-commonmark.spec index f263442..2031293 100644 --- a/python-commonmark.spec +++ b/python-commonmark.spec @@ -1,6 +1,6 @@ Name: python-commonmark Version: 0.9.1 -Release: 1mamba +Release: 2mamba Summary: A pure Python port of jgm Group: System/Libraries Vendor: openmamba @@ -10,9 +10,8 @@ URL: https://pypi.org/project/CommonMark/ Source: https://pypi.debian.net/CommonMark/commonmark-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN -## note: run 'autospec -u -a6 python-commonmark' to get the list of build requirements. -## AUTOBUILDREQ-END BuildRequires: libpython-devel +## AUTOBUILDREQ-END Requires: python >= %python_version BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -40,16 +39,19 @@ CFLAGS="%{optflags}" %{__python} setup.py build sed -i "s,.*/man/.*,&.gz," %{name}.filelist +%if 0%{?with_pyver} +mv %{buildroot}%{_bindir}/cmark %{buildroot}%{_bindir}/cmark-%{?pyappend} +sed -i "s|%{_bindir}/cmark|%{_bindir}/cmark-%{?pyappend}|" %{name}.filelist +%endif + %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -## note: this list is just an example; modify as required -# %{python_sitearch}/%{name}.py* -# %{python_sitearch}/%{name}.so %doc LICENSE -## note: eventually add the remaining documents (if any) -# %doc README.rst %changelog +* Sun Jan 05 2020 Silvan Calarco 0.9.1-2mamba +- resolve conflict of /usr/bin/cmark between different python builds + * Thu Nov 14 2019 Automatic Build System 0.9.1-1mamba - automatic version update by autodist