- Update to v1.14.6 * Globs no longer work on Windows in 1.14.5 (#2093) - Update to v1.14.5 * Dependency updates and UI tweaks (#2088) * Bump terser from 5.12.1 to 5.14.2 (#2084) * new layout breaks everything on long lines (#2071) * Dark mode (#2057) - Update to v1.14.4 * Extra space before !important added (#2056) * css format removes space after quoted value (#2051) * Add grid-template-areas to NON_SEMICOLON_NEWLINE_PROPERTY list (#2035) * CSS formatter removes useful space (#2024) * CHANGELOG.md file was wiped out in v1.14.2 (#2022) * Fails to recognize Handlebars block with whitespace control, e.g. {{~#if true ~}} (#1988) * Support new sass @use syntax (#1976) * Do not remove whitespace after number (#1950) * html formatter doesn't support handlebars partial blocks (#>) (#1869) * in keyword in class method causes indentation problem (#1846) * space_after_named_function not working inside an ES6 class (#1622) * Restyle website (#1444) * improper line concatenation between 'return' and a prefix expression (#1095) - Update to v1.14.3 * [LESS] Fixing issues with spacing when an object literal lives inside a mixin (#2017) * Overindentation when using "class" as a key in an object (#1838) * CSS Grid template formatting is broken when adding track size after line names (#1817) * SCSS module system @use problem (#1798) * JS "space_in_empty_paren" failing for class methods (#1151) * LESS mixins gets formatted strangely (#722) - Update to v1.14.2 * Why put npm in dependencies? (#2005) OBS-URL: https://build.opensuse.org/request/show/1006969 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsbeautifier?expand=0&rev=17
77 lines
2.4 KiB
RPMSpec
77 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-jsbeautifier
|
|
#
|
|
# Copyright (c) 2022 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-%{**}}
|
|
Name: python-jsbeautifier
|
|
Version: 1.14.6
|
|
Release: 0
|
|
Summary: JavaScript unobfuscator and beautifier
|
|
License: MIT
|
|
URL: https://jsbeautifier.org
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jsbeautifier/jsbeautifier-%{version}.tar.gz
|
|
# https://github.com/beautify-web/js-beautify/issues/1674
|
|
Source1: https://raw.githubusercontent.com/beautify-web/js-beautify/master/LICENSE
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-EditorConfig >= 0.12.2
|
|
Requires: python-setuptools
|
|
Requires: python-six >= 1.13.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module EditorConfig >= 0.12.2}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module six >= 1.13.0}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Beautify, unpack or deobfuscate JavaScript. Handles popular online obfuscators.
|
|
|
|
%prep
|
|
%setup -q -n jsbeautifier-%{version}
|
|
cp %{SOURCE1} .
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/js-beautify
|
|
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
|
|
|
%check
|
|
%pytest jsbeautifier/tests/testindentation.py
|
|
%pytest jsbeautifier/tests/generated/tests.py
|
|
|
|
%post
|
|
%python_install_alternative js-beautify
|
|
|
|
%postun
|
|
%python_uninstall_alternative js-beautify
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%python_alternative %{_bindir}/js-beautify
|
|
%{python_sitelib}/jsbeautifier
|
|
%{python_sitelib}/jsbeautifier-%{version}-py*.egg-info
|
|
|
|
%changelog
|