File snd.spec of Package snd

#
# spec file for package snd (Version 10)
#
# Copyright (c) 2008 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:           snd
BuildRequires:  alsa-devel fftw3-devel freeglut-devel gsl gsl-devel gtk2-devel guile-devel ladspa-devel libdrm-devel libjack-devel libsamplerate-devel update-desktop-files
Summary:        Powerful Sound File Editor
Version:        10
Release:        1
License:        LGPL v2.1 or later
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Requires:       ladspa
Source:         snd-%{version}.tar.bz2
Source1:        snd.desktop
Source2:        snd.png
Url:            http://ccrma-www.stanford.edu/CCRMA/Software/snd/snd.html
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Snd is a sound editor modelled loosely after Emacs and an old,
sorely-missed PDP-10 sound editor named Dpysnd. It can accommodate any
number of sounds each with any number of channels and can be customized
and extended using guile and guile-gtk.



Authors:
--------
    Bill Schottstaedt <bil@ccrma.stanford.edu>

%prep
%setup -q
%{?suse_update_config:%{suse_update_config -f}}
find -name "*~" -type f | xargs -r rm -v

%build
# aclocal
# autoconf
%ifarch %ix86 x86_64
%define with_jack --with-jack
%else
%define with_jack ""
%endif
CFLAGS="$RPM_OPT_FLAGS $CFLAGS -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
./configure --prefix=%{_prefix} \
            --with-gtk \
	    --with-alsa \
	    --with-ladspa \
	    --with-guile \
	    --with-static-xm \
	    --with-gl \
	%{with_jack}
make %{?jobs:-j %jobs}
make sndplay sndrecord sndinfo audinfo

%install
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
for i in snd sndplay sndrecord sndinfo audinfo ; do
  install -c -m 755 $i $RPM_BUILD_ROOT%{_bindir}
done
mkdir -p $RPM_BUILD_ROOT%{_libdir}/snd/scheme
cp -a *.scm $RPM_BUILD_ROOT%{_libdir}/snd/scheme
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -c -m 0644 snd.1 $RPM_BUILD_ROOT%{_mandir}/man1
%suse_update_desktop_file -i snd AudioVideo AudioVideoEditing
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps

