|
|
b9b8b3d |
# SPEC file for AdPlug, primary target is the Fedora Extras
|
|
|
b9b8b3d |
# RPM repository.
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
Name: adplug
|
|
|
7346fb9 |
Version: 2.0.1
|
|
|
34b0c97 |
Release: 2%{?dist}
|
|
|
b9b8b3d |
Summary: A software library for AdLib (OPL2) emulation
|
|
|
b9b8b3d |
URL: http://adplug.sourceforge.net/
|
|
|
b9b8b3d |
Group: Applications/Multimedia
|
|
|
b9b8b3d |
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
b9b8b3d |
Source1: http://download.sourceforge.net/%{name}/adplug.db
|
|
|
b9b8b3d |
Patch0: adplug-1.5.1-texinfo.patch
|
|
|
b9b8b3d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
b9b8b3d |
License: LGPL
|
|
|
b9b8b3d |
BuildRequires: libbinio-devel >= 1.4
|
|
|
b9b8b3d |
BuildRequires: pkgconfig
|
|
|
b9b8b3d |
BuildRequires: texinfo
|
|
|
b9b8b3d |
# 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
|
|
|
b9b8b3d |
AdPlug is a free software, cross-platform, hardware independent AdLib
|
|
|
b9b8b3d |
sound player library, mainly written in C++ and released under the
|
|
|
b9b8b3d |
LGPL. AdPlug plays sound data, originally created for the AdLib (OPL2)
|
|
|
b9b8b3d |
audio board, directly from its original format on top of an OPL2
|
|
|
b9b8b3d |
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
|
|
|
b9b8b3d |
Group: System Environment/Libraries
|
|
|
b9b8b3d |
Requires: %{name} = %{version}-%{release}
|
|
|
b9b8b3d |
Requires: libbinio-devel
|
|
|
b9b8b3d |
Requires(post): /sbin/install-info
|
|
|
b9b8b3d |
Requires(preun): /sbin/install-info
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%description devel
|
|
|
b9b8b3d |
This package contains development files for the AdPlug AdLib
|
|
|
b9b8b3d |
(OPL2) emulator.
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%prep
|
|
|
b9b8b3d |
%setup -q
|
|
|
b9b8b3d |
# This removes the version.texi dependency
|
|
|
b9b8b3d |
%patch0 -p1
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%build
|
|
|
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}
|
|
|
b9b8b3d |
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{shareddata}/%{name}
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%clean
|
|
|
b9b8b3d |
rm -rf $RPM_BUILD_ROOT
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%post -p /sbin/ldconfig
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%postun -p /sbin/ldconfig
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%post devel
|
|
|
b9b8b3d |
/sbin/install-info %{_infodir}/libadplug.info.gz %{_infodir}/dir || :
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%preun devel
|
|
|
b9b8b3d |
if [ $1 = 0 ]; then
|
|
|
b9b8b3d |
/sbin/install-info --delete %{_infodir}/libadplug.info.gz %{_infodir}/dir || :
|
|
|
b9b8b3d |
fi
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%files
|
|
|
b9b8b3d |
%defattr(-, root, root)
|
|
|
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
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%files devel
|
|
|
b9b8b3d |
%defattr(-, root, root)
|
|
|
b9b8b3d |
%{_libdir}/*.so
|
|
|
b9b8b3d |
%{_libdir}/pkgconfig/*.pc
|
|
|
b9b8b3d |
%dir %{_includedir}/%{name}
|
|
|
b9b8b3d |
%{_includedir}/%{name}/*.h
|
|
|
b9b8b3d |
%{_infodir}/*.gz
|
|
|
b9b8b3d |
|
|
|
b9b8b3d |
%changelog
|
|
|
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 |
|
|
|
b9b8b3d |
* Thu Mar 31 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 |
|
|
|
b9b8b3d |
* Sun Jan 09 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.
|