commit python-jsbeautifier for openSUSE:Factory

2020-05-26 Thread root
Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2020-05-26 17:49:02

Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and  /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.2738 (New)


Package is "python-jsbeautifier"

Tue May 26 17:49:02 2020 rev:8 rq:808780 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2020-04-16 23:05:50.731813236 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.2738/python-jsbeautifier.changes
2020-05-26 17:49:05.639850781 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:33 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-jsbeautifier.spec ++
--- /var/tmp/diff_new_pack.AoENCl/_old  2020-05-26 17:49:07.695855287 +0200
+++ /var/tmp/diff_new_pack.AoENCl/_new  2020-05-26 17:49:07.699855296 +0200
@@ -32,6 +32,8 @@
 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}
@@ -52,15 +54,22 @@
 
 %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
-%python3_only %{_bindir}/js-beautify
+%python_alternative %{_bindir}/js-beautify
 %{python_sitelib}/jsbeautifier
 %{python_sitelib}/jsbeautifier-%{version}-py*.egg-info
 




commit python-jsbeautifier for openSUSE:Factory

2020-04-16 Thread root
Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2020-04-16 23:05:44

Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and  /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.2738 (New)


Package is "python-jsbeautifier"

Thu Apr 16 23:05:44 2020 rev:7 rq:794586 version:1.11.0

Changes:

