# $Id: soundtracker.spec 4115 2006-02-28 23:06:09Z dag $ # Authority: dag # Upstream: Michael Krause # Upstream: %{?dist: %{expand: %%define %dist 1}} %{?rh7:%define _without_freedesktop 1} %{?el2:%define _without_freedesktop 1} %{?rh6:%define _without_freedesktop 1} Summary: Sound module player and composer Name: soundtracker Version: 0.6.8 Release: 1 License: GPL Group: Applications/Multimedia URL: http://www.soundtracker.org/ Source: http://www.soundtracker.org/dl/v0.6/soundtracker-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gtk+-devel, gdk-pixbuf-devel, audiofile-devel, esound-devel BuildRequires: libsndfile-devel, gettext %{!?_without_freedesktop:BuildRequires: desktop-file-utils} %description Soundtracker is a module tracker similar to the DOS program `FastTracker'. Soundtracker is based on the XM file format. %prep %setup ### FIXME: Disable chown and suid for local packaging. (Please fix upstream) %{__perl} -pi.orig -e ' s|(chown)|echo $1|g; s|(chmod \+s)|echo $1|g; ' app/Makefile.in %{__cat} <soundtracker.desktop [Desktop Entry] Name=SoundTracker Module Tracker Comment=Play and compose XM sound module files Exec=soundtracker Icon=gnome-multimedia.png Terminal=false Type=Application Encoding=UTF-8 Categories=GNOME;Application;AudioVideo; EOF %build %configure %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} ### FIXME: Makefile doesn't create target directories (Please fix upstream) %{__install} -d -m0755 %{buildroot}%{_bindir} %makeinstall %find_lang %{name} %if %{!?_without_freedesktop:1}0 %{__install} -d -m0755 %{buildroot}%{_datadir}/applications/ desktop-file-install --vendor gnome --delete-original \ --add-category X-Red-Hat-Base \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/gnome/apps/Multimedia/soundtracker.desktop %endif %clean %{__rm} -rf %{buildroot} %files -f %{name}.lang %defattr(-, root, root, 0755) %doc AUTHORS ChangeLog* COPYING FAQ NEWS README TODO %{_bindir}/* %{_datadir}/soundtracker/ %{?_without_freedesktop:%{_datadir}/gnome/apps/Multimedia/soundtracker.desktop} %{!?_without_freedesktop:%{_datadir}/applications/gnome-soundtracker.desktop} %changelog * Tue Feb 28 2006 Dag Wieers - 0.6.8-1 - Updated to release 0.6.8. * Wed Jan 14 2004 Dag Wieers - 0.6.7-1 - Initial package. (using DAR)