|
楼主 |
发表于 2005-4-27 20:26:13
|
显示全部楼层
和 Windows 下的 timidity 一样,
timidity.cfg 里的内容就一行:
[code:1]
soundfont dgx62mbsf.sf2
[/code:1]
spec 文件(从 RH 的 SPEC 抄了点,因为是试验,就没注意相关的东西)
[code:1]
%define ver 2.13.2
%define rel 2mgc
Summary: A software wavetable MIDI synthesizer.
Name: timidity++
Version: %ver
Release: %rel
Group: Applications/Multimedia
Source: TiMidity++-%ver.tar.bz2
Source1: dgx62mbsf.sf2.tar.bz2
Source2: timidity.cfg
URL: http://timidity.sourceforge.net
Patch: TiMidity++-2.13.0-redhat.patch
Patch3: TiMidity++-2.13.0-detect.patch
Patch5: TiMidity++-2.13.0-64bit.patch
Patch6: TiMidity++-2.13.0-warnings.patch
Patch7: TiMidity++-2.13.0-esd.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-root
Obsoletes: timidity++-X11
BuildRequires: arts-devel esound-devel autoconf alsa-lib-devel
%description
TiMidity++ is a MIDI format to wave table format converter and
player. This packger include Duangexing's 62M SountFont2 Lib .
%prep
%setup -q -n TiMidity++-%{version}
%patch -p1
%patch3 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="-s"
autoconf
%configure --enable-interface=ncurses,slang,vt100,alsaseq,server,network --enable-audio=oss,arts,alsa,esd,vorbis --with-default-output=alsa --enable-gtk
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
mkdir -p $RPM_BUILD_ROOT%{_datadir}/timidity $RPM_BUILD_ROOT/etc
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/timidity.cfg
ln -s /etc/timidity.cfg $RPM_BUILD_ROOT%{_datadir}/timidity/timidity.cfg
cd $RPM_BUILD_ROOT%{_datadir}/timidity
tar xvjf %{SOURCE1}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%config(noreplace) /etc/timidity.cfg
%{_bindir}/*
%{_datadir}/timidity
%{_mandir}/*
[/code:1] |
|