92 lines
2.9 KiB
RPMSpec
92 lines
2.9 KiB
RPMSpec
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||
Name: python-Markdown
|
||
Version: 3.7
|
||
Release: 1mamba
|
||
Summary: a Python implementation of John Gruber’s 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
|
||
* Tue Sep 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7-1mamba
|
||
- update to 3.7
|
||
|
||
* Fri Mar 15 2024 Automatic Build System <autodist@openmamba.org> 3.6-1mamba
|
||
- automatic version update by autodist
|
||
|
||
* Wed Jan 10 2024 Automatic Build System <autodist@openmamba.org> 3.5.2-1mamba
|
||
- automatic version update by autodist
|
||
|
||
* 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
|