From 29fea59c9b4e11a3429e762d6d43e0445d96bd42 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 2 Dec 2024 01:22:13 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.23.0-1mamba;Sat Nov 30 2024] --- README.md | 2 ++ python-libsass.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 python-libsass.spec diff --git a/README.md b/README.md index fd3a83f..fb31bb5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-libsass +Sass for Python: A straightforward binding of libsass for Python. + diff --git a/python-libsass.spec b/python-libsass.spec new file mode 100644 index 0000000..8265322 --- /dev/null +++ b/python-libsass.spec @@ -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 +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