python-smartypants/python-smartypants.spec

61 lines
1.8 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2-)
Name: python-smartypants
Version: 2.0.1
Release: 2mamba
Summary: A Python fork of SmartyPants
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/leohemsted/smartypants.py
Source: https://github.com/leohemsted/smartypants.py.git/v%{version}/smartypants.py-%{version}.tar.bz2
#Source: https://pypi.debian.net/smartypants/smartypants-%{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 smartypants.py-%{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}/smartypants; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%files %{?pyappend}
%defattr(-,root,root)
%{_bindir}/smartypants*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%{python_sitelib}/smartypants.py
%{python_sitelib}/__pycache__/smartypants.cpython*
%doc COPYING
%changelog
* Fri Sep 29 2023 Automatic Build System <autodist@mambasoft.it> 2.0.1-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Sun Oct 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
- update to 2.0.1
* Sun Oct 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- package created using the webbuild interface