Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-zignal for openSUSE:Factory 
checked in at 2023-02-08 17:20:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zignal (Old)
 and      /work/SRC/openSUSE:Factory/.python-zignal.new.4462 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-zignal"

Wed Feb  8 17:20:29 2023 rev:6 rq:1063752 version:0.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zignal/python-zignal.changes      
2021-02-15 23:19:20.975669068 +0100
+++ /work/SRC/openSUSE:Factory/.python-zignal.new.4462/python-zignal.changes    
2023-02-08 17:20:54.590124789 +0100
@@ -1,0 +2,6 @@
+Wed Feb  8 09:12:08 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Add numpy-1.24.patch to make it work with numpy >= 1.24
+  gh#ronnyandersson/zignal#11
+
+-------------------------------------------------------------------

New:
----
  numpy-1.24.patch

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

Other differences:
------------------
++++++ python-zignal.spec ++++++
--- /var/tmp/diff_new_pack.HHAoCR/_old  2023-02-08 17:20:55.122127401 +0100
+++ /var/tmp/diff_new_pack.HHAoCR/_new  2023-02-08 17:20:55.130127440 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-zignal
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
 %define         skip_python36 1
 Name:           python-zignal
@@ -26,6 +25,8 @@
 License:        MIT
 URL:            https://github.com/ronnyandersson/zignal
 Source:         
https://github.com/ronnyandersson/zignal/archive/%{version}.tar.gz#/zignal-%{version}.tar.gz
+# PACH-FIX-OPENSUSE numpy-1.24.patch gh#ronnyandersson/zignal#11
+Patch0:         numpy-1.24.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -34,7 +35,7 @@
 Requires:       python-samplerate
 Requires:       python-scipy
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 Recommends:     python-PyAudio
 BuildArch:      noarch
 # SECTION test requirements
@@ -50,7 +51,7 @@
 This is a python audio signal processing library.
 
 %prep
-%setup -q -n zignal-%{version}
+%autosetup -p1 -n zignal-%{version}
 
 %build
 %python_build
@@ -76,6 +77,7 @@
 %license LICENSE.txt
 %doc README.md
 %python_alternative %{_bindir}/zignal-listsndcards
-%{python_sitelib}/*
+%{python_sitelib}/zignal
+%{python_sitelib}/zignal-%{version}*-info
 
 %changelog

++++++ numpy-1.24.patch ++++++
Index: zignal-0.6.0/zignal/music/scales.py
===================================================================
--- zignal-0.6.0.orig/zignal/music/scales.py
+++ zignal-0.6.0/zignal/music/scales.py
@@ -56,7 +56,7 @@ def piano_freq2key(f, a=49, tuning=440,
     key = 12*np.log2(f/tuning) + a
 
     if quantise:
-        key = np.int(np.round(key))
+        key = int(np.round(key))
 
     return key
 

Reply via email to