resolve conflict of /usr/bin/cmark between different python builds [release 0.9.1-2mamba;Sun Jan 05 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 10:58:45 +01:00
parent 61a7d8f839
commit 9ffeff586f

View File

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