8234ebc
# SPEC file for AdPlay, primary target is the Fedora Extras
8234ebc
# RPM repository.
8234ebc
8234ebc
Name:		adplay
8234ebc
Version:	1.5
8234ebc
Release:	1%{?dist}
8234ebc
Summary:	An AdLib (OPL2) music player build on AdPlug
8234ebc
URL:		http://adplug.sourceforge.net/
8234ebc
Group:		Applications/Multimedia
8234ebc
Source:		http://download.sourceforge.net/adplug/%{name}-%{version}.tar.bz2
8234ebc
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8234ebc
License:	GPL
8234ebc
BuildRequires:	adplug-devel
8234ebc
BuildRequires:	audiofile-devel
8234ebc
BuildRequires:	alsa-lib-devel
8234ebc
BuildRequires:	esound-devel
8234ebc
8234ebc
%description
8234ebc
AdPlay is a command-line player for AdLib (OPL2) music utilizing
8234ebc
the AdPlug library.
8234ebc
8234ebc
%prep
8234ebc
%setup -q
8234ebc
8234ebc
%build
8234ebc
# I intentionally disable OSS and SDL: Fedora installs ALSA by default
8234ebc
# and I don't want to pull in the entire SDL library for this. We
8234ebc
# also explicitly forbid the QNX QSA driver, it won't hurt.
8234ebc
%configure --disable-static --disable-output-oss --disable-output-sdl \
8234ebc
	--disable-output-qsa
8234ebc
make %{?_smp_mflags}
8234ebc
8234ebc
%install
8234ebc
rm -rf $RPM_BUILD_ROOT
8234ebc
make DESTDIR=$RPM_BUILD_ROOT install
8234ebc
8234ebc
%clean
8234ebc
rm -rf $RPM_BUILD_ROOT
8234ebc
8234ebc
%files
8234ebc
%defattr(-, root, root)
8234ebc
%{_bindir}/adplay
8234ebc
%{_mandir}/man1/*
8234ebc
%doc AUTHORS ChangeLog COPYING NEWS README TODO
8234ebc
8234ebc
%changelog
8234ebc
* Sat May 6 2006 Linus Walleij <triad@df.lth.se> 1.5-1
8234ebc
- Upstream release a new version.
8234ebc
8234ebc
* Wed Feb 1 2006 Linus Walleij <triad@df.lth.se> 1.4-4
8234ebc
- RM unnecessary BR, fixup CXXFLAGS.
8234ebc
8234ebc
* Tue Jan 24 2006 Linus Walleij <triad@df.lth.se> 1.4-3
8234ebc
- Download address.
8234ebc
8234ebc
* Mon Jan 23 2006 Linus Walleij <triad@df.lth.se> 1.4-2
8234ebc
- Happy dist-tag.
8234ebc
8234ebc
* Sun Jan 15 2006 Linus Walleij <triad@df.lth.se> 1.4-1
8234ebc
- First try at an AdPlay RPM.