wildmidi/wildmidi.spec
Takashi Iwai b5a85fb408 Accepting request 647435 from home:alois:branches:multimedia:libs
- Update to version 0.4.2
  * Fixed CVE-2017-11661, CVE-2017-11662, CVE-2017-11663,
    CVE-2017-11664 (Bug #175).
  * Fixed WildMidi_Open() might read beyond buffer with too
    short inputs (Bug #178).
  * Fixed a buffer overflow during playback with malformed midi
    files (Bug #180).
  * GUS patch processing changes to meet users expectations (Bug
    #132).
  * Worked around a build failure with newer FreeBSD versions
    failing to retrieve the ONLCR constant (Bug #171).
  * Fixed a minor Windows unicode issue (PR #170).
  * A few other fixes / clean-ups.
- Spec cleanup
- Initial openSUSE package based on Fedora’s

OBS-URL: https://build.opensuse.org/request/show/647435
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/wildmidi?expand=0&rev=1
2018-11-09 08:30:48 +00:00

99 lines
3.0 KiB
RPMSpec

#
# spec file for package wildmidi
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2007-2016 Hans de Goede <j.w.r.degoede@hhs.nl>
# Copyright (c) 2016 Pauline Emily <vilene@posteo.net>
#
# 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 soname libWildMidi2
Name: wildmidi
Version: 0.4.2
Release: 0
Summary: Softsynth midi player
License: GPL-3.0-or-later
Group: Productivity/Multimedia/Sound/Midi
URL: https://www.mindwerks.net/projects/wildmidi
Source: https://github.com/Mindwerks/wildmidi/archive/%{name}-%{version}.tar.gz
Source1: %{name}.cfg
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(openal)
Requires: %{soname} = %{version}
%description
WildMidi is a software midi player which has a core softsynth library that can
be used with other applications.
%package devel
Summary: Development files for %{name}
License: LGPL-3.0-or-later
Group: Development/Libraries/C and C++
Requires: %{soname} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n %{soname}
Summary: WildMidi Midi Wavetable Synth Lib
License: LGPL-3.0-or-later
Group: System/Libraries
Requires: timidity
%description -n %{soname}
This package contains the WildMidi core softsynth library. The library is
designed to process a midi file and stream out the stereo audio data
through a buffer which an external program can then process further.
%prep
%setup -q -n %{name}-%{name}-%{version}
dos2unix -c ascii COPYING
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
install -d %{buildroot}%{_sysconfdir}/wildmidi
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/wildmidi
%post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig
%files
%license COPYING docs/license/GPLv3.txt
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%files devel
%{_includedir}/%{name}_lib.h
%{_libdir}/libWildMidi.so
%{_libdir}/pkgconfig/wildmidi.pc
%{_mandir}/man3/WildMidi_*.3%{?ext_man}
%files -n %{soname}
%license docs/license/LGPLv3.txt
%{_libdir}/libWildMidi.so.*
%{_mandir}/man5/%{name}.cfg.5%{?ext_man}
%config(noreplace) %{_sysconfdir}/wildmidi
%changelog