From 69975126181980962780b3fde72b3872856b86c5 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Jun 13 2016 09:17:29 +0000 Subject: Fix compilation problem --- diff --git a/adplay-1.7-subsong.patch b/adplay-1.7-subsong.patch new file mode 100644 index 0000000..ea3e5d9 --- /dev/null +++ b/adplay-1.7-subsong.patch @@ -0,0 +1,12 @@ +diff -ur adplay-1.7-orig/src/adplay.cc adplay-1.7/src/adplay.cc +--- adplay-1.7-orig/src/adplay.cc 2016-06-13 11:12:41.910479236 +0200 ++++ adplay-1.7/src/adplay.cc 2016-06-13 11:14:36.792630702 +0200 +@@ -75,7 +75,7 @@ + + static struct { + int buf_size, freq, channels, bits, harmonic, message_level; +- unsigned int subsong; ++ int subsong; + const char *device; + char *userdb; + bool endless, showinsts, songinfo, songmessage; diff --git a/adplay.spec b/adplay.spec index 2801053..701dc46 100644 --- a/adplay.spec +++ b/adplay.spec @@ -2,9 +2,10 @@ Name: adplay Version: 1.7 Release: 1%{?dist} Summary: An AdLib (OPL2) music player build on AdPlug -URL: http://adplug.sourceforge.net/ +URL: http://adplug.github.io/ Group: Applications/Multimedia Source: http://download.sourceforge.net/adplug/%{name}-%{version}.tar.bz2 +Patch0: adplay-1.7-subsong.patch License: GPLv2+ BuildRequires: adplug-devel BuildRequires: audiofile-devel @@ -16,6 +17,7 @@ the AdPlug library. %prep %setup -q +%patch0 -p1 %build # I intentionally disable OSS and SDL: Fedora installs ALSA by default