b9b8b3d
# SPEC file for AdPlug, primary target is the Fedora Extras
b9b8b3d
# RPM repository.
b9b8b3d
efc009c
%define adplugdbver 2006-07-07
b9b8b3d
Name:		adplug
Linus Walleij 59bdb41
Version:	2.2.1
e85cfee
Release:	7%{?dist}
b9b8b3d
Summary:	A software library for AdLib (OPL2) emulation
Linus Walleij 9811e85
URL:		http://adplug.github.io/
b9b8b3d
Group:		Applications/Multimedia
b9b8b3d
Source0:	http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
efc009c
Source1:	http://download.sourceforge.net/%{name}/adplugdb-%{adplugdbver}.tar.gz
Linus Walleij b1c9e5c
Patch0:		adplug-2.2.1-signed-char.patch
e85cfee
Patch1:		adplug-2.3.1-cve-2018-17825.patch
9fde807
License:	LGPLv2+
c4c2e21
BuildRequires:  gcc-c++
b9b8b3d
BuildRequires:	libbinio-devel >= 1.4
b9b8b3d
BuildRequires:	pkgconfig
b9b8b3d
BuildRequires:	texinfo
Linus Walleij b7c6876
BuildRequires:	libtool
Linus Walleij b7c6876
BuildRequires:	autoconf
Linus Walleij b7c6876
BuildRequires:	automake
Linus Walleij 59bdb41
# This is to resolve the endless disputes of the shared data for this
b9b8b3d
# package. Whenever _sharedstatedir contains something acceptable to
b9b8b3d
# Fedora that can be used instead.
b9b8b3d
%define shareddata %{_localstatedir}/lib
b9b8b3d
b9b8b3d
%description
Linus Walleij 59bdb41
AdPlug is a free software, cross-platform, hardware independent AdLib
Linus Walleij 59bdb41
sound player library, mainly written in C++ and released under the
Linus Walleij 59bdb41
LGPL. AdPlug plays sound data, originally created for the AdLib (OPL2)
Linus Walleij 59bdb41
audio board, directly from its original format on top of an OPL2
Linus Walleij 59bdb41
emulator or by using the real hardware. No OPL chip is required for
b9b8b3d
playback. It supports various audio formats from MS-DOS AdLib trackers.
b9b8b3d
b9b8b3d
%package devel
b9b8b3d
Summary:        Development files for AdPlug
5e410ac
Group:          Development/Libraries
5e410ac
Requires:       %{name}%{?_isa} = %{version}-%{release}
b9b8b3d
Requires:	libbinio-devel
b9b8b3d
b9b8b3d
%description devel
b9b8b3d
This package contains development files for the AdPlug AdLib
b9b8b3d
(OPL2) emulator.
b9b8b3d
b9b8b3d
%prep
b9b8b3d
%setup -q
Linus Walleij b1c9e5c
%patch0 -p1
e85cfee
%patch1 -p1
efc009c
tar xvfz %{SOURCE1}
efc009c
# Include these by different name
efc009c
mv %{adplugdbver}/README README.adplugdb
efc009c
mv %{adplugdbver}/NEWS NEWS.adplugdb
b9b8b3d
b9b8b3d
%build
Linus Walleij 59bdb41
rm -f ltmain.sh config.guess config.sub
Linus Walleij 59bdb41
libtoolize --copy --force || fail
Linus Walleij 59bdb41
rm -f aclocal.m4
Linus Walleij 59bdb41
aclocal $ACLOCAL_FLAGS || fail
Linus Walleij 59bdb41
rm -f depcomp install-sh missing
Linus Walleij 59bdb41
touch config.rpath
Linus Walleij 59bdb41
automake --add-missing --gnu || fail
Linus Walleij 59bdb41
rm -f configure
Linus Walleij 59bdb41
autoconf
b9b8b3d
%configure --disable-static --sharedstatedir=%{shareddata} --disable-rpath
b9b8b3d
make %{?_smp_mflags}
b9b8b3d
b9b8b3d
%install
b9b8b3d
rm -rf $RPM_BUILD_ROOT
b9b8b3d
make DESTDIR=$RPM_BUILD_ROOT install
b9b8b3d
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
b9b8b3d
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
b9b8b3d
mkdir -p $RPM_BUILD_ROOT%{shareddata}/%{name}
efc009c
install -p -m 644 %{adplugdbver}/adplug.db $RPM_BUILD_ROOT%{shareddata}/%{name}
b9b8b3d
c4c2e21
%ldconfig_scriptlets
b9b8b3d
b9b8b3d
%files
b9b8b3d
%{_libdir}/*.so.*
b9b8b3d
%dir %{shareddata}/%{name}/
b9b8b3d
%config(noreplace) %{shareddata}/%{name}/adplug.db
b9b8b3d
%{_bindir}/adplugdb
b9b8b3d
%{_mandir}/man1/adplugdb.1*
b9b8b3d
%doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO
efc009c
%doc NEWS.adplugdb README.adplugdb
b9b8b3d
b9b8b3d
%files devel
b9b8b3d
%{_libdir}/*.so
b9b8b3d
%{_libdir}/pkgconfig/*.pc
b9b8b3d
%dir %{_includedir}/%{name}
b9b8b3d
%{_includedir}/%{name}/*.h
b9b8b3d
%{_infodir}/*.gz
b9b8b3d
b9b8b3d
%changelog
e85cfee
* Sat Dec 15 2018 Robert Scheck <robert@fedoraproject.org> - 2.2.1-7
e85cfee
- Fix double-free in CEmuopl::~CEmuopl() (#1635881, CVE-2018-17825)
e85cfee
af63436
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-6
af63436
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
af63436
e67a973
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-5
e67a973
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e67a973
d8d32d7
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
d8d32d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d8d32d7
acd6aa6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-3
acd6aa6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
acd6aa6
cb22654
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
cb22654
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cb22654
Linus Walleij 59bdb41
* Sun Jun 12 2016 Linus Walleij <triad@df.lth.se> - 2.2.1-1
Linus Walleij 59bdb41
- New upstream version
Linus Walleij 59bdb41
- Run libtoolize, aclocal, automake and autoconf on build to avoid
Linus Walleij 59bdb41
  rpath problems
Linus Walleij 59bdb41
- Builds without patches
Linus Walleij 59bdb41
fa59ad2
* Tue Mar 08 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.1-21
fa59ad2
- Fix FTBFS with GCC 6 (#1307307)
fa59ad2
f3bbbbd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-20
f3bbbbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f3bbbbd
5affb5d
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-19
5affb5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5affb5d
656819d
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.1-18
656819d
- Rebuilt for GCC 5 C++11 ABI change
656819d
5e410ac
* Thu Feb 19 2015 Michael Schwendt <mschwendt@fedoraproject.org> - 2.1-17
5e410ac
- Drop buildroot tag, %%defattr, %%clean.
5e410ac
- Fix -devel group tag.
5e410ac
- Add %%_isa to -devel base package dep.
5e410ac
- Rebuild for libbinio (GCC 5 C++ ABI change), so deps can compile/link with this.
5e410ac
8289e23
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-16
8289e23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8289e23
b3c4de5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-15
b3c4de5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b3c4de5
b3a6d88
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-14
b3a6d88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b3a6d88
d235738
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-13
d235738
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d235738
3ea6142
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-12
3ea6142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3ea6142
05f15d8
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-11
05f15d8
- Rebuilt for c++ ABI breakage
05f15d8
d99bc09
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-10
d99bc09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d99bc09
aef12c4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-9
aef12c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
aef12c4
26ad851
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-8
26ad851
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
26ad851
3b93cb7
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-7
3b93cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3b93cb7
7e58a27
* Mon Feb 11 2008 Linus Walleij <triad@df.lth.se> 2.1-6
7e58a27
- Nailed the GCC build problems to numerous include <cstring>.
7e58a27
7d8da1f
* Mon Feb 11 2008 Linus Walleij <triad@df.lth.se> 2.1-5
7d8da1f
- Patch include directives with a patch derived from Debian.
7d8da1f
97c9cf2
* Mon Feb 11 2008 Linus Walleij <triad@df.lth.se> 2.1-4
97c9cf2
- Rebuild for GCC 4.3.
97c9cf2
4f18b6b
* Fri Jan 18 2008 Linus Walleij <triad@df.lth.se> 2.1-3
4f18b6b
- New glibc ABI needs rebuild.
4f18b6b
9fde807
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 2.1-2
9fde807
- License field update LGPL to LGPLv2+
9fde807
efc009c
* Wed Apr 11 2007 Linus Walleij <triad@df.lth.se> 2.1-1
efc009c
- New upstream version.
efc009c
34b0c97
* Tue Aug 29 2006 Linus Walleij <triad@df.lth.se> 2.0.1-2
34b0c97
- Rebuild for Fedora Extras 6.
34b0c97
7346fb9
* Tue Jul 25 2006 Linus Walleij <triad@df.lth.se> 2.0.1-1
7346fb9
- New upstream version, including several security fixes.
7346fb9
b9b8b3d
* Mon May 15 2006 Linus Walleij <triad@df.lth.se> 2.0-2
b9b8b3d
- Tell package to avoid rpath, import to FE after review by John Mahowald.
b9b8b3d
b9b8b3d
* Sat May 6 2006 Linus Walleij <triad@df.lth.se> 2.0-1
b9b8b3d
- Upstream release the stuff they've been working on for some time now!
b9b8b3d
b9b8b3d
* Thu Apr 6 2006 Linus Walleij <triad@df.lth.se> 1.5.1-8.20060323cvs
b9b8b3d
- Realize that /var/adplug/adplug.db is a real nice place to keep
b9b8b3d
  the database actually. And it is obviously OK to create and own
b9b8b3d
  directories under /var/lib as opposed to /var.
b9b8b3d
13c9e5c
* Thu Mar 30 2006 Linus Walleij <triad@df.lth.se> 1.5.1-7.20060323cvs
b9b8b3d
- Patching to move database from /var/adplug to just /var since
b9b8b3d
  FHS does not like creation of directories under /var.
b9b8b3d
b9b8b3d
* Thu Mar 23 2006 Linus Walleij <triad@df.lth.se> 1.5.1-6.20060323cvs
b9b8b3d
- Hardcoding the place to store adplugdb since the dispute regarding
b9b8b3d
  its location never seem to resolve. /var/adplug should be acceptable
b9b8b3d
  for this package atleast. Also getting a bugfix from CVS.
b9b8b3d
b9b8b3d
* Sat Mar 4 2006 Linus Walleij <triad@df.lth.se> 1.5.1-5.20060228cvs
b9b8b3d
- Include adplug.db too, everyone will want it anyway
b9b8b3d
b9b8b3d
* Tue Feb 28 2006 Linus Walleij <triad@df.lth.se> 1.5.1-4.20060228cvs
b9b8b3d
- Pushed upstream to move adplugdb to sharedstatedir /usr/com
b9b8b3d
b9b8b3d
* Sun Jan 15 2006 Linus Walleij <triad@df.lth.se> 1.5.1-3.20060101cvs
b9b8b3d
- Fixed scriptlet problems under non-shell environments.
b9b8b3d
- Make adplug-devel require libbinio-devel.
b9b8b3d
13c9e5c
* Sun Jan 08 2006 Linus Walleij <triad@df.lth.se> 1.5.1-2.20060101cvs
b9b8b3d
- Did a clean-up rollercoaster ride.
b9b8b3d
b9b8b3d
* Sun Jan 01 2006 Linus Walleij <triad@df.lth.se> 1.5.1-1.20060101cvs
b9b8b3d
- We need the CVS version to get going (fixes were initialized in
b9b8b3d
  upstream by ourselves so we should eat our own dogfood).
b9b8b3d
b9b8b3d
* Tue Oct 11 2005 Linus Walleij <triad@df.lth.se> 1.5.1-1
b9b8b3d
- First try at an AdPlug RPM.