File fmod.spec of Package fmod
#
# spec file for package fmod
#
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.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 http://bugs.opensuse.org/
#
%define real_version 44464
%define arch_suffix x86
%ifarch x86_64
%define arch_suffix 64
%else
%define arch_suffix %nil
%endif
#
Name: fmod
Version: 4.44.64
Release: 0
Summary: Fast, powerful, easy to use sound system
# Free for non-commercial use - see LICENSE.txt for details
License: NonFree
Group: Development/Languages/C and C++
URL: https://www.fmod.com/
Source0: https://zandronum.com/essentials/fmod/fmodapi%{real_version}linux.tar.gz
ExclusiveArch: %{ix86} x86_64
%description
FMOD is a fast, powerful, and easy to use sound system. It runs on
Windows, Linux, Windows CE, and now also on Macintosh, GameCube, PS2,
and XBox. FMOD supports 3d sound, midi, mods, mp3, ogg vorbis, wma, aiff,
recording, obstruction/occlusion, cd playback (analog or digital), cd ripping,
mmx, internet streaming, dsp effects, spectrum analysis, user created samples
and streams, synchronization support, ASIO, EAX 2&3, C/C++/VB/Delphi and more.
%package -n libmfmod%{real_version}
Summary: FMOD sound system library
Group: System/Libraries
%description -n libmfmod%{real_version}
FMOD is a fast, powerful, and easy to use sound system. It runs on
Windows, Linux, Windows CE, and now also on Macintosh, GameCube, PS2,
and XBox. FMOD supports 3d sound, midi, mods, mp3, ogg vorbis, wma, aiff,
recording, obstruction/occlusion, cd playback (analog or digital), cd ripping,
mmx, internet streaming, dsp effects, spectrum analysis, user created samples
and streams, synchronization support, ASIO, EAX 2&3, C/C++/VB/Delphi and more.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: libmfmod%{real_version} = %{version}
BuildArch: noarch
%description devel
This subpackage contains libraries and header files for developing
applications that want to make use of the fmod library.
%prep
%setup -q -n fmodapi%{real_version}linux
%build
%install
install -Dp -m0755 api/lib/libfmodex%{arch_suffix}-%{version}.so %{buildroot}%{_libdir}/libfmodex%{arch_suffix}-%{version}.so
install -d %{buildroot}%{_includedir}/fmod/
cp -auvx api/inc/*.h %{buildroot}%{_includedir}/fmod/
cp -auvx api/inc/*.hpp %{buildroot}%{_includedir}/fmod/
%post -n libmfmod%{real_version} -p /sbin/ldconfig
%postun -n libmfmod%{real_version} -p /sbin/ldconfig
%files -n libmfmod%{real_version}
%{_libdir}/libfmodex%{arch_suffix}-%{version}.so
%files devel
%license documentation/LICENSE.TXT
%dir %{_includedir}/fmod
%{_includedir}/fmod/*.h
%{_includedir}/fmod/fmod.hpp
%changelog