Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.2:Test
timidity
timidity.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File timidity.spec of Package timidity
# # spec file for package timidity (Version 2.13.2) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: timidity Summary: Software Synthesizer and MIDI Player Version: 2.13.2 Release: 248 Group: Productivity/Multimedia/Sound/Midi AutoReqProv: on License: GPL v2 or later Url: http://timidity.sourceforge.net/ %define package_version 2.13.2 %define _use_internal_dependency_generator 0 %define my_provides /tmp/my-provides BuildRequires: alsa-devel arts-devel esound-devel libao-devel libjack-devel BuildRequires: gtk2-devel ncurses-devel openmotif-devel slang-devel tk-devel BuildRequires: update-desktop-files xaw3d %if 0%{?suse_version} > 1020 BuildRequires: fdupes xaw3d-devel %endif Source: TiMidity++-%{package_version}.tar.bz2 # Source: timidity-cvs20040227.tar.bz2 Source1: timidity-patches.tar.bz2 Source2: %name.desktop Source3: timidity.png Source4: timidity.cfg Patch: timidity-el-path.dif Patch1: timidity-gcc4-fix.diff Patch2: timidity-array-range-fix.diff Patch3: timidity-tcl-wish-path-fix.diff Patch4: timidity-alsaseq-poll-fix.diff Patch5: timidity-fonts-fix.diff Patch6: timidity-tcl8.5-fix.diff Patch7: timidity-server-warning-fixes.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description TiMidity plays MIDI files without external MIDI instruments and converts MIDI files to WAV using GUS/patch and SoundFont for voice data. Authors: -------- Masanao Izumo <mo@goice.co.jp> %prep %setup -q -n TiMidity++-%{package_version} -a 1 # %setup -q -n timidity -a 1 %patch %patch1 %patch2 %patch3 %patch4 %patch5 %patch6 %patch7 -p1 # save the original INSTALL file mv INSTALL INSTALL-orig %build echo >> autoconf/arts.m4 autoreconf --force --install cp INSTALL-orig INSTALL %configure \ --enable-dynamic=ncurses,emacs,slang,vt100,xaw,xskin,gtk,motif,tcltk,alsaseq,server \ --enable-audio=alsa,arts,oss,esd,vorbis,jack,ao \ --with-default-output=alsa \ --enable-network \ --enable-spectrogram \ --enable-wrd \ --with-module-dir=%{_libdir}/timidity \ --with-default-path=/etc make %{?jobs:-j %jobs} WISH=tclsh CFLAGS="$RPM_OPT_FLAGS" %install %makeinstall WISH=tclsh mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults/ cp TiMidity.ad $RPM_BUILD_ROOT/usr/share/X11/app-defaults/TiMidity # for japanese locale # UTF-8 version mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/{ja,ja_JP.UTF-8,ja_JP.eucJP,ja_JP.ujis}/app-defaults iconv -feuc-jp -tutf-8 TiMidity-uj.ad > $RPM_BUILD_ROOT%{_datadir}/X11/ja/app-defaults/TiMidity ln -s ../../ja/app-defaults/TiMidity $RPM_BUILD_ROOT%{_datadir}/X11/ja_JP.UTF-8/app-defaults/TiMidity # EUC-jp version cp TiMidity-uj.ad $RPM_BUILD_ROOT%{_datadir}/X11/ja_JP.eucJP/app-defaults/TiMidity ln -s ../../ja_JP.eucJP/app-defaults/TiMidity $RPM_BUILD_ROOT%{_datadir}/X11/ja_JP.ujis/app-defaults/TiMidity # copy documents mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} cp AUTHORS COPYING ChangeLog* INSTALL NEWS README TODO \ $RPM_BUILD_ROOT%{_docdir}/%{name} for i in *.ja; do iconv -f euc-jp -t utf8 $i > $RPM_BUILD_ROOT%{_docdir}/%{name}/$i done mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/en (cd doc/C for i in * ; do case $i in Makefile*|*.[1-9]) ;; *) cp $i $RPM_BUILD_ROOT%{_docdir}/%{name}/en ;; esac done ) mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/ja_JP (cd doc/ja_JP.eucJP for i in * ; do case $i in Makefile*|*.[1-9]) ;; *) iconv -f euc-jp -t utf8 $i > $RPM_BUILD_ROOT%{_docdir}/%{name}/ja_JP/$i ;; esac done ) # copy sample patches and config file mkdir -p $RPM_BUILD_ROOT%{_datadir}/timidity cp -a timidity-patches/* $RPM_BUILD_ROOT%{_datadir}/timidity mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp mkdir -p $RPM_BUILD_ROOT%{_datadir}/xemacs/site-lisp/lisp cp interface/timidity.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp cp interface/timidity.el $RPM_BUILD_ROOT%{_datadir}/xemacs/site-lisp/lisp %suse_update_desktop_file -i -u %name AudioVideo Midi mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps cp %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps mkdir -p $RPM_BUILD_ROOT/etc install -c -m 644 %{SOURCE4} $RPM_BUILD_ROOT/etc # exclude plugins from the provide-list cat << EOF > %{my_provides} grep -v $RPM_BUILD_ROOT%{_libdir}/timidity | %{__find_provides} EOF chmod 755 %{my_provides} %define __find_provides %{my_provides} %if 0%{?suse_version} > 1020 %fdupes -s $RPM_BUILD_ROOT %endif %clean [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT rm -f %{my_provides} %files %defattr(-,root,root) %{_libdir}/timidity %{_datadir}/timidity %{_bindir}/timidity /usr/share/applications/*.desktop %{_datadir}/pixmaps/*.png %config /etc/timidity.cfg %doc %{_mandir}/man*/* /usr/share/X11/app-defaults/TiMidity /usr/share/X11/ja* %doc %{_docdir}/%{name} %{_datadir}/emacs %{_datadir}/xemacs %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor