Name: kwave Version: 0.6.3 Release: aap1 %define filelist %{name}-%{version}/files.list.%{name} Source0: kwave-%{version}.tar.gz Patch1: kwave-libkwave-farts.patch Patch2: kwave-plugins-common-farts.patch Group: X11/Applications/Sound Copyright: GPL URL: http://kwave.sourceforge.net Vendor: Thomas Eschenbacher Packager: The Angles Skunkwerks BuildRoot: tmp/%{name}-%{version}.root Provides: kwave Requires: libqt.so.2 Requires: kdelibs >= 2.2.1 Conflicts: libkwave Obsoletes: libkwave Summary: KDE, Qt, WAV, Sound, FFT, Sonagram, Sample, Effects, 24 Bit %description A sound editor for KDE2, beta release. Its features include: simple cut, copy and paste functions; undo/redo; simple filter design tools; a small editor for additive synthesis; labeling of signals; some analysis functions such as Sonagram or Fourier Transformation; internally uses 24 bit integer sample data; free selectable sample rates; support for editing of multi-channel files; playback of multi-channel audio files (audio output will be mixed down to mono or stereo); extendible through an easy-to-use plugin interface. %prep %setup -q # these patches are for arts include files, in INCLUDES/kde/arts, not INCLUDES/arts # at least not on a RedHat 7.2 box %patch1 -p1 -b .farts %patch2 -p1 -b .farts #we just patched the NAME-VERSION/plugins/common/Makefile.in #to have it passed into all the plugins subdirs, remove the subdirs makefiles cd %{_builddir}/kwave-%{version}/plugins rm -f about/Makefile.am rm -f amplifyfree/Makefile.am rm -f memory/Makefile.am rm -f newsignal/Makefile.am rm -f noise/Makefile.am rm -f playback/Makefile.am rm -f sonagram/Makefile.am rm -f zero/Makefile.am %build -n kwave-%{version} rm -rf "%{buildroot}" DESTDIR="" unset DESTDIR CONFIGURE_OPTS="--with-install-root=%{buildroot} \ --enable-static=no --enable-shared=yes " make -f Makefile.dist DESTDIR="" unset DESTDIR make %install %{name}-%{version} rm -rf "%{buildroot}" make DESTDIR="%{buildroot}" SUID_ROOT="" install cd "%{buildroot}" find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > "%{_builddir}"/%{filelist} find . -type f | sed 's,^\.,\%attr(-\,root\,root) \%dir ,' >> "%{_builddir}"/%{filelist} find . -type l | sed 's,^\.,\%attr(-\,root\,root) \%dir ,' >> "%{_builddir}"/%{filelist} # remove files/directories that should not get into the package mv "%{_builddir}"/%{filelist} /tmp/files.lst.tmp cat /tmp/files.lst.tmp | grep -v /default$ | \ grep -v /de$ | grep -v /en$ > "%{_builddir}"/%{filelist} rm -f /tmp/files.lst.tmp %files -f files.list.%{name} %doc GNU-LICENSE CHANGES README TODO kwave.lsm %post ldconfig %postun ldconfig %changelog * Sat Apr 6 2002 Angles - initial Angles Skunkwerks build, version 0.6.3 - Spec file for for Linux Mandrake 8.1 by Gilles Caulier - Adapted for RedHat 7.2 by Angles