%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-libsass Version: 0.23.0 Release: 1mamba Summary: Sass for Python: A straightforward binding of libsass for Python Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://sass.github.io/libsass-python/ Source: https://pypi.debian.net/libsass/libsass-%{version}.tar.gz License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libpython311-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n libsass-%{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}/pdm; do # mv %{buildroot}${f}{,-%{?pyappend}} #done #%endif %files %{?pyappend} %defattr(-,root,root) %{_bindir}/pysassc %dir %{python3_sitearch}/libsass-%{version}.dist-info %{python3_sitearch}/libsass-%{version}.dist-info/* %{python3_sitearch}/__pycache__/pysassc.cpython-*.pyc %{python3_sitearch}/__pycache__/sass.cpython-*.pyc %{python3_sitearch}/__pycache__/sasstests.cpython-*.pyc %{python3_sitearch}/_sass.abi3.so %{python3_sitearch}/pysassc.py %{python3_sitearch}/sass.py %{python3_sitearch}/sasstests.py %dir %{python3_sitearch}/sassutils %{python3_sitearch}/sassutils/* %doc LICENSE %changelog * Sat Nov 30 2024 Silvan Calarco 0.23.0-1mamba - package created using the webbuild interface