Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package facedetect for openSUSE:Factory 
checked in at 2021-02-15 23:19:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/facedetect (Old)
 and      /work/SRC/openSUSE:Factory/.facedetect.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "facedetect"

Mon Feb 15 23:19:40 2021 rev:2 rq:872543 version:0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/facedetect/facedetect.changes    2018-01-31 
19:54:34.421993768 +0100
+++ /work/SRC/openSUSE:Factory/.facedetect.new.28504/facedetect.changes 
2021-02-15 23:21:32.327865252 +0100
@@ -1,0 +2,13 @@
+Mon Feb 15 08:24:42 UTC 2021 - Jan Engelhardt <jeng...@inai.de>
+
+- Trim filler wording from descriptions.
+
+-------------------------------------------------------------------
+Sun Feb 14 13:53:52 UTC 2021 - Sebastian Wagner <sebix+novell....@sebix.at>
+
+- rename 8037d4406eb76dd5c106819f72c3562f8b255b5b.patch to python3.patch
+- switch source and patch URLs to gitlab
+- remove %check as that crashed on OBS, but not locally.
+- fix shebang by removing env.
+
+-------------------------------------------------------------------

Old:
----
  8037d4406eb76dd5c106819f72c3562f8b255b5b.patch
  v0.1.tar.gz

New:
----
  facedetect-0.1.tar.gz
  python3.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ facedetect.spec ++++++
--- /var/tmp/diff_new_pack.gs75Vc/_old  2021-02-15 23:21:32.931866154 +0100
+++ /var/tmp/diff_new_pack.gs75Vc/_new  2021-02-15 23:21:32.935866159 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package facedetect
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,34 +12,36 @@
 # 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/
 #
 
 
 Name:           facedetect
 Version:        0.1
 Release:        0
-Summary:        A simple face detector for batch processing
-License:        GPL-2.0+
+Summary:        A face detector for batch processing
+License:        GPL-2.0-or-later
 Group:          Productivity/Graphics/Other
-Url:            https://www.thregr.org/~wavexx/software/facedetect/
-Source:         https://github.com/wavexx/facedetect/archive/v%{version}.tar.gz
-Patch1:         
https://github.com/wavexx/facedetect/commit/8037d4406eb76dd5c106819f72c3562f8b255b5b.patch
+URL:            https://www.thregr.org/~wavexx/software/facedetect/
+Source:         
https://gitlab.com/wavexx/facedetect/-/archive/v%{version}/facedetect-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch1:         
https://gitlab.com/wavexx/facedetect/-/commit/8037d4406eb76dd5c106819f72c3562f8b255b5b.patch#/python3.patch
 BuildRequires:  python3-numpy
 BuildRequires:  python3-opencv
 Requires:       python3-numpy
 Requires:       python3-opencv
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
 %description
-facedetect is a simple face detector for batch processing. It answers the 
basic question: ???Is there a face in this image???? and gives back either an 
exit code or the coordinates of each detected face in the standard output.
+facedetect is a face detector for batch processing. It determines
+whether there is a face in an image and gives back either an exit
+code or the coordinates of each detected face, on standard output.
 
-The aim is to provide a basic command-line interface that???s consistent and 
easy to use with software such as ImageMagick, while progressively improving 
the detection algorithm over time.
+It provides a basic command-line interface that can be used with
+software such as ImageMagick.
 
 %prep
-%setup -q
-%patch1 -p1
+%autosetup -p1 -n %{name}-v%{version}
+sed -i '1s/^#!\/usr\/bin\/env /#!\/usr\/bin\//' facedetect
 
 %build
 
@@ -47,17 +49,9 @@
 mkdir -p %{buildroot}%{_bindir}
 install -m 755 facedetect %{buildroot}%{_bindir}
 
-%check
-./%{name} -h
-
 %files
-%defattr(-,root,root)
 %doc README.rst
-%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
 %license COPYING.txt
-%else
-%doc COPYING.txt
-%endif
 %{_bindir}/%name
 
 %changelog

++++++ python3.patch ++++++
>From 8037d4406eb76dd5c106819f72c3562f8b255b5b Mon Sep 17 00:00:00 2001
From: Yuri D'Elia <wav...@thregr.org>
Date: Wed, 5 Apr 2017 14:40:12 +0200
Subject: [PATCH] Prefer Python 3 over 2.7

---
 README.rst | 6 +++---
 facedetect | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/README.rst b/README.rst
index b42ca32..f885896 100644
--- a/README.rst
+++ b/README.rst
@@ -132,13 +132,13 @@ Dependencies
 
 The following software is currently required for `facedetect`:
 
-- Python
-- Python OpenCV (``python-opencv``)
+- Python 3 or Python 2.7
+- Python OpenCV >= 2.4 (``python3-opencv`` or ``python-opencv``)
 - OpenCV data files (``opencv-data`` if available, or ``libopencv-dev``)
 
 On Debian/Ubuntu, you can install all the required dependencies with::
 
-  sudo apt-get install python python-opencv libopencv-dev
+  sudo apt-get install python3-opencv opencv-data
 
 and then install `facedetect` with::
 
diff --git a/facedetect b/facedetect
index 4b18a1a..f53d0b9 100755
--- a/facedetect
+++ b/facedetect
@@ -1,8 +1,8 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # facedetect: a simple face detector for batch processing
 # Copyright(c) 2013-2016 by wave++ "Yuri D'Elia" <wav...@thregr.org>
 # Distributed under GPLv2+ (see COPYING) WITHOUT ANY WARRANTY.
-from __future__ import print_function, division
+from __future__ import print_function, division, generators, unicode_literals
 
 import argparse
 import numpy as np
@@ -58,7 +58,7 @@ def fatal(msg):
 
 
 def load_cascades(data_dir):
-    for k, v in PROFILES.iteritems():
+    for k, v in PROFILES.items():
         v = os.path.join(data_dir, v)
         try:
             if not os.path.exists(v):
@@ -258,7 +258,7 @@ def __main__():
 
             if args.debug:
                 lines = []
-                for k, v in scores[i].iteritems():
+                for k, v in scores[i].items():
                     lines.append("{}: {}".format(k, v))
                 h = rect[1] + rect[3] + fontHeight
                 for line in lines:
-- 
GitLab

Reply via email to