SHA256
1
0
forked from pool/rtmidi
rtmidi/rtmidi.spec
Luigi Baldoni 78b65cfcf9 Accepting request 941348 from home:simotek:multimedia
- Update to Version 5.0.0
  * see git history for complete list of changes
  * new Web MIDI API
  * iOS support
  * new setBufferSize() function
  * fixes for WinMM, Jack
  * added C API test program
  * now requiring C++11
  * build system updates
  * midiprobe probes all compiled APIs
  * various build system updates and code efficiencies
- Refreshed rtmidi-4.0.0-pkgconfig.patch
- Update to version 4.0.0
  * see git history for complete list of changes
  * updates to test programs to clarify port numbering
  * new C API wrapper
  * new functions to get API names
  * miscellaneous sysex fixes in Jack and ALSA
  * new setPortName() method (for Jack and ALSA)
  * new setClientName() method (for ALSA)
  * various build system updates and code efficiencies
- Refreshed rtmidi-2.1.1-pkgconfig.patch as
  rtmidi-4.0.0-pkgconfig.patch
- 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
- Change path to headers
- Drop _service file
- Update to version 2.1.1
 * update pkgconfig.patch
- Initial release

OBS-URL: https://build.opensuse.org/request/show/941348
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/rtmidi?expand=0&rev=5
2021-12-18 18:29:00 +00:00

96 lines
2.9 KiB
RPMSpec

#
# spec file for package rtmidi
#
# Copyright (c) 2021 SUSE LLC
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 6
Name: rtmidi
Version: 5.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-4.0.0-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
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