%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc COPYING
%doc *.Snd
%doc Snd.ad
%doc *.html
%doc pix
%doc tutorial
%doc %{_mandir}/man?/*
%{_bindir}/*
%{_libdir}/snd
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png

%changelog
* Wed Oct 01 2008 tiwai@suse.de
- updated to version 10.0:
  * rt/faust/stalin improvements
  * more generators
  * S7 support
  * others, see NEWS and HISTORY.Snd
- build JACK support only for x86 (for build fixes)
* Thu Apr 17 2008 tiwai@suse.de
- updated to version 9.8:
  * more rt improvements
  * clm4 updates
  * others, see NEWS
* Fri Jan 11 2008 tiwai@suse.de
- updated to version 9.6:
  * many Ruby improvements
  * fixed a help-system bug
  * 5 more generators in generators.scm
  * Open recent item in File menu
* Thu Jul 12 2007 tiwai@suse.de
- updated to version 9.2:
  * Forth/Ruby improvements
  * RIFF bugfix
  * fixes in snddiff.scm and examp.scm, green.scm
* Fri Jun 08 2007 tiwai@suse.de
- updated to version 9.1:
  * Two new hooks: peak-env-hook, draw-mix-hook
  * added mouse position args to mix-drag-hook
  * changes in background-gradient, sound-mark-info,
  mix-sync-max
  * moved equalize-panes to snd-motif.scm
* Wed May 23 2007 tiwai@suse.de
- updated to version 9.0:
  * removed mix-chans, mix-locked?, mix-inverted?, all track stuff
  track-colors.scm, mix-menu.scm
  * moved mix-properties into C.
  * added edit-properties, mix-sync.
  * spokenword.scm thanks to Ville Koskinen.
  * recorder dialog removed.
* Tue Apr 17 2007 tiwai@suse.de
- fix buildrequires ladspa -> ladspa-devel
* Tue Mar 27 2007 tiwai@suse.de
- update to version 8.9:
  * more fft windows
  * better noise reduction in clean.scm
  * added cairo graphics backend
* Mon Feb 12 2007 tiwai@suse.de
- update to version 8.8:
  * poussin-sum and jackson-sum in dsp.scm
  * changed default-output-data-format to mus-bfloat
  * removed initFile and the (undocumented) htmlDir X resources
  * added read/write support for Apple's new CAFF (64-bit) audio
  files
* Tue Jan 09 2007 tiwai@suse.de
- updated to version 8.7:
  * improvement in frame.scm
  * many *.fs and *.rb improvements
  * more to see NEWS and HISTORY.Snd
* Fri Oct 13 2006 aj@suse.de
- Add guile-devel to build requires.
* Thu Sep 21 2006 tiwai@suse.de
- updated to version 8.4:
  * many ruby, forth, and sndins-related improvements
  * improvements in some *.ins files
  * snd_frg.scm, display-bark-fft, def-optkey-instrument, etc.
* Wed Sep 06 2006 tiwai@suse.de
- updated to version 8.3:
  * Some additions to CLM generators
  * new scms: dlocsig.scm, green.scm, snd8.scm
  * g_signal and gtk_print_* to xg.c
  * merged new-icons.scm into new-buttons.scm
  * toolbar.scm also works in gtk
  * *.fs updates
* Tue Jul 04 2006 tiwai@suse.de
- updated to version 8.2:
  * fmviolin.clm.
  * changed after-apply-hook to after-apply-controls-hook
  * removed mus-make-error.
  * Walter Zorn's wz_tooltip.js to spruce up the documentation
* Wed May 17 2006 tiwai@suse.de
- updated to version 8.1:
  * many new scm and pd files
  * improved alsa support
  * see HISTORY.Snd for details
- Use gtk2 as GUI.
- Add gsl support.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 tiwai@suse.de
- updated to version 7.18.
* Sat Jan 14 2006 schwab@suse.de
- Don't strip binaries.
* Wed Oct 12 2005 tiwai@suse.de
- removed glib* from neededforbuild.
* Tue Apr 19 2005 ro@suse.de
- added missing sentinel
* Mon Feb 14 2005 tiwai@suse.de
- updated to version 7.10.
* Mon Jan 24 2005 tiwai@suse.de
- update dto version 7.9
- use fftw3, libsamplerate.
* Thu Apr 29 2004 ro@suse.de
- added -fno-strict-aliasing
* Mon Mar 22 2004 ro@suse.de
- removed *~ backup files
* Fri Feb 27 2004 tiwai@suse.de
- updated to version 7.2
- support jack and opengl.
- built with the standard guile.
- build as non-root.
- added desktop file and icon.
* Fri Nov 21 2003 ro@suse.de
- compile with -DALSA_PCM_OLD_HW_PARAMS_API
* Fri Nov 07 2003 ro@suse.de
- fix for current autoconf
* Mon Aug 25 2003 tiwai@suse.de
- updated to version 6.11.
* Thu Jun 12 2003 kukuk@suse.de
- Add missing directories to filelist
* Mon Feb 03 2003 tiwai@suse.de
- removed -mminimal-toc for ppc64 (bug #23266).
* Fri Jan 17 2003 tiwai@suse.de
- updated to version 6.5.
- renamed patches to avoid the file name confliction.
* Tue Nov 26 2002 tiwai@suse.de
- updated to version 6.3.
* Tue Nov 12 2002 ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
- changed neededforbuild <xdevel> to <>
* Tue Sep 24 2002 tiwai@suse.de
- updated to snd-6.1.
  regenerated no-gtk patch.
* Mon Aug 05 2002 tiwai@suse.de
- build guile-1.5 together with snd.  guile-1.4.x is incompatible
  and the scm files provided by snd don't work with it.
  snd is linked statically with libguile.
- provides dlp's version of snd together with a start-up script.
- provides tutorial files.
* Tue Jul 16 2002 tiwai@suse.de
- updated to snd-5.12.
- build snd with motif instead of gtk.
  the gtk version is unlikely developed by the author...
* Sat Jun 29 2002 olh@suse.de
- build with -mminimal-toc on ppc64
* Wed Apr 10 2002 tiwai@suse.de
- updated to snd-5.8.
- don't rebuild configure script;
  now snd can use gtk2, which is not supported with guile-gtk.
* Tue Jan 15 2002 tiwai@suse.de
- updated to snd-5.6.
* Tue Dec 04 2001 tiwai@suse.de
- updated to snd-5.5.
  now built with ALSA 0.9.0.
* Mon Nov 12 2001 tiwai@suse.de
- updated to snd-5.4.
* Fri Oct 05 2001 tiwai@suse.de
- updated to snd-5.3.
* Tue Sep 04 2001 tiwai@suse.de
- updated to snd-5.2.
  built from the 5.2 tarball.
* Mon Aug 13 2001 tiwai@suse.de
- updated to snd-5.1 from cvs 20010813.
* Tue Jul 10 2001 tiwai@suse.de
- updated to snd-5.
* Mon Mar 26 2001 tiwai@suse.de
- Updated to snd-4.12.
* Thu Mar 08 2001 tiwai@suse.de
- Fixed compile on ia64.
* Mon Feb 05 2001 tiwai@suse.de
- Updated to snd-4.10.
* Wed Dec 13 2000 tiwai@suse.de
- Updated to snd-4.8.
* Tue Nov 28 2000 tiwai@suse.de
- Compile snd utilities.
- Fixed files list.
- Added guile-gtk in neededforbuild.
- Support ALSA also on ppc.
* Thu Nov 02 2000 tiwai@suse.de
- Updated to snd-4.7.
- Fixed spec file for long package-name support.
* Tue Sep 26 2000 tiwai@suse.de
- Update to snd-4.6.
- Compile with gtk instead of lesstif.
* Fri Sep 01 2000 tiwai@suse.de
- Compile fix for alpha.
* Mon Jul 24 2000 tiwai@suse.de
- snd ver.4 - compiled with motif and ALSA (for i386) and OSS (for PPC)
openSUSE Build Service is sponsored by