--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2020-03-04 09:44:35.406078276 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.2738/python-jsbeautifier.changes
2020-04-16 23:05:50.731813236 +0200
@@ -1,0 +2,10 @@
+Thu Apr 16 11:59:13 UTC 2020 - pgaj...@suse.com
+
+- version update to 1.11.0
+  Closed Issues
+  * Please bump mkdirp to fix mkdirp@0.5.1 vulnerability (#1768)
+  * Support optional-chaining (#1727)
+  * Please support es module (#1706)
+  * Support new js proposals: optional-chaining & pipeline-operator (#1530)
+
+---

Old:

  jsbeautifier-1.10.3.tar.gz

New:

  jsbeautifier-1.11.0.tar.gz



Other differences:
--
++ python-jsbeautifier.spec ++
--- /var/tmp/diff_new_pack.jdRwLh/_old  2020-04-16 23:05:52.007814373 +0200
+++ /var/tmp/diff_new_pack.jdRwLh/_new  2020-04-16 23:05:52.007814373 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-jsbeautifier
-Version:1.10.3
+Version:1.11.0
 Release:0
 Summary:JavaScript unobfuscator and beautifier
 License:MIT

++ jsbeautifier-1.10.3.tar.gz -> jsbeautifier-1.11.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsbeautifier-1.10.3/PKG-INFO 
new/jsbeautifier-1.11.0/PKG-INFO
--- old/jsbeautifier-1.10.3/PKG-INFO2020-01-14 20:02:12.0 +0100
+++ new/jsbeautifier-1.11.0/PKG-INFO2020-04-05 21:25:15.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: jsbeautifier
-Version: 1.10.3
+Version: 1.11.0
 Summary: JavaScript unobfuscator and beautifier.
 Home-page: https://beautifier.io
 Author: Liam Newman, Einar Lielmanis, et al.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsbeautifier-1.10.3/jsbeautifier/__version__.py 
new/jsbeautifier-1.11.0/jsbeautifier/__version__.py
--- old/jsbeautifier-1.10.3/jsbeautifier/__version__.py 2020-01-14 
20:00:30.0 +0100
+++ new/jsbeautifier-1.11.0/jsbeautifier/__version__.py 2020-04-05 
21:24:04.0 +0200
@@ -1 +1 @@
-__version__ = '1.10.3'
+__version__ = '1.11.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsbeautifier-1.10.3/jsbeautifier/javascript/tokenizer.py 
new/jsbeautifier-1.11.0/jsbeautifier/javascript/tokenizer.py
--- old/jsbeautifier-1.10.3/jsbeautifier/javascript/tokenizer.py
2020-01-14 20:00:30.0 +0100
+++ new/jsbeautifier-1.11.0/jsbeautifier/javascript/tokenizer.py
2020-04-05 21:24:04.0 +0200
@@ -67,15 +67,17 @@
 
 positionable_operators = frozenset(
 (">>> === !== " +
-"<< && >= ** != == <= >> || " +
+"<< && >= ** != == <= >> || |> " +
 "< / - + > : & % ? ^ | *").split(' '))
 
 punct =  (">>>= " +
 "... >>= <<= === >>> !== **= " +
-"=> ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= " +
+"=> ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= |> " +
 "= ! ? > < : / ^ - + * & % ~ |")
 
 punct = re.compile(r'([-[\]{}()*+?.,\\^$|#])').sub(r'\\\1', punct)
+# ?. but not if followed by a number
+punct = '\\?\\.(?!\\d) ' + punct
 punct = punct.replace(' ', '|')
 
 punct_pattern = re.compile(punct)
@@ -434,6 +436,8 @@
 if resulting_string != '':
 if resulting_string == '=':
 token = self._create_token(TOKEN.EQUALS, resulting_string)
+elif resulting_string == '?.':
+token = self._create_token(TOKEN.DOT, resulting_string)
 else:
 token = self._create_token(TOKEN.OPERATOR, resulting_string)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsbeautifier-1.10.3/jsbeautifier/tests/generated/tests.py 
new/jsbeautifier-1.11.0/jsbeautifier/tests/generated/tests.py
--- old/jsbeautifier-1.10.3/jsbeautifier/tests/generated/tests.py   
2020-01-14 20:01:47.0 +0100
+++ new/jsbeautifier-1.11.0/jsbeautifier/tests/generated/tests.py   
2020-04-05 21:24:52.0 +0200
@@ -2025,6 +2025,43 @@
 '.bar()',
 #  -- output --
 'this.something.xxx = foo.moo.bar()')
+
+# optional chaining operator
+bt(
+

commit python-jsbeautifier for openSUSE:Factory

2020-03-04 Thread root
Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2020-03-04 09:43:51

Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and  /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.26092 (New)


Package is "python-jsbeautifier"

Wed Mar  4 09:43:51 2020 rev:6 rq:781196 version:1.10.3

Changes:

--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2019-09-13 14:58:59.065278929 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.26092/python-jsbeautifier.changes
   2020-03-04 09:44:35.406078276 +0100
@@ -1,0 +2,6 @@
+Tue Mar  3 12:05:39 UTC 2020 - Tomáš Chvátal 
+
+- Update to 1.10.3:
+  * minor fixes
+
+---

Old:

  jsbeautifier-1.10.2.tar.gz

New:

  jsbeautifier-1.10.3.tar.gz



Other differences:
--
++ python-jsbeautifier.spec ++
--- /var/tmp/diff_new_pack.SpybrT/_old  2020-03-04 09:44:35.942078597 +0100
+++ /var/tmp/diff_new_pack.SpybrT/_new  2020-03-04 09:44:35.946078599 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jsbeautifier
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -18,26 +18,25 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-jsbeautifier
-Version:1.10.2
+Version:1.10.3
 Release:0
 Summary:JavaScript unobfuscator and beautifier
 License:MIT
-Group:  Development/Languages/Python
-URL:http://jsbeautifier.org
+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.0
+Requires:   python-EditorConfig >= 0.12.2
 Requires:   python-setuptools
-Requires:   python-six >= 1.6.1
+Requires:   python-six >= 1.13.0
 BuildArch:  noarch
 # SECTION test requirements
-BuildRequires:  %{python_module EditorConfig >= 0.12.0}
+BuildRequires:  %{python_module EditorConfig >= 0.12.2}
 BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module six >= 1.6.1}
+BuildRequires:  %{python_module six >= 1.13.0}
 # /SECTION
 %python_subpackages
 
@@ -56,7 +55,8 @@
 %{python_expand %fdupes %{buildroot}%{$python_sitelib}}
 
 %check
-%python_exec setup.py test
+%pytest jsbeautifier/tests/testindentation.py
+%pytest jsbeautifier/tests/generated/tests.py
 
 %files %{python_files}
 %license LICENSE

++ jsbeautifier-1.10.2.tar.gz -> jsbeautifier-1.10.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsbeautifier-1.10.2/PKG-INFO 
new/jsbeautifier-1.10.3/PKG-INFO
--- old/jsbeautifier-1.10.2/PKG-INFO2019-08-06 20:14:40.0 +0200
+++ new/jsbeautifier-1.10.3/PKG-INFO2020-01-14 20:02:12.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: jsbeautifier
-Version: 1.10.2
+Version: 1.10.3
 Summary: JavaScript unobfuscator and beautifier.
 Home-page: https://beautifier.io
 Author: Liam Newman, Einar Lielmanis, et al.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsbeautifier-1.10.2/jsbeautifier/__init__.py 
new/jsbeautifier-1.10.3/jsbeautifier/__init__.py
--- old/jsbeautifier-1.10.2/jsbeautifier/__init__.py2019-06-06 
19:35:11.0 +0200
+++ new/jsbeautifier-1.10.3/jsbeautifier/__init__.py2020-01-14 
20:00:30.0 +0100
@@ -129,7 +129,7 @@
 import msvcrt
 msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
 else:
-raise 'Pipe to stdin not supported on Windows with Python 2.x 
64-bit.'
+raise Exception('Pipe to stdin not supported on Windows with 
Python 2.x 64-bit.')
 
 input_string = stream.read()
 
@@ -137,7 +137,7 @@
 if input_string == '':
 raise MissingInputStreamError()
 else:
-stream = io.open(file_name, 'rt', newline='')
+stream = io.open(file_name, 'rt', newline='', encoding='UTF-8')
 input_string = stream.read()
 
 return beautify(input_string, opts)
@@ -232,7 +232,7 @@
 argv = sys.argv[1:]
 
 try:
-opts, args = getopt.getopt(argv, "f:s:c:e:o:rdEPjabkil:xhtvX

commit python-jsbeautifier for openSUSE:Factory

2019-09-13 Thread root
Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2019-09-13 14:58:57

Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and  /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.7948 (New)


Package is "python-jsbeautifier"

Fri Sep 13 14:58:57 2019 rev:5 rq:730158 version:1.10.2

Changes:

--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2019-07-24 20:36:20.662568759 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.7948/python-jsbeautifier.changes
2019-09-13 14:58:59.065278929 +0200
@@ -1,0 +2,7 @@
+Wed Sep 11 13:28:59 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.10.2:
+  * Please update CodeMirror Addon (#1695)
+  * Nested braces indentation (#223)
+
+---

Old:

  jsbeautifier-1.10.1.tar.gz

New:

  jsbeautifier-1.10.2.tar.gz



Other differences:
--
++ python-jsbeautifier.spec ++
--- /var/tmp/diff_new_pack.7t2Hhq/_old  2019-09-13 14:59:00.205278977 +0200
+++ /var/tmp/diff_new_pack.7t2Hhq/_new  2019-09-13 14:59:00.209278977 +0200
@@ -18,28 +18,27 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-jsbeautifier
-Version:1.10.1
+Version:1.10.2
 Release:0
 Summary:JavaScript unobfuscator and beautifier
 License:MIT
 Group:  Development/Languages/Python
-Url:http://jsbeautifier.org
+URL:http://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.0
+Requires:   python-setuptools
+Requires:   python-six >= 1.6.1
+BuildArch:  noarch
 # SECTION test requirements
 BuildRequires:  %{python_module EditorConfig >= 0.12.0}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module six >= 1.6.1}
 # /SECTION
-BuildRequires:  fdupes
-Requires:   python-EditorConfig >= 0.12.0
-Requires:   python-setuptools
-Requires:   python-six >= 1.6.1
-BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -60,7 +59,6 @@
 %python_exec setup.py test
 
 %files %{python_files}
-%defattr(-,root,root,-)
 %license LICENSE
 %python3_only %{_bindir}/js-beautify
 %{python_sitelib}/jsbeautifier

++ jsbeautifier-1.10.1.tar.gz -> jsbeautifier-1.10.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsbeautifier-1.10.1/PKG-INFO 
new/jsbeautifier-1.10.2/PKG-INFO
--- old/jsbeautifier-1.10.1/PKG-INFO2019-07-18 00:56:14.0 +0200
+++ new/jsbeautifier-1.10.2/PKG-INFO2019-08-06 20:14:40.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: jsbeautifier
-Version: 1.10.1
+Version: 1.10.2
 Summary: JavaScript unobfuscator and beautifier.
 Home-page: https://beautifier.io
 Author: Liam Newman, Einar Lielmanis, et al.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jsbeautifier-1.10.1/jsbeautifier/__version__.py 
new/jsbeautifier-1.10.2/jsbeautifier/__version__.py
--- old/jsbeautifier-1.10.1/jsbeautifier/__version__.py 2019-07-18 
00:54:38.0 +0200
+++ new/jsbeautifier-1.10.2/jsbeautifier/__version__.py 2019-08-06 
20:12:39.0 +0200
@@ -1 +1 @@
-__version__ = '1.10.1'
+__version__ = '1.10.2'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jsbeautifier-1.10.1/jsbeautifier/core/templatablepattern.py 
new/jsbeautifier-1.10.2/jsbeautifier/core/templatablepattern.py
--- old/jsbeautifier-1.10.1/jsbeautifier/core/templatablepattern.py 
2019-06-06 19:35:11.0 +0200
+++ new/jsbeautifier-1.10.2/jsbeautifier/core/templatablepattern.py 
2019-08-06 20:12:39.0 +0200
@@ -38,6 +38,7 @@
 def __init__(self, input_scanner):
 pattern = Pattern(input_scanner)
 self.handlebars_comment = 
pattern.starting_with(r'{{!--').until_after(r'--}}')
+self.handlebars_unescaped = 
pattern.starting_with(r'{{{').until_after(r'}}}')
 self.handlebars = pattern.starting_with(r'{{').until_after(r'}}')
 self.php = pattern.starting_with(r'<\?(?:[=]|php)').until_after(r'\?>')
 self.erb = pattern.starting_with(r'<%[^%]').until_after(r'[^%]%>')
@@ -157,6 +158,8 @@
 resulting_string = resulting_string or \
 self.__patterns.h

commit python-jsbeautifier for openSUSE:Factory

2019-07-24 Thread root
Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2019-07-24 20:36:19

Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and  /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.4126 (New)


Package is "python-jsbeautifier"

Wed Jul 24 20:36:19 2019 rev:4 rq:718133 version:1.10.1

Changes:

--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2019-05-24 11:31:10.821409629 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.4126/python-jsbeautifier.changes
2019-07-24 20:36:20.662568759 +0200
@@ -1,0 +2,7 @@
+Wed Jul 24 08:40:42 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.10.1:
+  * javascript fails to format when  is first text inside 

commit python-jsbeautifier for openSUSE:Factory

2019-05-24 Thread root
Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2019-05-24 11:31:06

Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and  /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.5148 (New)


Package is "python-jsbeautifier"

Fri May 24 11:31:06 2019 rev:3 rq:704824 version:1.10.0

Changes:

--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2018-12-24 11:38:38.953598140 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.5148/python-jsbeautifier.changes
2019-05-24 11:31:10.821409629 +0200
@@ -1,0 +2,10 @@
+Wed May 22 14:13:04 UTC 2019 - pgaj...@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
+
+---

Old:

  jsbeautifier-1.6.14.tar.gz

New:

  LICENSE
  jsbeautifier-1.10.0.tar.gz



Other differences:
--
++ python-jsbeautifier.spec ++
--- /var/tmp/diff_new_pack.5jBlZG/_old  2019-05-24 11:31:11.473409461 +0200
+++ /var/tmp/diff_new_pack.5jBlZG/_new  2019-05-24 11:31:11.477409461 +0200
@@ -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 @@
 
 %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

++ LICENSE ++
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, 

commit python-jsbeautifier for openSUSE:Factory

2018-12-24 Thread root
Hello community,

here is the log from the commit of package python-jsbeautifier for 
openSUSE:Factory checked in at 2018-12-24 11:38:38

Comparing /work/SRC/openSUSE:Factory/python-jsbeautifier (Old)
 and  /work/SRC/openSUSE:Factory/.python-jsbeautifier.new.28833 (New)


Package is "python-jsbeautifier"

Mon Dec 24 11:38:38 2018 rev:2 rq:659451 version:1.6.14

Changes:

--- /work/SRC/openSUSE:Factory/python-jsbeautifier/python-jsbeautifier.changes  
2017-09-11 16:18:29.092986437 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsbeautifier.new.28833/python-jsbeautifier.changes
   2018-12-24 11:38:38.953598140 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:49:32 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-jsbeautifier.spec ++
--- /var/tmp/diff_new_pack.Urf7oD/_old  2018-12-24 11:38:39.421597725 +0100
+++ /var/tmp/diff_new_pack.Urf7oD/_new  2018-12-24 11:38:39.425597721 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jsbeautifier
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -12,7 +12,8 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -20,14 +21,13 @@
 Name:   python-jsbeautifier
 Version:1.6.14
 Release:0
-License:MIT
 Summary:JavaScript unobfuscator and beautifier
-Url:http://jsbeautifier.org
+License:MIT
 Group:  Development/Languages/Python
+Url:http://jsbeautifier.org
 Source: 
https://files.pythonhosted.org/packages/source/j/jsbeautifier/jsbeautifier-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 %if %{with test}
 BuildRequires:  %{python_module EditorConfig >= 0.12.0}
 BuildRequires:  %{python_module pytest}