diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9e9ee96 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +adplay-1.6.tar.bz2 +/adplay-1.7.tar.bz2 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 new file mode 100644 index 0000000..1c1ef69 --- /dev/null +++ b/adplay.spec @@ -0,0 +1,132 @@ +Name: adplay +Version: 1.7 +Release: 7%{?dist} +Summary: An AdLib (OPL2) music player build on AdPlug +URL: http://adplug.github.io/ +Source: http://download.sourceforge.net/adplug/%{name}-%{version}.tar.bz2 +Patch0: adplay-1.7-subsong.patch +License: GPLv2+ +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: adplug-devel +BuildRequires: audiofile-devel +BuildRequires: alsa-lib-devel + +%description +AdPlay is a command-line player for AdLib (OPL2) music utilizing +the AdPlug library. + +%prep +%setup -q +%patch0 -p1 + +%build +# I intentionally disable OSS and SDL: Fedora installs ALSA by default +# and I don't want to pull in the entire SDL library for this. We +# also explicitly forbid the QNX QSA driver, it won't hurt. +%configure --disable-static --disable-output-oss --disable-output-sdl \ + --disable-output-qsa --disable-output-esound -with-gnu-ld +make %{?_smp_mflags} + +%install +%make_install + +%files +%{_bindir}/adplay +%{_mandir}/man1/* +%doc AUTHORS ChangeLog COPYING NEWS README TODO + +%changelog +* Thu Jan 31 2019 Fedora Release Engineering - 1.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 1.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun Jun 12 2016 Linus Walleij - 1.7-1 +- New upstream version + +* Wed Feb 03 2016 Fedora Release Engineering - 1.6-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Jun 16 2015 Fedora Release Engineering - 1.6-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 1.6-15 +- Rebuilt for GCC 5 C++11 ABI change + +* Fri Feb 20 2015 Michael Schwendt - 1.6-14 +- Rebuild for adplug (GCC 5 C++ ABI change). + +* Fri Aug 15 2014 Fedora Release Engineering - 1.6-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.6-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.6-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Feb 12 2013 Rahul Sundaram - 1.6-10 +- disable esd support since esd is getting dropped in Fedora +- clean up spec to follow current guidelines + +* Wed Jul 18 2012 Fedora Release Engineering - 1.6-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 1.6-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 1.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Feb 23 2009 Fedora Release Engineering - 1.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Feb 14 2008 Linus Walleij 1.6-4 +- Rebuild for GCC 4.3. + +* Sat Jan 19 2008 Linus Walleij 1.6-3 +- Rebuild to match new glibc ABI. + +* Fri Aug 17 2007 Linus Walleij 1.6-2 +- Fix license to GPLv2+ + +* Wed Apr 11 2007 Linus Walleij 1.6-1 +- New upstream version. + +* Fri Sep 1 2006 Linus Walleij 1.5-3 +- Rebuild for Fedora Extras 6. + +* Wed Jul 26 2006 Linus Walleij 1.5-2 +- Match upstream library bump by rebuild. + +* Sat May 6 2006 Linus Walleij 1.5-1 +- Upstream release a new version. + +* Wed Feb 1 2006 Linus Walleij 1.4-4 +- RM unnecessary BR, fixup CXXFLAGS. + +* Tue Jan 24 2006 Linus Walleij 1.4-3 +- Download address. + +* Mon Jan 23 2006 Linus Walleij 1.4-2 +- Happy dist-tag. + +* Sun Jan 15 2006 Linus Walleij 1.4-1 +- First try at an AdPlay RPM. diff --git a/dead.package b/dead.package deleted file mode 100644 index ecccc51..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -adplay fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1674635 diff --git a/sources b/sources new file mode 100644 index 0000000..bd0d519 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +651b301b21f08a7519ce8ed3742a0081 adplay-1.7.tar.bz2