From 78b65cfcf98d8171c621168e51014e425af0b54e762f216e794c57e1e53bf83f Mon Sep 17 00:00:00 2001
From: Luigi Baldoni <aloisio@gmx.com>
Date: Sat, 18 Dec 2021 18:29:00 +0000
Subject: [PATCH] Accepting request 941348 from home:simotek:multimedia

- Update to Version 5.0.0
  * see git history for complete list of changes
  * new Web MIDI API
  * iOS support
  * new setBufferSize() function
  * fixes for WinMM, Jack
  * added C API test program
  * now requiring C++11
  * build system updates
  * midiprobe probes all compiled APIs
  * various build system updates and code efficiencies
- Refreshed rtmidi-4.0.0-pkgconfig.patch
- Update to version 4.0.0
  * see git history for complete list of changes
  * updates to test programs to clarify port numbering
  * new C API wrapper
  * new functions to get API names
  * miscellaneous sysex fixes in Jack and ALSA
  * new setPortName() method (for Jack and ALSA)
  * new setClientName() method (for ALSA)
  * various build system updates and code efficiencies
- Refreshed rtmidi-2.1.1-pkgconfig.patch as
  rtmidi-4.0.0-pkgconfig.patch
- Update to version 3.0.0
  * The version number has been bumped to 3.0.0 because of the
    past API change concerning the renaming of the RtError class
    to RtMidiError. Changes in this release include:
    + see git history for complete list of changes
    + new sendMessage() function that does not use std::vector
    + various std::string updates, including use of UTF8 for port
      names
    + fixes for the MIDI queue
    + various build system updates and code efficiencies
- Spec cleanup
- Change path to headers
- Drop _service file
- Update to version 2.1.1
 * update pkgconfig.patch
- Initial release

OBS-URL: https://build.opensuse.org/request/show/941348
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/rtmidi?expand=0&rev=5
---
 rtmidi-4.0.0-pkgconfig.patch | 10 +++++-----
 rtmidi-4.0.0.tar.gz          |  3 ---
 rtmidi-5.0.0.tar.gz          |  3 +++
 rtmidi.changes               | 19 +++++++++++++++++--
 rtmidi.spec                  |  6 +++---
 5 files changed, 28 insertions(+), 13 deletions(-)
 delete mode 100644 rtmidi-4.0.0.tar.gz
 create mode 100644 rtmidi-5.0.0.tar.gz

diff --git a/rtmidi-4.0.0-pkgconfig.patch b/rtmidi-4.0.0-pkgconfig.patch
index f6c8f72..d57a444 100644
--- a/rtmidi-4.0.0-pkgconfig.patch
+++ b/rtmidi-4.0.0-pkgconfig.patch
@@ -1,7 +1,7 @@
-Index: rtmidi-4.0.0/rtmidi.pc.in
+Index: rtmidi-5.0.0/rtmidi.pc.in
 ===================================================================
---- rtmidi-4.0.0.orig/rtmidi.pc.in
-+++ rtmidi-4.0.0/rtmidi.pc.in
+--- rtmidi-5.0.0.orig/rtmidi.pc.in
++++ rtmidi-5.0.0/rtmidi.pc.in
 @@ -1,12 +1,12 @@
  prefix=@prefix@
 -exec_prefix=${prefix}
@@ -15,8 +15,8 @@ Index: rtmidi-4.0.0/rtmidi.pc.in
 +Name: rtmidi
  Description: RtMidi - a set of C++ classes that provide a common API for realtime MIDI input/output
  Version: @PACKAGE_VERSION@
- Requires: @req@ 
+ Requires.private: @req@
  Libs: -L${libdir} -lrtmidi
- Libs.private: -lpthread
+ Libs.private: -lpthread @req_libs@
 -Cflags: -pthread -I${includedir} @api@
 +Cflags: -pthread -I${includedir}/rtmidi @api@
diff --git a/rtmidi-4.0.0.tar.gz b/rtmidi-4.0.0.tar.gz
deleted file mode 100644
index 0238df3..0000000
--- a/rtmidi-4.0.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:370cfe710f43fbeba8d2b8c8bc310f314338c519c2cf2865e2d2737b251526cd
-size 509743
diff --git a/rtmidi-5.0.0.tar.gz b/rtmidi-5.0.0.tar.gz
new file mode 100644
index 0000000..205e1c5
--- /dev/null
+++ b/rtmidi-5.0.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:48db0ed58c8c0e207b5d7327a0210b5bcaeb50e26387935d02829239b0f3c2b9
+size 528747
diff --git a/rtmidi.changes b/rtmidi.changes
index 5c11105..4aed1ff 100644
--- a/rtmidi.changes
+++ b/rtmidi.changes
@@ -1,3 +1,19 @@
+-------------------------------------------------------------------
+Sat Dec 18 01:30:22 UTC 2021 - Simon Lees <sflees@suse.de>
+
+- Update to Version 5.0.0
+  * see git history for complete list of changes
+  * new Web MIDI API
+  * iOS support
+  * new setBufferSize() function
+  * fixes for WinMM, Jack
+  * added C API test program
+  * now requiring C++11
+  * build system updates
+  * midiprobe probes all compiled APIs
+  * various build system updates and code efficiencies
+- Refreshed rtmidi-4.0.0-pkgconfig.patch
+
 -------------------------------------------------------------------
 Mon Apr 22 14:03:48 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
 
@@ -33,7 +49,7 @@ Thu Apr 19 11:31:53 UTC 2018 - aloisio@gmx.com
 -------------------------------------------------------------------
 Thu May 25 20:20:59 UTC 2017 - avvissu@yandex.by
 
-- Change path to headers 
+- Change path to headers
 - Drop _service file
 
 -------------------------------------------------------------------
@@ -46,4 +62,3 @@ Mon Jan 30 07:51:49 UTC 2017 - edogawa@aon.at
 Wed Jun 24 04:10:30 UTC 2015 - avvissu@yandex.ru
 
 - Initial release
-
diff --git a/rtmidi.spec b/rtmidi.spec
index 44b04ca..8a3c945 100644
--- a/rtmidi.spec
+++ b/rtmidi.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package rtmidi
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2015 Packman Team <packman@links2linux.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,9 +17,9 @@
 #
 
 
-%define sover   5
+%define sover   6
 Name:           rtmidi
-Version:        4.0.0
+Version:        5.0.0
 Release:        0
 Summary:        C++ library for realtime MIDI input/ouput
 License:        MIT