b9b8b3d
# SPEC file for AdPlug, primary target is the Fedora Extras
b9b8b3d
# RPM repository.
b9b8b3d
efc009c
%define adplugdbver 2006-07-07
843cf78
Name:           adplug
843cf78
Version:        2.3.3
843cf78
Release:        1%{?dist}
843cf78
Summary:        Software library for AdLib (OPL2/3) emulation
843cf78
URL:            https://adplug.github.io/
843cf78
Source0:        https://github.com/adplug/adplug/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
843cf78
Source1:        https://download.sourceforge.net/%{name}/adplugdb-%{adplugdbver}.tar.gz
9fde807
License:	LGPLv2+
c4c2e21
BuildRequires:  gcc-c++
843cf78
BuildRequires:  make
843cf78
BuildRequires:  libbinio-devel >= 1.4
843cf78
BuildRequires:  pkgconfig
843cf78
BuildRequires:  texinfo
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
843cf78
sound player library, mainly written in C++. AdPlug plays sound data, 
843cf78
originally created for the AdLib (OPL2/3) audio board, directly from
843cf78
its original format on top of an OPL2/3 emulator or by using the real
843cf78
hardware. No OPL2/3 chips are required for playback.
b9b8b3d
b9b8b3d
%package devel
b9b8b3d
Summary:        Development files for AdPlug
5e410ac
Requires:       %{name}%{?_isa} = %{version}-%{release}
843cf78
Requires:       libbinio-devel
843cf78
%if 0%{?rhel} && 0%{?rhel} <= 7
843cf78
Requires(post):  /sbin/install-info
843cf78
Requires(preun): /sbin/install-info
843cf78
%endif
b9b8b3d
b9b8b3d
%description devel
843cf78
This package contains development files for the AdPlug AdLib (OPL2/3)
843cf78
emulator.
b9b8b3d
b9b8b3d
%prep
b9b8b3d
%setup -q
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
843cf78
%configure --disable-static --sharedstatedir=%{shareddata}
843cf78
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
843cf78
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
843cf78
%make_build
b9b8b3d
b9b8b3d
%install
843cf78
%make_install
b9b8b3d
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
b9b8b3d
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
843cf78
install -D -p -m 644 %{adplugdbver}/adplug.db $RPM_BUILD_ROOT%{shareddata}/%{name}/adplug.db
b9b8b3d
c4c2e21
%ldconfig_scriptlets
b9b8b3d
843cf78
%if 0%{?rhel} && 0%{?rhel} <= 7
843cf78
%post devel
843cf78
/sbin/install-info %{_infodir}/libadplug.info.gz %{_infodir}/dir || :
843cf78
843cf78
%preun devel
843cf78
if [ $1 = 0 ]; then
843cf78
  /sbin/install-info --delete %{_infodir}/libadplug.info.gz %{_infodir}/dir || :
843cf78
fi
843cf78
%endif
843cf78
b9b8b3d
%files
b9b8b3d
%{_libdir}/*.so.*
b9b8b3d
%dir %{shareddata}/%{name}/
b9b8b3d
%config(noreplace) %{shareddata}/%{name}/adplug.db
b9b8b3d
%{_bindir}/adplugdb
b9b8b3d
%{_mandir}/man1/adplugdb.1*
843cf78
%license COPYING
843cf78
%doc AUTHORS BUGS ChangeLog NEWS README
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
843cf78
%{_infodir}/libadplug.info*
b9b8b3d
b9b8b3d
%changelog
843cf78
* Tue Jan 05 2021 Robert Scheck <robert@fedoraproject.org> - 2.3.3-1
843cf78
- Upgrade to 2.3.3 (#1743108, #1770224, #1770243, #1770257,
843cf78
  #1778710, #1778716, #1778720)
843cf78
21c334f
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-13
21c334f
- Second attempt - Rebuilt for
21c334f
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
21c334f
31fb598
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-12
31fb598
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
31fb598
fd85680
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-11
fd85680
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fd85680
dc0507b
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-10
dc0507b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dc0507b
af330db
* Wed Apr 24 2019 Björn Esser <besser82@fedoraproject.org> - 2.2.1-9
af330db
- Remove hardcoded gzip suffix from GNU info pages
af330db
61209b8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-8
61209b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
61209b8
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.