snd/snd.spec

108 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package snd (Version 11.4)
#
# Copyright (c) 2010 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 ladspa-devel
BuildRequires: libdrm-devel libjack-devel libsamplerate-devel update-desktop-files
Summary: Powerful Sound File Editor
Version: 11.4
Release: 2
License: LGPLv2.1+
Group: Productivity/Multimedia/Sound/Editors and Convertors
Requires: ladspa
Source: snd-%{version}.tar.bz2
Source1: snd.desktop
Source2: snd.png
Source3: sndrpmlintrc
Url: https://ccrma.stanford.edu/software/snd/
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
find -name "*~" -type f | xargs -r rm -v
find -name "*.png" -type f | xargs chmod 0644
%{?suse_update_config:%{suse_update_config -f}}
%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" \
LDFLAGS="$LDFLAGS -Wl,-z -Wl,noexecstack" \
./configure --prefix=%{_prefix} \
--with-gtk \
--with-alsa \
--with-ladspa \
--with-static-xm \
--with-gl \
%{with_jack}
# make
make %{?jobs:-j %jobs}
make sndplay sndinfo audinfo
%install
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
for i in snd sndplay 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