ALT Linux repositórios
Group :: Som
RPM: wavesurfer
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# -*- rpm-spec -*-
# $Id: wavesurfer,v 1.34 2006/07/23 22:03:58 me Exp $
%define major 1.8
Name: wavesurfer
Version: %major.5
Release: alt1
%add_tcl_req_skip tile
%add_tcl_lib_path %_datadir/%name
%set_tcl_req_method strict
Summary: WaveSurfer is a tool for sound visualization and manipulation
License: BSD
Group: Sound
URL: http://www.speech.kth.se/%name/
Source0: %url/%name-%version.tar.bz2
Source1: ogg.plug
Source2: %name.menu
Source3: %name-1.5.2-ru.msgs
Patch0: %name-1.8.5-alt-misc.patch
BuildRequires: iconv tcl
BuildArch: noarch
%description
%name is an Open Source tool for sound visualization and manipulation.
It has been designed to suit both novice and advanced users. WaveSurfer has
a simple and logical user interface that provides functionality in an intuitive
way and which can be adapted to different tasks. It can be used as a stand-alone
tool suited for a wide range of tasks in speech research and education, but is also
a platform for more advanced applications. WaveSurfer can be extended through
plug-ins. It is also possible to embedded it in other applications or to control
it remotely.
%prep
%setup -q
%patch0 -p1
%install
%__mkdir_p %buildroot%_bindir %buildroot%_datadir/%name/{plugins,configurations,msgs}
# rearrange a bit executables
%__cat <<EOF > %buildroot%_bindir/%name
#!/bin/sh
#\\
exec wish "\$0" "\$ at "
source %_datadir/%name/%name.tcl
EOF
%__cat <<EOF > %buildroot%_bindir/wsurf-createshapes
#!/bin/sh
#\\
exec wish "\$0" "\$ at "
source %_datadir/%name/createshapes.tcl
EOF
%__chmod +x %buildroot%_bindir/*
# next two in own packages
%__rm -f wsurf%major/cmdline.tcl wsurf%major/tkcon.tcl
# library, tools, plugins, configs
%__install -p -m0644 wavesurfer.tcl tools/*.tcl wsurf%major/*.tcl %buildroot%_datadir/%name
%__install -p -m0644 %SOURCE1 wsurf%major/plugins/*.plug %buildroot%_datadir/%name/plugins
%__install -p -m0644 wsurf%major/configurations/*.conf %buildroot%_datadir/%name/configurations
%__grep -vE 'cmdline|tkcon' < wsurf%major/pkgIndex.tcl > %buildroot%_datadir/%name/pkgIndex.tcl
# menus, icons
%__install -p -m0644 -D %SOURCE2 %buildroot%_menudir/%name
%__install -p -m0644 -D icons/ws48.xpm %buildroot%_iconsdir/ws.xpm
# msgcat expects contents in utf-8
iconv -f iso8859-1 -t utf-8 msgs/se.msg > %buildroot%_datadir/%name/msgs/se.msg
%__cat msgs/ru_ru.koi8-r.msg %SOURCE3 |grep -v Silence |%__sed 's| ru_ru.koi8-r | ru |' |\
iconv -f koi8-r -t utf-8 > %buildroot%_datadir/%name/msgs/ru.msg
%__chmod 0644 %buildroot%_datadir/%name/msgs/*.msg
# cleanups
%__chmod 0644 README*
# python go away
%__rm -f demos/*.py
%post
%update_menus
%postun
%clean_menus
%files
%doc README* LICENSE*
%doc doc demos
%_bindir/*
%_datadir/%name
%_menudir/*
%_iconsdir/*
%changelog
…
Todas as alterações você pod ver aqui
# $Id: wavesurfer,v 1.34 2006/07/23 22:03:58 me Exp $
%define major 1.8
Name: wavesurfer
Version: %major.5
Release: alt1
%add_tcl_req_skip tile
%add_tcl_lib_path %_datadir/%name
%set_tcl_req_method strict
Summary: WaveSurfer is a tool for sound visualization and manipulation
License: BSD
Group: Sound
URL: http://www.speech.kth.se/%name/
Source0: %url/%name-%version.tar.bz2
Source1: ogg.plug
Source2: %name.menu
Source3: %name-1.5.2-ru.msgs
Patch0: %name-1.8.5-alt-misc.patch
BuildRequires: iconv tcl
BuildArch: noarch
%description
%name is an Open Source tool for sound visualization and manipulation.
It has been designed to suit both novice and advanced users. WaveSurfer has
a simple and logical user interface that provides functionality in an intuitive
way and which can be adapted to different tasks. It can be used as a stand-alone
tool suited for a wide range of tasks in speech research and education, but is also
a platform for more advanced applications. WaveSurfer can be extended through
plug-ins. It is also possible to embedded it in other applications or to control
it remotely.
%prep
%setup -q
%patch0 -p1
%install
%__mkdir_p %buildroot%_bindir %buildroot%_datadir/%name/{plugins,configurations,msgs}
# rearrange a bit executables
%__cat <<EOF > %buildroot%_bindir/%name
#!/bin/sh
#\\
exec wish "\$0" "\$ at "
source %_datadir/%name/%name.tcl
EOF
%__cat <<EOF > %buildroot%_bindir/wsurf-createshapes
#!/bin/sh
#\\
exec wish "\$0" "\$ at "
source %_datadir/%name/createshapes.tcl
EOF
%__chmod +x %buildroot%_bindir/*
# next two in own packages
%__rm -f wsurf%major/cmdline.tcl wsurf%major/tkcon.tcl
# library, tools, plugins, configs
%__install -p -m0644 wavesurfer.tcl tools/*.tcl wsurf%major/*.tcl %buildroot%_datadir/%name
%__install -p -m0644 %SOURCE1 wsurf%major/plugins/*.plug %buildroot%_datadir/%name/plugins
%__install -p -m0644 wsurf%major/configurations/*.conf %buildroot%_datadir/%name/configurations
%__grep -vE 'cmdline|tkcon' < wsurf%major/pkgIndex.tcl > %buildroot%_datadir/%name/pkgIndex.tcl
# menus, icons
%__install -p -m0644 -D %SOURCE2 %buildroot%_menudir/%name
%__install -p -m0644 -D icons/ws48.xpm %buildroot%_iconsdir/ws.xpm
# msgcat expects contents in utf-8
iconv -f iso8859-1 -t utf-8 msgs/se.msg > %buildroot%_datadir/%name/msgs/se.msg
%__cat msgs/ru_ru.koi8-r.msg %SOURCE3 |grep -v Silence |%__sed 's| ru_ru.koi8-r | ru |' |\
iconv -f koi8-r -t utf-8 > %buildroot%_datadir/%name/msgs/ru.msg
%__chmod 0644 %buildroot%_datadir/%name/msgs/*.msg
# cleanups
%__chmod 0644 README*
# python go away
%__rm -f demos/*.py
%post
%update_menus
%postun
%clean_menus
%files
%doc README* LICENSE*
%doc doc demos
%_bindir/*
%_datadir/%name
%_menudir/*
%_iconsdir/*
%changelog
…
Todas as alterações você pod ver aqui