commit python-rjsmin for openSUSE:Leap:15.2

2020-04-30 Thread root
Hello community,

here is the log from the commit of package python-rjsmin for openSUSE:Leap:15.2 
checked in at 2020-04-30 18:51:54

Comparing /work/SRC/openSUSE:Leap:15.2/python-rjsmin (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-rjsmin.new.2738 (New)


Package is "python-rjsmin"

Thu Apr 30 18:51:54 2020 rev:13 rq:796338 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-rjsmin/python-rjsmin.changes
2020-03-15 13:35:55.982822764 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-rjsmin.new.2738/python-rjsmin.changes  
2020-04-30 18:51:55.264659386 +0200
@@ -1,0 +2,5 @@
+Mon Apr 20 09:44:09 UTC 2020 - Tomáš Chvátal 
+
+- Fix build without python2
+
+---



Other differences:
--
++ python-rjsmin.spec ++
--- /var/tmp/diff_new_pack.URIpWi/_old  2020-04-30 18:51:55.608660112 +0200
+++ /var/tmp/diff_new_pack.URIpWi/_new  2020-04-30 18:51:55.608660112 +0200
@@ -19,6 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define mod_name rjsmin
 %define release_sha 53a0848b2372c1b49c03326bc8209ea39e889c47
+%bcond_without python2
 Name:   python-%{mod_name}
 Version:1.1.0
 Release:0
@@ -32,9 +33,11 @@
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-mock
 BuildRequires:  python-rpm-macros
 Obsoletes:  %{name}-doc
+%if %{with python2}
+BuildRequires:  python-mock
+%endif
 %python_subpackages
 
 %description




commit python-rjsmin for openSUSE:Leap:15.2

2020-03-15 Thread root
Hello community,

here is the log from the commit of package python-rjsmin for openSUSE:Leap:15.2 
checked in at 2020-03-15 13:35:55

Comparing /work/SRC/openSUSE:Leap:15.2/python-rjsmin (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-rjsmin.new.3160 (New)


Package is "python-rjsmin"

Sun Mar 15 13:35:55 2020 rev:12 rq:783342 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-rjsmin/python-rjsmin.changes
2020-02-20 00:07:56.240191885 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-rjsmin.new.3160/python-rjsmin.changes  
2020-03-15 13:35:55.982822764 +0100
@@ -1,0 +2,5 @@
+Mon Mar  9 09:45:29 UTC 2020 - Tomáš Chvátal 
+
+- Update reproducible.patch to also remove Werror from flags
+
+---



Other differences:
--
++ python-rjsmin.spec ++
--- /var/tmp/diff_new_pack.QUd7eW/_old  2020-03-15 13:35:56.358822989 +0100
+++ /var/tmp/diff_new_pack.QUd7eW/_new  2020-03-15 13:35:56.362822991 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rjsmin
 #
-# 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
@@ -24,7 +24,6 @@
 Release:0
 Summary:A JavaScript minifier written in Python
 License:Apache-2.0
-Group:  Development/Languages/Python
 URL:http://opensource.perlig.de/rjsmin/
 Source: 
https://github.com/ndparker/rjsmin/archive/%{release_sha}.tar.gz#/%{mod_name}-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE -- build without profiling

++ reproducible.patch ++
--- /var/tmp/diff_new_pack.QUd7eW/_old  2020-03-15 13:35:56.382823003 +0100
+++ /var/tmp/diff_new_pack.QUd7eW/_new  2020-03-15 13:35:56.382823003 +0100
@@ -8,14 +8,32 @@
 ===
 --- rjsmin-53a0848b2372c1b49c03326bc8209ea39e889c47.orig/debug.unix.cflags
 +++ rjsmin-53a0848b2372c1b49c03326bc8209ea39e889c47/debug.unix.cflags
-@@ -1,10 +1,6 @@
- # allow crash debugging
- -ggdb
- 
+@@ -1,28 +0,0 @@
+-# allow crash debugging
+--ggdb
+-
 -# produce coverage reports
 --ftest-coverage
 --fprofile-arcs
 -
- # don't compile on weird code
- -std=c89 -pedantic -fno-strict-aliasing -Werror
- -Wall
+-# don't compile on weird code
+--std=c89 -pedantic -fno-strict-aliasing -Werror
+--Wall
+--Wbad-function-cast
+--Wcast-align
+--Wcast-qual
+--Wconversion
+--Wdeclaration-after-statement
+--Wextra
+--Winit-self
+--Wmissing-declarations
+--Wmissing-include-dirs
+--Wmissing-prototypes
+--Wnested-externs
+--Wno-long-long
+--Wno-missing-field-initializers
+--Wno-overlength-strings
+--Wno-unused-parameter
+--Wshadow
+--Wstrict-overflow=4
+--Wundef




commit python-rjsmin for openSUSE:Leap:15.2

2020-02-19 Thread root
Hello community,

here is the log from the commit of package python-rjsmin for openSUSE:Leap:15.2 
checked in at 2020-02-20 00:07:53

Comparing /work/SRC/openSUSE:Leap:15.2/python-rjsmin (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-rjsmin.new.26092 (New)


Package is "python-rjsmin"

Thu Feb 20 00:07:53 2020 rev:11 rq:766786 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-rjsmin/python-rjsmin.changes
2020-01-15 15:52:42.175572440 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-rjsmin.new.26092/python-rjsmin.changes 
2020-02-20 00:07:56.240191885 +0100
@@ -1,0 +2,18 @@
+Sun Jun  2 20:54:38 UTC 2019 - Jan Engelhardt 
+
+- Avoid name repetition in summary.
+
+---
+Sat May 18 02:29:20 UTC 2019 - Bernhard Wiedemann 
+
+- Add reproducible.patch to build without profiling (boo#1040589)
+
+---
+Wed May 15 18:27:39 UTC 2019 - Ethan Apodaca 
+
+- Update to 1.1.0
+  + See changes file for changes
+- Add check phase to spec 
+- Remove documentation subpackage
+
+---

Old:

  rjsmin-1.0.12.tar.gz

New:

  reproducible.patch
  rjsmin-1.1.0.tar.gz



Other differences:
--
++ python-rjsmin.spec ++
--- /var/tmp/diff_new_pack.b1KKUW/_old  2020-02-20 00:07:56.748192867 +0100
+++ /var/tmp/diff_new_pack.b1KKUW/_new  2020-02-20 00:07:56.764192898 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rjsmin
 #
-# Copyright (c) 2017 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
@@ -12,60 +12,57 @@
 # 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-%{**}}
-
 %define mod_name rjsmin
-
+%define release_sha 53a0848b2372c1b49c03326bc8209ea39e889c47
 Name:   python-%{mod_name}
-Version:1.0.12
+Version:1.1.0
 Release:0
-Summary:RJSmin is a JavaScript Minifier Written in Python
+Summary:A JavaScript minifier written in Python
 License:Apache-2.0
 Group:  Development/Languages/Python
-Url:http://opensource.perlig.de/rjsmin/
-Source: 
https://files.pythonhosted.org/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz
+URL:http://opensource.perlig.de/rjsmin/
+Source: 
https://github.com/ndparker/rjsmin/archive/%{release_sha}.tar.gz#/%{mod_name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE -- build without profiling
+Patch0: reproducible.patch
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
+BuildRequires:  python-mock
 BuildRequires:  python-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-
+Obsoletes:  %{name}-doc
 %python_subpackages
 
 %description
-rJSmin is a javascript minifier written in python.
+rJSmin is a Javascript minifier written in Python.
 
 The minifier is based on the semantics of jsmin.c by Douglas Crockford.
 
-The module is a re-implementation aiming for speed, so it can be used
+The module is a re-implementation targeting speed, so it can be used
 at runtime (rather than during a preprocessing step).
 
-%package -n %{name}-docs
-Summary:Documentation files for %name
-Group:  Documentation/HTML
-
-%description -n %{name}-docs
-HTML Documentation and examples for %name.
-
 %prep
-%setup -q -n %{mod_name}-%{version}
+%setup -q -n %{mod_name}-%{release_sha}
+%autopatch -p1
 
 %build
 %python_build
 
 %install
 %python_install
-rm -rf %{buildroot}/usr/share/doc/rjsmin
+rm -rf %{buildroot}%{_datadir}/doc/rjsmin
+
+%check
+%pytest_arch
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE README.rst docs/CHANGES
+%license LICENSE
+%doc README.md docs/CHANGES
 %{python_sitearch}/*
 
-%files -n %{name}-docs
-%doc docs/apidoc/
-
 %changelog

++ reproducible.patch ++
Date: 2019-05-18
Author: Bernhard M. Wiedemann 

Do not instrument code with profiling
to make build reproducible
and also more sane in general
Index: rjsmin-53a0848b2372c1b49c03326bc8209ea39e889c47/debug.unix.cflags
===
--- rjsmin-53a0848b2372c1b49c03326bc8209ea39e889c47.orig/debug.unix.cflags
+++