Accepting request 1127582 from home:kill_it:branches:multimedia:libs

- Switch build to cmake
- add rtmidi-cmake.patch
- Update to version 6.0.0 
  * run "git log 5.0.0..HEAD" to see commits since last release
  * new Android API (thanks to YellowLabrador!)
  * new Windows UWP API support (thanks to Masamichi Hosoda!)
  * various build system updates and code efficiencies

OBS-URL: https://build.opensuse.org/request/show/1127582
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/rtmidi?expand=0&rev=6
This commit is contained in:
Takashi Iwai 2023-11-20 11:48:49 +00:00 committed by Git OBS Bridge
parent 78b65cfcf9
commit 1fef4cf04d
5 changed files with 50 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:48db0ed58c8c0e207b5d7327a0210b5bcaeb50e26387935d02829239b0f3c2b9
size 528747

3
rtmidi-6.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5960ccf64b42c23400720ccc880e2f205677ce9457f747ef758b598acd64db5b
size 1070247

22
rtmidi-cmake.patch Normal file
View File

@ -0,0 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3a85a03..867f179 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@
# CopyPolicy: RtMidi license.
# Set minimum CMake required version for this project.
-cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
# Define a C++ project.
project(RtMidi LANGUAGES CXX C)
@@ -262,7 +262,7 @@ install(TARGETS ${LIB_TARGETS}
export(PACKAGE RtMidi)
# Set installation path for CMake files.
-set(RTMIDI_CMAKE_DESTINATION share/rtmidi)
+set(RTMIDI_CMAKE_DESTINATION ${CMAKE_MODULES_INSTALL_DIR})
# Export library target (build-tree).
export(EXPORT RtMidiTargets

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sun Nov 19 10:51:00 UTC 2023 - Konstantin Voinov <kv@kott.no-ip.biz>
- Switch build to cmake
- add rtmidi-cmake.patch
- Update to version 6.0.0
* run "git log 5.0.0..HEAD" to see commits since last release
* new Android API (thanks to YellowLabrador!)
* new Windows UWP API support (thanks to Masamichi Hosoda!)
* various build system updates and code efficiencies
-------------------------------------------------------------------
Sat Dec 18 01:30:22 UTC 2021 - Simon Lees <sflees@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package rtmidi
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 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 6
%define sover 7
Name: rtmidi
Version: 5.0.0
Version: 6.0.0
Release: 0
Summary: C++ library for realtime MIDI input/ouput
License: MIT
@ -28,8 +28,9 @@ URL: https://www.music.mcgill.ca/~gary/rtmidi/index.html
Source0: https://www.music.mcgill.ca/~gary/rtmidi/release/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE pkgconfig.patch avvissu@yandex.ru
Patch0: rtmidi-4.0.0-pkgconfig.patch
BuildRequires: autoconf
BuildRequires: automake
# PATCH-FIX-OPENSUSE set proper .cmake files path, lower cmake version for Leap (3.24 is required for Android)
Patch1: rtmidi-cmake.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
@ -66,16 +67,20 @@ application that use %{name}.
%prep
%setup -q
%patch0 -p1
%autopatch -p1
%build
# generate rtmidi-config for compatibility
%configure --disable-static \
--with-jack \
--with-alsa
make %{?_smp_mflags} CXXFLAGS="%{optflags}" V=1
%cmake
%cmake_build
%install
%make_install
%cmake_install
install -Dm0755 %{name}-config %{buildroot}%{_bindir}/%{name}-config
find %{buildroot} -type f -name "*.la" -delete -print
@ -91,5 +96,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}
%changelog