package created using the webbuild interface [release 0.23.0-1mamba;Sat Nov 30 2024]

This commit is contained in:
Silvan Calarco 2024-12-02 01:22:13 +01:00
parent d146a3067d
commit 29fea59c9b
2 changed files with 64 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# python-libsass
Sass for Python: A straightforward binding of libsass for Python.

62
python-libsass.spec Normal file
View File

@ -0,0 +1,62 @@
%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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.23.0-1mamba
- package created using the webbuild interface