automatic version update by autodist [release 2.6.0-1mamba;Fri Oct 07 2022]
This commit is contained in:
parent
b2b01059b9
commit
a42ddbabe6
@ -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 <autodist@mambasoft.it> 2.6.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Tue Jan 11 2022 Automatic Build System <autodist@mambasoft.it> 2.3.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user