Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 8259968634951ebae37176ddac2336ce > files > 1

snack-2.2-1mdk.src.rpm

%define name	 snack
%define version	 2.2
%define release  1mdk

%define libname lib%name

%define pythonver 2.2

Summary:	Script-driven sound processing toolkit.
Name:		%{name}
Version: 	%{version}
Release: 	%{release}
License: 	GPL
Group: 		Sound
URL: 		http://www.speech.kth.se/snack/
Source: 	%{name}%{version}.tar.bz2
BuildRoot: 	%{_tmppath}/%{name}-buildroot
BuildRequires:	tcl tk libogg-devel XFree86-devel

%description
Snack is a sound processing toolkit designed as an extension
to a scripting language. Snack currently works with the scripting
languages Tcl/Tk, Python, and Ruby.

Snack has commands to play, record, process, and visualize sound.
Snack provides high level sound objects, with flexible storage management,
and streaming support. It handles most common sound file formats.
The visualization canvas item types update in real-time and can output
postscript. The same scripts run on Unix (Linux, Solaris, HP-UX, IRIX,
FreeBSD, NetBSD), Macintosh, and Windows 95/98/NT/2000/XP.

%package -n %libname
Summary:	Script-driven sound processing toolkit.
Group:		Sound
Provides:	%name = %version
Obsoletes:	%name = %version

%description -n %libname
Snack is a sound processing toolkit designed as an extension
to a scripting language. Snack currently works with the scripting
languages Tcl/Tk, Python, and Ruby.

Snack has commands to play, record, process, and visualize sound.
Snack provides high level sound objects, with flexible storage management,
and streaming support. It handles most common sound file formats.
The visualization canvas item types update in real-time and can output
postscript. The same scripts run on Unix (Linux, Solaris, HP-UX, IRIX,
FreeBSD, NetBSD), Macintosh, and Windows 95/98/NT/2000/XP.

%prep
%setup -q -n %{name}%{version}

%build
cd unix
%configure --with-tcl=/usr/lib --with-tk=/usr/lib --with-ogg-include=/usr/include/ogg --with-ogg-lib=/usr/lib
%make TCL_INCPATH=/usr/include TK_INCPATH=/usr/include CC="gcc $RPM_OPT_FLAGS"
%make TCL_INCPATH=/usr/include TK_INCPATH=/usr/include CC="gcc $RPM_OPT_FLAGS" libsnackogg.so

%install
cd unix
mkdir -p $RPM_BUILD_ROOT/%_libdir/%name%version
mkdir -p $RPM_BUILD_ROOT/%_includedir
mkdir -p $RPM_BUILD_ROOT/%_libdir/python%pythonver/site-packages
cp *.so $RPM_BUILD_ROOT/%_libdir/%name%version
cp *.tcl $RPM_BUILD_ROOT/%_libdir/%name%version
cp *.a $RPM_BUILD_ROOT/%_libdir
cp ../python/*.py $RPM_BUILD_ROOT/%_libdir/python%pythonver/site-packages

%clean
rm -rf %{buildroot}

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%files -n %libname
%defattr(-,root,root)
%doc changes COPYING README doc/*
%_libdir/*.a
%_libdir/%name%version/*
%_libdir/python%pythonver/site-packages/*

%changelog
* Sat Jan 11 2003 Austin Acton <aacton@yorku.ca> 2.2-1mdk
- initial package
- todo: add NIST/sphere library