2018-04-19 21:54:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package rtmidi
|
|
|
|
#
|
2023-11-20 12:48:49 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-04-19 21:54:34 +02:00
|
|
|
# Copyright (c) 2015 Packman Team <packman@links2linux.de>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-22 17:15:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-04-19 21:54:34 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-11-20 12:48:49 +01:00
|
|
|
%define sover 7
|
2018-04-19 21:54:34 +02:00
|
|
|
Name: rtmidi
|
2023-11-20 12:48:49 +01:00
|
|
|
Version: 6.0.0
|
2018-04-19 21:54:34 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: C++ library for realtime MIDI input/ouput
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2019-04-22 17:15:20 +02:00
|
|
|
URL: https://www.music.mcgill.ca/~gary/rtmidi/index.html
|
2018-04-19 21:54:34 +02:00
|
|
|
Source0: https://www.music.mcgill.ca/~gary/rtmidi/release/%{name}-%{version}.tar.gz
|
|
|
|
# PATCH-FIX-OPENSUSE pkgconfig.patch avvissu@yandex.ru
|
2023-11-26 05:43:59 +01:00
|
|
|
Patch0: rtmidi-6.0.0-pkgconfig.patch
|
2023-11-20 12:48:49 +01:00
|
|
|
# PATCH-FIX-OPENSUSE set proper .cmake files path, lower cmake version for Leap (3.24 is required for Android)
|
|
|
|
Patch1: rtmidi-cmake.patch
|
2023-11-26 05:43:59 +01:00
|
|
|
# PATCH-FIX-UPSTREAM ALSA: Avoid listing ports that are usually from 3rd.party
|
|
|
|
Patch2: ALSA-Avoid-listing-ports-that-are-usually-from-3rd-party.patch
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2023-11-20 12:48:49 +01:00
|
|
|
BuildRequires: cmake
|
2018-04-19 21:54:34 +02:00
|
|
|
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
|
2023-11-20 12:48:49 +01:00
|
|
|
%autopatch -p1
|
2018-04-19 21:54:34 +02:00
|
|
|
|
|
|
|
%build
|
2023-11-20 12:48:49 +01:00
|
|
|
|
|
|
|
# generate rtmidi-config for compatibility
|
2018-04-19 21:54:34 +02:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-jack \
|
|
|
|
--with-alsa
|
2023-11-20 12:48:49 +01:00
|
|
|
|
|
|
|
%cmake
|
|
|
|
%cmake_build
|
2018-04-19 21:54:34 +02:00
|
|
|
|
|
|
|
%install
|
2023-11-20 12:48:49 +01:00
|
|
|
%cmake_install
|
2018-04-19 21:54:34 +02:00
|
|
|
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
|
2023-11-20 12:48:49 +01:00
|
|
|
%{_libdir}/cmake/%{name}
|
2018-04-19 21:54:34 +02:00
|
|
|
|
|
|
|
%changelog
|