2020-06-10 19:09:55 +02:00
|
|
|
#
|
|
|
|
# spec file for package zmusic
|
|
|
|
#
|
2024-01-15 12:33:57 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-06-10 19:09:55 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: zmusic
|
2024-01-15 12:33:57 +01:00
|
|
|
Version: 1.1.12
|
2020-06-10 19:09:55 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: ZDoom component library for music handling
|
|
|
|
License: GPL-3.0-only
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://zdoom.org/
|
|
|
|
|
2022-11-24 00:57:30 +01:00
|
|
|
#Git-Clone: https://github.com/ZDoom/ZMusic
|
|
|
|
Source: https://github.com/ZDoom/ZMusic/archive/%version.tar.gz
|
|
|
|
Patch1: system-fluidsynth.patch
|
|
|
|
Patch2: system-gme.patch
|
|
|
|
Patch3: dumb-dumb.patch
|
2020-06-10 19:09:55 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(fluidsynth)
|
|
|
|
BuildRequires: pkgconfig(libgme)
|
|
|
|
BuildRequires: pkgconfig(libmpg123)
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-09-15 19:55:50 +02:00
|
|
|
Suggests: fluid-soundfont-gm
|
|
|
|
Suggests: fluid-soundfont-gs
|
|
|
|
Suggests: timidity
|
|
|
|
Suggests: timidity-eawpats
|
2020-06-10 19:09:55 +02:00
|
|
|
# DUMB is modified to read OggVorbis samples
|
|
|
|
Provides: bundled(dumb) = 0.9.3
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is the music playback code from gzdoom, which was separated into its own
|
|
|
|
code repository starting with gzdoom-4.4.0.
|
|
|
|
|
|
|
|
%package -n libzmusic1
|
|
|
|
Summary: ZDoom component library for music handling
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libzmusic1
|
|
|
|
This is the music playback code from gzdoom, which was separated into its own
|
|
|
|
code repository starting with gzdoom-4.4.0.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers for the ZMusic library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libzmusic1 = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This subpackage contains the headers for the zmusic library, which is ZDoom's
|
|
|
|
music component library.
|
|
|
|
|
|
|
|
%prep
|
2021-04-11 00:32:37 +02:00
|
|
|
%autosetup -p0 -n ZMusic-%version
|
2020-06-10 19:09:55 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
# There is handcrafted assembler, which LTO does not play nice with.
|
|
|
|
%define _lto_cflags %nil
|
|
|
|
|
|
|
|
%cmake -DNO_STRIP=1 \
|
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="" \
|
|
|
|
-DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" \
|
|
|
|
-DINSTALL_DOCS_PATH="%_defaultdocdir/%name" \
|
|
|
|
-DDYN_FLUIDSYNTH=OFF \
|
|
|
|
-DDYN_SNDFILE=OFF -DDYN_MPG123=OFF
|
2020-10-31 13:12:40 +01:00
|
|
|
%cmake_build
|
2020-06-10 19:09:55 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
b="%buildroot"
|
|
|
|
# Won't need lite (a subset with no GPL code) in openSUSE.
|
|
|
|
rm -f "$b/%_libdir"/libzmusiclite*
|
|
|
|
|
|
|
|
%post -n libzmusic1 -p /sbin/ldconfig
|
|
|
|
%postun -n libzmusic1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libzmusic1
|
|
|
|
%_libdir/libzmusic.so.1*
|
|
|
|
%license licenses/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_includedir/*
|
|
|
|
%_libdir/libzmusic.so
|
2021-04-11 00:32:37 +02:00
|
|
|
%_libdir/cmake/
|
2020-06-10 19:09:55 +02:00
|
|
|
|
|
|
|
%changelog
|