From a42ddbabe6de86d999355eae4ae0e3f6a295edf3 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 11:00:53 +0100 Subject: [PATCH] automatic version update by autodist [release 2.6.0-1mamba;Fri Oct 07 2022] --- python-cssutils.spec | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/python-cssutils.spec b/python-cssutils.spec index 48c949e..e4769fc 100644 --- a/python-cssutils.spec +++ b/python-cssutils.spec @@ -1,5 +1,6 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-cssutils -Version: 2.3.0 +Version: 2.6.0 Release: 1mamba Summary: A Python package to parse and build CSS Cascading Style Sheets. Group: System/Libraries @@ -12,10 +13,7 @@ License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel BuildRequires: python3.7dist(importlib-metadata) -BuildRequires: python3.7dist(setuptools) ## AUTOBUILDREQ-END -Provides: cssutils -Obsoletes: cssutils < 2.3.0 %description A Python package to parse and build CSS Cascading Style Sheets. Currently a DOM only, no rendering options. @@ -28,27 +26,34 @@ A Python package to parse and build CSS Cascading Style Sheets. Currently a DOM %setup -q -n cssutils-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if "%{?with_pyver}" != "3" +mv %{buildroot}%{_bindir}/csscapture{,-%{?pyappend}} +mv %{buildroot}%{_bindir}/csscombine{,-%{?pyappend}} +mv %{buildroot}%{_bindir}/cssparse{,-%{?pyappend}} +%endif -rm -rf %{buildroot}%{python_sitearch}/tests - -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/cssutils-%{version}-py*.egg-info -%{python_sitearch}/cssutils-%{version}-py*.egg-info/* +%{_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