%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-cssutils Version: 2.6.0 Release: 1mamba Summary: A Python package to parse and build CSS Cascading Style Sheets. Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://cthedot.de/cssutils/ Source: https://pypi.debian.net/cssutils/cssutils-%{version}.tar.gz License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel BuildRequires: python3.7dist(importlib-metadata) ## AUTOBUILDREQ-END %description A Python package to parse and build CSS Cascading Style Sheets. Currently a DOM only, no rendering options. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n cssutils-%{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" mv %{buildroot}%{_bindir}/csscapture{,-%{?pyappend}} mv %{buildroot}%{_bindir}/csscombine{,-%{?pyappend}} mv %{buildroot}%{_bindir}/cssparse{,-%{?pyappend}} %endif %files %{?pyappend} %defattr(-,root,root) %{_bindir}/csscapture %{_bindir}/csscombine %{_bindir}/cssparse %dir %{python_sitelib}/%{pkgname}-%{version}.dist-info %{python_sitelib}/%{pkgname}-%{version}.dist-info/* %dir %{python_sitelib}/%{pkgname} %{python_sitelib}/%{pkgname}/* %dir %{python_sitelib}/encutils %{python_sitelib}/encutils/* %changelog * Fri Oct 07 2022 Automatic Build System 2.6.0-1mamba - automatic version update by autodist * Tue Jan 11 2022 Automatic Build System 2.3.0-1mamba - automatic version update by autodist * Sat Mar 18 2017 Automatic Build System 1.0.2-1mamba - automatic version update by autodist * Thu Dec 03 2015 Silvan Calarco 1.0.1-1mamba - update to 1.0.1 * Mon Mar 03 2014 Automatic Build System 1.0-1mamba - automatic version update by autodist * Sun Nov 24 2013 Silvan Calarco 0.9.10b1-2mamba - remove conflicting tests files - renamed to python-cssutils - added build requirements * Wed Nov 06 2013 Ercole 'ercolinux' Carpanetto 0.9.10b1-1mamba - update to 0.9.10b1 * Sun Jun 02 2013 Silvan Calarco 0.9.7-2mamba - python 2.7 mass rebuild * Mon Dec 27 2010 Ercole 'ercolinux' Carpanetto 0.9.7-1mamba - package created by autospec