commit ac4ea87d34b865e7323e62f07ef6d9914783f7a015eb6b3f49a35174e634a29f Author: Tomáš Chvátal Date: Thu Apr 19 19:54:34 2018 +0000 Accepting request 598802 from home:alois:branches:multimedia:libs Brought over from Packman (2nd attempt) OBS-URL: https://build.opensuse.org/request/show/598802 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/rtmidi?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/rtmidi-2.1.1-pkgconfig.patch b/rtmidi-2.1.1-pkgconfig.patch new file mode 100644 index 0000000..bfdfdb9 --- /dev/null +++ b/rtmidi-2.1.1-pkgconfig.patch @@ -0,0 +1,22 @@ +diff -up rtmidi-2.1.1/rtmidi.pc.in.orig rtmidi-2.1.1/rtmidi.pc.in +--- rtmidi-2.1.1/rtmidi.pc.in.orig 2016-02-13 19:10:12.000000000 +0100 ++++ rtmidi-2.1.1/rtmidi.pc.in 2017-01-30 09:57:26.476566712 +0100 +@@ -1,12 +1,12 @@ + prefix=@prefix@ +-exec_prefix=${prefix} +-libdir=${exec_prefix}/lib +-includedir=${prefix}/include/rtmidi ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ + +-Name: librtmidi ++Name: rtmidi + Description: RtMidi - a set of C++ classes that provide a common API for realtime MIDI input/output + Version: @PACKAGE_VERSION@ + Requires: @req@ + Libs: -L${libdir} -lrtmidi + Libs.private: -lpthread +-Cflags: -pthread -I${includedir} @CPPFLAGS@ +\ Kein Zeilenumbruch am Dateiende. ++Cflags: -pthread @CPPFLAGS@ diff --git a/rtmidi-3.0.0.tar.gz b/rtmidi-3.0.0.tar.gz new file mode 100644 index 0000000..eaf1cc3 --- /dev/null +++ b/rtmidi-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6ee3620236904a1067bd615ff012f1064cbfb389b09ac0b847bbcbd0f565214 +size 486434 diff --git a/rtmidi.changes b/rtmidi.changes new file mode 100644 index 0000000..da44dfb --- /dev/null +++ b/rtmidi.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Thu Apr 19 11:31:53 UTC 2018 - aloisio@gmx.com + +- 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 + +------------------------------------------------------------------- +Thu May 25 20:20:59 UTC 2017 - avvissu@yandex.by + +- Change path to headers +- Drop _service file + +------------------------------------------------------------------- +Mon Jan 30 07:51:49 UTC 2017 - edogawa@aon.at + +- Update to version 2.1.1 + + * update pkgconfig.patch +------------------------------------------------------------------- +Wed Jun 24 04:10:30 UTC 2015 - avvissu@yandex.ru + +- Initial release + diff --git a/rtmidi.spec b/rtmidi.spec new file mode 100644 index 0000000..f6625b7 --- /dev/null +++ b/rtmidi.spec @@ -0,0 +1,96 @@ +# +# spec file for package rtmidi +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2015 Packman Team +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define sover 4 +Name: rtmidi +Version: 3.0.0 +Release: 0 +Summary: C++ library for realtime MIDI input/ouput +License: MIT +Group: Productivity/Multimedia/Sound/Utilities +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-2.1.1-pkgconfig.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(jack) + +%description +RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut and API-specific +classes) that provides a common API (Application Programming Interface) for +realtime MIDI input/output across ALSA & JACK. + +%package -n lib%{name}%{sover} +Summary: C++ library for realtime MIDI input/ouput +Group: System/Libraries + +%description -n lib%{name}%{sover} +RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut and API-specific +classes) that provides a common API (Application Programming Interface) for +realtime MIDI input/output across ALSA & JACK. + +This package provides the shared library. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries/C and C++ +Requires: lib%{name}%{sover} = %{version} +Requires: pkgconfig(alsa) +Requires: pkgconfig(jack) + +%description devel +C++ library for realtime MIDI input/ouput. + +This package contains header files and libraries needed to develop +application that use %{name}. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure --disable-static \ + --with-jack \ + --with-alsa +make %{?_smp_mflags} CXXFLAGS="%{optflags}" V=1 + +%install +%make_install +sed -i '/LIBRARY/s|\ -L/usr/lib||' %{name}-config +install -Dm0755 %{name}-config %{buildroot}%{_bindir}/%{name}-config +find %{buildroot} -type f -name "*.la" -delete -print + +%post -n lib%{name}%{sover} -p /sbin/ldconfig +%postun -n lib%{name}%{sover} -p /sbin/ldconfig + +%files -n lib%{name}%{sover} +%{_libdir}/lib%{name}.so.* + +%files devel +%license README.md +%{_bindir}/%{name}-config +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog