diff --git a/rtmidi-5.0.0.tar.gz b/rtmidi-5.0.0.tar.gz deleted file mode 100644 index 205e1c5..0000000 --- a/rtmidi-5.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48db0ed58c8c0e207b5d7327a0210b5bcaeb50e26387935d02829239b0f3c2b9 -size 528747 diff --git a/rtmidi-6.0.0.tar.gz b/rtmidi-6.0.0.tar.gz new file mode 100644 index 0000000..4c05258 --- /dev/null +++ b/rtmidi-6.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5960ccf64b42c23400720ccc880e2f205677ce9457f747ef758b598acd64db5b +size 1070247 diff --git a/rtmidi-cmake.patch b/rtmidi-cmake.patch new file mode 100644 index 0000000..35cb7b3 --- /dev/null +++ b/rtmidi-cmake.patch @@ -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 diff --git a/rtmidi.changes b/rtmidi.changes index 4aed1ff..8c17787 100644 --- a/rtmidi.changes +++ b/rtmidi.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sun Nov 19 10:51:00 UTC 2023 - Konstantin Voinov + +- 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 diff --git a/rtmidi.spec b/rtmidi.spec index 8a3c945..7c100e8 100644 --- a/rtmidi.spec +++ b/rtmidi.spec @@ -1,7 +1,7 @@ # # spec file for package rtmidi # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2015 Packman Team # # 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