e79c876
Name:          awesfx
e79c876
Version:       0.5.1c
86c16f9
Release:       3%{?dist}
e79c876
Summary:       Utility programs for the AWE32/Emu10k1 sound driver
e79c876
Group:         Applications/Multimedia
e79c876
URL:           http://www.alsa-project.org/~iwai/awedrv.html
e79c876
Source0:       http://ftp.suse.com/pub/people/tiwai/awesfx/awesfx-%{version}.tar.bz2
e79c876
Source1:       udev-soundfont
e79c876
Source2:       load-soundfont
e79c876
Source3:       41-soundfont.rules
e79c876
Patch0:        rename-getline-to-parseline.patch
e79c876
License:       GPLv2+
e79c876
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e79c876
e79c876
BuildRequires: alsa-lib-devel >= 1.0.0
e79c876
e79c876
%description
e79c876
The awesfx package contains various utility programs for controlling the 
e79c876
AWE32/Emu10k1 sound driver. AWESFX includes asxfload and sfxload, the 
e79c876
soundfont loaders; setfx, the chorus/reverb effect loader; aweset, a 
e79c876
controller for setting parameters; and programs for converting soundfonts 
e79c876
to text.
e79c876
e79c876
If you use an AWE32 or Emu10k1 sound driver you should install the awesfx 
e79c876
package.
e79c876
e79c876
%prep
e79c876
%setup -q
e79c876
e79c876
%patch0 -p1
e79c876
e79c876
%build
e79c876
%configure CFLAGS="$RPM_OPT_FLAGS"
e79c876
make  %{?_smp_mflags}
e79c876
e79c876
%install
e79c876
rm -rf %{buildroot}
e79c876
make DESTDIR=%{buildroot} INSTALL="install -p" install
e79c876
install -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/alsa.d/udev-soundfont
e79c876
install -Dp -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/alsa.d/load-soundfont
e79c876
install -Dp -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/udev/rules.d/41-soundfont.rules
e79c876
mkdir -p %{buildroot}%{_datadir}/soundfonts
e79c876
mv %{buildroot}%{_datadir}/sounds/sf2/*.bnk %{buildroot}%{_datadir}/soundfonts
e79c876
rm -rf %{buildroot}%{_datadir}/sounds
e79c876
rm -f samples/Makefile*
e79c876
e79c876
%clean
e79c876
rm -rf %{buildroot}
e79c876
e79c876
%files
e79c876
%defattr(-,root,root,-)
e79c876
%doc AUTHORS COPYING ChangeLog README SBKtoSF2.txt samples/README-bank samples/setfx-sample.cfg
e79c876
%{_bindir}/*
e79c876
%attr(0755, root, root) %{_sysconfdir}/alsa.d
e79c876
%{_sysconfdir}/alsa.d/udev-soundfont
e79c876
%{_sysconfdir}/alsa.d/load-soundfont
e79c876
%config(noreplace) %{_sysconfdir}/udev/rules.d/41-soundfont.rules
e79c876
%{_datadir}/soundfonts/
e79c876
%{_mandir}/man*/*.1.gz
e79c876
e79c876
%changelog
86c16f9
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1c-3
86c16f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
86c16f9
e79c876
* Thu May 28 2009 Guido Grazioli <guido.grazioli@gmail.com> 0.5.1c-2
e79c876
- fixed %%install
e79c876
- fixed license
e79c876
- fixed files ownership
e79c876
* Thu Mar 12 2009 Guido Grazioli <guido.grazioli@gmail.com> 0.5.1c-1
e79c876
- initial packaging