15
0

Accepting request 833470 from home:mcalabkova:branches:devel:languages:python:django

Needed by django-pipeline tests. Could be useful elsewhere.

OBS-URL: https://build.opensuse.org/request/show/833470
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-css-html-js-minify?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2020-09-10 14:27:28 +00:00
committed by Git OBS Bridge
commit c087970f3b
7 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
#
# spec file for package python-css-html-js-minify
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-css-html-js-minify
Version: 2.5.5.git.1523718195.8f72452
Release: 0
Summary: CSS HTML JS Minifier
License: GPL-3.0-only AND LGPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/juancarlospaco/css-html-js-minify#css-html-js-minify
Source: css-html-js-minify-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Async single-file cross-platform no-dependencies Minifier for the Web
%prep
%setup -q -n css-html-js-minify-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/css-html-js-minify
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative css-html-js-minify
%preun
%python_uninstall_alternative css-html-js-minify
%check
%pyunittest tests.test_html_minifier
%files %{python_files}
%doc README.md
%license LICENCE.lgpl.txt LICENSE.gpl.txt
%python_alternative %{_bindir}/css-html-js-minify
%{python_sitelib}/*
%changelog