File awesfx.spec of Package awesfx

#
# spec file for package awesfx (Version 0.5.1a)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           awesfx
BuildRequires:  alsa-devel
Summary:        SoundFont Utilities for SB AWE32/64 and Emu10k1 Drivers
Version:        0.5.1a
Release:        85
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Midi
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.alsa-project.org/~iwai/awedrv.html
Source:         awesfx-%{version}.tar.bz2
Patch:          awesfx-autoreconf-fix.diff
Patch1:         awesfx-udev-soundfont-fix.diff
Patch2:         awesfx-getline-fix.diff

%description
The AWESFX package includes utility programs for controlling the
wavetable function on SB AWE32/64 and Emu10k1 sound cards.



Authors:
--------
    Takashi Iwai <tiwai@suse.de>

%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
# install udev and helper scripts
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
install -c -m 0644 etc/*.rules $RPM_BUILD_ROOT/etc/udev/rules.d
mkdir -p $RPM_BUILD_ROOT/etc/alsa.d
install -c -m 0755 etc/load-soundfont $RPM_BUILD_ROOT/etc/alsa.d
install -c -m 0755 etc/udev-soundfont $RPM_BUILD_ROOT/etc/alsa.d

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README ChangeLog
%doc *.txt
%{_bindir}/*
%dir %{_datadir}/sounds/sf2
%{_datadir}/sounds/sf2/*
%doc %{_mandir}/*/*
/etc/udev
/etc/alsa.d

%changelog
* Fri May 29 2009 tiwai@suse.de
- fix build error with the recent glibc (getline() conflict)
- build with -fno-strict-aliasing
- clean up spec file
* Wed Aug 29 2007 tiwai@suse.de
- fix udev script to load properly with recent udev versions
- fix for autoreconf
* Mon Aug 06 2007 tiwai@suse.de
- updated to version 0.5.1a:
  * really fix the build without linux/awe_voice.h
* Wed Jul 25 2007 tiwai@suse.de
- updated to version 0.5.1:
  * include awe_voice.h into the package
  * include udev files into the package
* Tue Apr 17 2007 tiwai@suse.de
- move udev-related stuff from alsa package
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Aug 31 2004 tiwai@suse.de
- updated to version 0.5.0d.  (misc fixes only)
* Fri Feb 27 2004 tiwai@suse.de
- updated to version 0.5.0b.
* Wed Feb 04 2004 tiwai@suse.de
- updated to version 0.5.0a.
* Fri Jan 23 2004 tiwai@suse.de
- updated to version 0.5.0.  using auto-tools now.
  ALSA emux loader is added.
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Fri Mar 08 2002 kukuk@suse.de
- Add /usr/share/sounds/sf2 to filelist
* Tue Jan 08 2002 tiwai@suse.de
- fixed buffer overflow with a long HOME env. variable.
* Fri Sep 21 2001 tiwai@suse.de
- Fixed a bug in incremental loading: duplication of instrument
  layers are avoided.
* Tue Feb 27 2001 tiwai@suse.de
- Apply the forgotten patch.
* Fri Jan 05 2001 tiwai@suse.de
- Removed CVS directories from source archive.
- Strip installed binaries.
* Tue Dec 05 2000 tiwai@suse.de
- Move default soundfont directory to /usr/share/sounds/sf2.
* Thu Sep 14 2000 tiwai@suse.de
- Fixed version number and documents.
* Tue Aug 01 2000 tiwai@suse.de
- Initial version: 0.4.4
openSUSE Build Service is sponsored by