forked from pool/python-css-html-js-minify
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 96a30092ef | |||
| c2a07cc1f3 | |||
| f11f70e7b1 | |||
| bdb2ad1682 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 4 14:20:42 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
|
||||||
|
|
||||||
|
- fix usage of libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 26 10:30:35 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 10 12:42:43 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Thu Sep 10 12:42:43 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-css-html-js-minify
|
# spec file for package python-css-html-js-minify
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
%define skip_python2 1
|
%define pkg_version 2.5.5
|
||||||
Name: python-css-html-js-minify
|
Name: python-css-html-js-minify
|
||||||
Version: 2.5.5.git.1523718195.8f72452
|
Version: 2.5.5.git.1523718195.8f72452
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,11 +26,13 @@ License: GPL-3.0-only AND LGPL-3.0-only
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/juancarlospaco/css-html-js-minify#css-html-js-minify
|
URL: https://github.com/juancarlospaco/css-html-js-minify#css-html-js-minify
|
||||||
Source: css-html-js-minify-%{version}.tar.gz
|
Source: css-html-js-minify-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(preun): update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -38,21 +40,21 @@ BuildArch: noarch
|
|||||||
Async single-file cross-platform no-dependencies Minifier for the Web
|
Async single-file cross-platform no-dependencies Minifier for the Web
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n css-html-js-minify-%{version}
|
%autosetup -p1 -n css-html-js-minify-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/css-html-js-minify
|
%python_clone -a %{buildroot}%{_bindir}/css-html-js-minify
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative css-html-js-minify
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative css-html-js-minify
|
||||||
|
|
||||||
%preun
|
# post and postun macro call is not needed with only libalternatives
|
||||||
%python_uninstall_alternative css-html-js-minify
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest tests.test_html_minifier
|
%pyunittest tests.test_html_minifier
|
||||||
@@ -61,6 +63,7 @@ Async single-file cross-platform no-dependencies Minifier for the Web
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENCE.lgpl.txt LICENSE.gpl.txt
|
%license LICENCE.lgpl.txt LICENSE.gpl.txt
|
||||||
%python_alternative %{_bindir}/css-html-js-minify
|
%python_alternative %{_bindir}/css-html-js-minify
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/css[-_]html[-_]js[-_]minify
|
||||||
|
%{python_sitelib}/css[-_]html[-_]js[-_]minify-%{pkg_version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user