15
0

Accepting request 704765 from home:pgajdos

- version update to 1.10.0
  * lot of releases, lot of changes, see
    https://github.com/beautify-web/js-beautify/blob/master/CHANGELOG.md
- added sources
  https://github.com/beautify-web/js-beautify/issues/1674
  + LICENSE

OBS-URL: https://build.opensuse.org/request/show/704765
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsbeautifier?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2019-05-22 19:03:12 +00:00
committed by Git OBS Bridge
parent 522948eddd
commit 653eafdc1a
5 changed files with 33 additions and 19 deletions

9
LICENSE Normal file
View File

@@ -0,0 +1,9 @@
The MIT License (MIT)
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e389572ade865173605471e98df4002f4b6e5235121c13f1e4497a3eac69108
size 69079

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:50b2af556aa1da7283a6a92eaa699668312cb91f2ba6b78a4422b1d42af964a2
size 55566

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed May 22 14:13:04 UTC 2019 - pgajdos@suse.com
- version update to 1.10.0
* lot of releases, lot of changes, see
https://github.com/beautify-web/js-beautify/blob/master/CHANGELOG.md
- added sources
https://github.com/beautify-web/js-beautify/issues/1674
+ LICENSE
-------------------------------------------------------------------
Tue Dec 4 12:49:32 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-jsbeautifier
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,26 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-jsbeautifier
Version: 1.6.14
Version: 1.10.0
Release: 0
Summary: JavaScript unobfuscator and beautifier
License: MIT
Group: Development/Languages/Python
Url: http://jsbeautifier.org
Source: https://files.pythonhosted.org/packages/source/j/jsbeautifier/jsbeautifier-%{version}.tar.gz
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: python-rpm-macros
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module EditorConfig >= 0.12.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six >= 1.6.1}
%endif
# /SECTION
BuildRequires: fdupes
Requires: python-EditorConfig >= 0.12.0
Requires: python-setuptools
Requires: python-six >= 1.6.1
BuildArch: noarch
@@ -45,28 +47,21 @@ Beautify, unpack or deobfuscate JavaScript. Handles popular online obfuscators.
%prep
%setup -q -n jsbeautifier-%{version}
cp %{SOURCE1} .
%build
%python_build
%install
%python_install
%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/jsbeautifier/tests/test-perf-jsbeautifier.py
chmod a+x %{buildroot}%{$python_sitelib}/jsbeautifier/tests/generated/tests.py
sed -i "s|^#!/usr/bin/env python$|#!%__$python|" %{buildroot}%{$python_sitelib}/jsbeautifier/tests/test-perf-jsbeautifier.py
sed -i "s|^#!/usr/bin/env python$|#!%__$python|" %{buildroot}%{$python_sitelib}/jsbeautifier/tests/generated/tests.py
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jsbeautifier/tests/
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/jsbeautifier/tests/
%fdupes %{buildroot}%{$python_sitelib}
}
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%python3_only %{_bindir}/js-beautify
%{python_sitelib}/jsbeautifier
%{python_sitelib}/jsbeautifier-%{version}-py*.egg-info