Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37538253
en ru br
ALT Linux repos
S:2.2.10-alt4.qa2
5.0: 2.2.10-alt3
4.1: 2.2.10-alt3
4.0: 2.2.10-alt1
3.0: 2.2.9-alt1

Group :: Development/Tcl
RPM: tcl-snack

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_without alsa

%define teaname snack

Name: tcl-snack
Version: 2.2.10
Release: alt4.qa1

Summary: Snack - a sound toolkit for scripting languages
License: GPL
Group: Development/Tcl
Url: http://www.speech.kth.se/snack/

Source: %name-%version-%release.tar

Requires: tcl >= 8.4.0-alt1 tcl-sound = %version-%release

BuildRequires: libogg-devel libvorbis-devel tcl-devel >= 8.4.16-alt1 tk-devel >= 8.4.16-alt1
%if_with alsa
BuildRequires: libalsa-devel
%endif

Provides: %teaname
Obsoletes: %teaname

%package -n tcl-sound
Summary: Snack - a sound toolkit for scripting languages
License: GPL
Group: Development/Tcl

%package demos
Summary: A collection of programs to demonstrate the features of the Snack
Group: Development/Tcl
Requires: %name = %version-%release tk >= 8.4.0-alt1
Provides: %teaname-demos
Obsoletes: %teaname-demos

%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.

This package contains snack Tcl extension.

%description -n tcl-sound
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.

This package contains sound Tcl extension.

%description demos
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.

This package contains a collection of programs to demonstrate
the features of Snack

%prep
%setup

%build
cd unix
%add_optflags %optflags_debug
%configure \
   --with-tcl=%_libdir \
   --with-tk=%_libdir \
   --with-ogg-lib=%_libdir \
   --with-ogg-include=%_includedir \
   %{?_with_alsa:--enable-alsa} \
   #
%make_build

%install
mkdir -p %buildroot%_tcllibdir
install -pm0644 unix/libs*.so %buildroot%_tcllibdir

sed -i 's/ at lib at /%_lib/' unix/pkgIndex.tcl.dll unix/pkgIndex.tcl.sound
install -pm0644 -D unix/pkgIndex.tcl.sound %buildroot%_tcldatadir/sound%version/pkgIndex.tcl
install -pm0644 -D unix/pkgIndex.tcl.dll %buildroot%_tcldatadir/%teaname%version/pkgIndex.tcl
install -pm0644 unix/snack.tcl %buildroot%_tcldatadir/%teaname%version

rm -f demos/tcl/{freewrap,tclkit*,sdx}
find demos/tcl -type f -name '*.tcl' | xargs sed -i '1,3d'
mkdir -p %buildroot%_tcldatadir/%teaname%version/demos
install -pm0644 demos/tcl/* %buildroot%_tcldatadir/%teaname%version/demos/

chmod 0644 doc/*

%files
%doc COPYING README
%doc doc/*
%_tcllibdir/libsnack.so
%_tcllibdir/libsnackogg.so
%_tcldatadir/%teaname%version
%exclude %_tcldatadir/%teaname%version/demos

%files -n tcl-sound
%_tcllibdir/libsound.so
%_tcldatadir/sound%version/*

%files demos
%_tcldatadir/%teaname%version/demos

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin