python-Markdown/python-Markdown.spec

83 lines
2.6 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-Markdown
Version: 3.5.1
Release: 1mamba
Summary: a Python implementation of John Grubers Markdown
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/Markdown/
Source: https://pypi.debian.net/Markdown/Markdown-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n Markdown-%{version}
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
%if "%{?with_pyver}" != "3"
# Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/markdown_py; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%files %{?pyappend}
%defattr(-,root,root)
%{_bindir}/markdown_py*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/markdown
%{python_sitelib}/markdown/*
%changelog
* Sat Nov 11 2023 Automatic Build System <autodist@mambasoft.it> 3.5.1-1mamba
- automatic version update by autodist
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 3.4.1-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Sat Jul 16 2022 Automatic Build System <autodist@mambasoft.it> 3.4.1-1mamba
- automatic version update by autodist
* Sat May 07 2022 Automatic Build System <autodist@mambasoft.it> 3.3.7-1mamba
- automatic version update by autodist
* Thu Nov 18 2021 Automatic Build System <autodist@mambasoft.it> 3.3.6-1mamba
- automatic version update by autodist
* Thu Mar 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3.4-2mamba
- rebuilt with python deps
* Thu Feb 25 2021 Automatic Build System <autodist@mambasoft.it> 3.3.4-1mamba
- automatic version update by autodist
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba
- automatic version update by autodist
* Tue Sep 08 2020 Automatic Build System <autodist@mambasoft.it> 3.2.2-1mamba
- automatic update by autodist
* Wed Jul 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-2mamba
- fixed conflict in /usr/bin between different python package builds
* Sat Mar 30 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-1mamba
- package created using the webbuild interface