ed25af8
%global pypi_name rcssmin
aekoroglu 4acbb50
%global desc %{expand: \
ed25af8
RCSSmin is a CSS minifier.
ed25af8
ed25af8
The minifier is based on the semantics of the YUI compressor, which itself
ed25af8
is based on the rule list by Isaac Schlueter.
ed25af8
ed25af8
This module is a re-implementation aiming for speed instead of maximum
ed25af8
compression, so it can be used at runtime (rather than during a preprocessing
aekoroglu 4acbb50
step).}
ed25af8
aekoroglu 4acbb50
Name:		python-%{pypi_name}
aekoroglu 4acbb50
Version:	1.1.1
aekoroglu 4acbb50
Release:	%autorelease
aekoroglu 4acbb50
Summary:	CSS Minifier
98e14f6
aekoroglu 4acbb50
License:	Apache-2.0
aekoroglu 4acbb50
URL:		http://opensource.perlig.de/rcssmin/
aekoroglu 4acbb50
Source0:	%{pypi_source}
ed25af8
aekoroglu 4acbb50
BuildRequires:	gcc
aekoroglu 4acbb50
BuildRequires:	python3-devel
aekoroglu 4acbb50
BuildRequires:	python3-pytest
ed25af8
aekoroglu 4acbb50
%description
aekoroglu 4acbb50
%{desc}
ed25af8
aekoroglu 4acbb50
%package -n python3-%{pypi_name}
aekoroglu 4acbb50
Summary:	CSS Minifier
aekoroglu 4acbb50
aekoroglu 4acbb50
%description -n python3-%{pypi_name}
aekoroglu 4acbb50
%{desc}
ed25af8
ed25af8
%prep
ed25af8
%autosetup -n %{pypi_name}-%{version}
ed25af8
ed25af8
# strip bang path from rcssmin.py
ed25af8
sed -i '1d' rcssmin.py
ed25af8
aekoroglu 4acbb50
%generate_buildrequires
aekoroglu 4acbb50
%pyproject_buildrequires
aekoroglu 4acbb50
ed25af8
%build
aekoroglu 4acbb50
%pyproject_wheel
aekoroglu 4acbb50
ed25af8
%install
aekoroglu 4acbb50
%pyproject_install
aekoroglu 4acbb50
%pyproject_save_files %{pypi_name}
ed25af8
aekoroglu 4acbb50
%check
aekoroglu 4acbb50
%pytest -v
ed25af8
aekoroglu 4acbb50
%files -n python3-%{pypi_name} -f %{pyproject_files}
aekoroglu 4acbb50
%doc README.md
ed25af8
%{python3_sitearch}/_%{pypi_name}.cpython*
ed25af8
ed25af8
%changelog
aekoroglu 4acbb50
%autochangelog