Accepting request 1127680 from multimedia:libs

OBS-URL: https://build.opensuse.org/request/show/1127680
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rtmidi?expand=0&rev=4
This commit is contained in:
Ana Guerrero 2023-11-20 20:20:08 +00:00 committed by Git OBS Bridge
commit 9888362d8c
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> Sat Dec 18 01:30:22 UTC 2021 - Simon Lees <sflees@suse.de>

View File

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