2007-01-09 17:55:03 +01:00
|
|
|
#
|
2010-04-05 18:50:14 +02:00
|
|
|
# spec file for package snd (Version 11.4)
|
2007-01-09 17:55:03 +01:00
|
|
|
#
|
2010-04-05 18:50:14 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-09 17:55:03 +01:00
|
|
|
#
|
2008-10-06 17:04:42 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-09 17:55:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-21 02:35:14 +02:00
|
|
|
|
2007-01-09 17:55:03 +01:00
|
|
|
Name: snd
|
2010-04-05 18:50:14 +02:00
|
|
|
BuildRequires: alsa-devel fftw3-devel freeglut-devel gsl gsl-devel gtk2-devel ladspa-devel
|
|
|
|
BuildRequires: libdrm-devel libjack-devel libsamplerate-devel update-desktop-files
|
2007-01-09 17:55:03 +01:00
|
|
|
Summary: Powerful Sound File Editor
|
2010-04-05 18:50:14 +02:00
|
|
|
Version: 11.4
|
2010-04-13 21:56:10 +02:00
|
|
|
Release: 2
|
2010-04-05 18:50:14 +02:00
|
|
|
License: LGPLv2.1+
|
2007-01-09 17:55:03 +01:00
|
|
|
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
|
|
|
Requires: ladspa
|
|
|
|
Source: snd-%{version}.tar.bz2
|
|
|
|
Source1: snd.desktop
|
|
|
|
Source2: snd.png
|
2010-04-05 18:50:14 +02:00
|
|
|
Source3: sndrpmlintrc
|
|
|
|
Url: https://ccrma.stanford.edu/software/snd/
|
2007-01-09 17:55:03 +01:00
|
|
|
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
|
2008-04-21 02:35:14 +02:00
|
|
|
%setup -q
|
2007-01-09 17:55:03 +01:00
|
|
|
find -name "*~" -type f | xargs -r rm -v
|
2009-02-04 00:30:26 +01:00
|
|
|
find -name "*.png" -type f | xargs chmod 0644
|
2010-04-05 18:50:14 +02:00
|
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
2007-01-09 17:55:03 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# aclocal
|
|
|
|
# autoconf
|
2010-04-05 18:50:14 +02:00
|
|
|
# %ifarch %ix86 x86_64
|
2008-10-06 17:04:42 +02:00
|
|
|
%define with_jack --with-jack
|
2010-04-05 18:50:14 +02:00
|
|
|
# %else
|
|
|
|
# %define with_jack ""
|
|
|
|
# %endif
|
2007-01-09 17:55:03 +01:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS $CFLAGS -fno-strict-aliasing" \
|
|
|
|
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
2010-04-13 21:56:10 +02:00
|
|
|
LDFLAGS="$LDFLAGS -Wl,-z -Wl,noexecstack" \
|
2007-01-09 17:55:03 +01:00
|
|
|
./configure --prefix=%{_prefix} \
|
|
|
|
--with-gtk \
|
|
|
|
--with-alsa \
|
|
|
|
--with-ladspa \
|
|
|
|
--with-static-xm \
|
2008-10-06 17:04:42 +02:00
|
|
|
--with-gl \
|
|
|
|
%{with_jack}
|
2010-04-05 18:50:14 +02:00
|
|
|
# make
|
2007-03-28 02:25:16 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
2010-04-05 18:50:14 +02:00
|
|
|
make sndplay sndinfo audinfo
|
2007-01-09 17:55:03 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
|
2010-04-05 18:50:14 +02:00
|
|
|
for i in snd sndplay sndinfo audinfo ; do
|
2007-01-09 17:55:03 +01:00
|
|
|
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
|
2008-10-06 17:04:42 +02:00
|
|
|
%doc pix
|
2007-01-09 17:55:03 +01:00
|
|
|
%doc tutorial
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/snd
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/pixmaps/*.png
|
|
|
|
|
2007-03-28 02:25:16 +02:00
|
|
|
%changelog
|