| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| %bcond_without libalternatives |
| Name: python-cssmin |
| Version: 0.2.0 |
| Release: 0 |
| Summary: YUI CSS compression algorithm |
| License: BSD-3-Clause AND MIT |
| Group: Development/Languages/Python |
| URL: https://github.com/zacharyvoase/cssmin |
| Source: https://files.pythonhosted.org/packages/source/c/cssmin/cssmin-%{version}.tar.gz |
| BuildRequires: %{python_module packaging} |
| BuildRequires: %{python_module pip} |
| BuildRequires: %{python_module setuptools} |
| BuildRequires: %{python_module wheel} |
| BuildRequires: alts |
| BuildRequires: fdupes |
| BuildRequires: python-rpm-macros |
| Requires: alts |
| BuildArch: noarch |
| %python_subpackages |
| |
| %description |
| This is a Python port of the YUI CSS Compressor. |
| |
| %prep |
| %autosetup -p1 -n cssmin-%{version} |
| |
| %build |
| %pyproject_wheel |
| |
| %install |
| %pyproject_install |
| %{python_expand chmod a+x %{buildroot}%{$python_sitelib}/cssmin.py |
| sed -i "s|^#!.*env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/cssmin.py |
| } |
| %python_clone -a %{buildroot}%{_bindir}/cssmin |
| %python_expand %fdupes %{buildroot}%{$python_sitelib} |
| |
| %check |
| |
| |
| %pre |
| %python_libalternatives_reset_alternative cssmin |
| |
| %files %{python_files} |
| %python_alternative %{_bindir}/cssmin |
| %{python_sitelib}/cssmin.py |
| %{python_sitelib}/cssmin-%{version}*-info |
| %pycache_only %{python_sitelib}/__pycache__ |
| |
| %changelog |