Репозиторий Sisyphus
Последнее обновление: 22 мая 2019 | Пакетов: 17693 | Посещений: 13572469
en ru br
Репозитории ALT
S:1.0-alt1
5.1: 1.0-alt1
4.1: 1.0-alt1
4.0: 1.0-alt1
3.0: 1.0-ipl14mdk
www.altlinux.org/Changes

Группа :: Звук
Пакет: timidity-instruments

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: timidity-instruments
Version: 1.0
Release: alt1

Serial: 1

Summary: Instruments for the timidity midi->wave converter/player
License: Free
Group: Sound

Source0: midia-instruments.tar.bz2
Source1: midia.cfg.bz2
Source2: gravis.cfg.bz2

BuildArch: noarch

%description
This package contains a set of instruments for the timidity midi->wave
converter/player.

%install
mkdir -p %buildroot%_datadir/timidity
cd %buildroot%_datadir/timidity
bzip2 -cd $RPM_SOURCE_DIR/midia-instruments.tar.bz2 | tar xf -
bzip2 -cd $RPM_SOURCE_DIR/midia.cfg.bz2 >midia.cfg
bzip2 -cd $RPM_SOURCE_DIR/gravis.cfg.bz2 >gravis.cfg

%define conf_string source midia.cfg

%post
if [ -f %_sysconfdir/timidity.cfg ]; then
       grep -qs '^%conf_string$' %_sysconfdir/timidity.cfg ||
       echo '%conf_string' >> %_sysconfdir/timidity.cfg
fi

%postun
[ $1 = 0 ] || exit 0
if [ -f %_sysconfdir/timidity.cfg ]; then
sed '/%conf_string/d' < %_sysconfdir/timidity.cfg > %_sysconfdir/timidity.cfg.new
mv %_sysconfdir/timidity.cfg.new %_sysconfdir/timidity.cfg
fi ||:

%triggerin -- TiMidity++
if [ -f %_sysconfdir/timidity.cfg ]; then
       grep -qs '^%conf_string$' %_sysconfdir/timidity.cfg ||
       echo '%conf_string' >> %_sysconfdir/timidity.cfg
fi

%triggerpostun -- %name < 1.0-ipl13mdk
[ $2 != 0 ] || exit 0
if [ -f %_sysconfdir/timidity.cfg ]; then
       grep -qs '^%conf_string$' %_sysconfdir/timidity.cfg ||
       echo '%conf_string' >> %_sysconfdir/timidity.cfg
fi

%files
%_datadir/timidity/instruments
%_datadir/timidity/midia.cfg
%_datadir/timidity/gravis.cfg

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin