File soundtracker.spec of Package soundtracker
#
# spec file for package soundtracker (Version 0.6.7)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: soundtracker
BuildRequires: db1-devel esound-devel flac-devel gdk-pixbuf-devel jack-devel libsndfile-devel update-desktop-files
%define package_version 0.6.7
Summary: Sound modules editor/player
Version: 0.6.7
Release: 310
License: GNU General Public License (GPL)
Group: Productivity/Multimedia/Sound/Editors and Convertors
Source: soundtracker-%{package_version}.tar.bz2
Source1: soundtracker.png
Patch: soundtracker.dif
Patch1: automake-fix.dif
Patch3: destdir-fix.dif
Patch4: nosuid.dif
Patch6: soundtracker-desktop.dif
Patch7: soundtracker-seq-port-free-fix.diff
Patch8: soundtracker-undefined-operation-fix.diff
Patch9: soundtracker-strncat-fix.diff
URL: http://www.soundtracker.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Soundtracker is a module tracker for the X Window System similar to the
DOS program 'FastTracker'. Soundtracker is based on the XM file
format. The user interface makes use of Gtk+.
Authors:
--------
Michael Krause <m.krause@tu-harburg.de>
%prep
%setup -q -n %{name}-%{package_version}
%patch
%patch1
%patch3
%patch4
%patch6
%patch7
%patch8
%patch9
rename no nb po/no.*
sed "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure.in > configure.in.tmp && mv configure.in.tmp configure.in
%{?suse_update_config:%{suse_update_config -fl}}
%build
gettextize -f --no-changelog
autoreconf --force --install
test -f po/Makevars || mv po/Makevars.template po/Makevars
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%ifarch %{ix86}
AS="gcc" \
./configure --prefix=%{_prefix}
%else
./configure --prefix=%{_prefix} --disable-asm
%endif
make
%install
make prefix="$RPM_BUILD_ROOT"%{_prefix} install
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
mv $RPM_BUILD_ROOT/usr/share/gnome/apps/*/*.desktop $RPM_BUILD_ROOT/usr/share/applications
rmdir $RPM_BUILD_ROOT/usr/share/gnome/apps/* $RPM_BUILD_ROOT/usr/share/gnome/apps $RPM_BUILD_ROOT/usr/share/gnome
%suse_update_desktop_file %name AudioVideo Sequencer
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc ABOUT-NLS AUTHORS COPYING ChangeLog* FAQ README NEWS TODO
%doc doc/*.html doc/*.texi doc/*.txt
%{_bindir}/soundtracker
%{_datadir}/applications/soundtracker.desktop
%{_datadir}/soundtracker
%{_datadir}/locale/*/*/*
%{_datadir}/pixmaps/*.png
%changelog -n soundtracker
* Wed Jan 31 2007 - ro@suse.de
- GNOME moved to /usr
* Thu Oct 26 2006 - tiwai@suse.de
- fix possible buffer overflow with strncat.
* Sat Oct 21 2006 - schwab@suse.de
- Fix misplaced macro.
* Mon Aug 07 2006 - tiwai@suse.de
- fixed the build with recent gettext (missing mkinstalldirs)
* Fri Mar 24 2006 - tiwai@suse.de
- fix compile warnings (#160438)
* Wed Feb 15 2006 - tiwai@suse.de
- fixed segfault at start up.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 - tiwai@suse.de
- added flac and flac-devel to neededforbuild (required by the new
libsndfile)
* Tue Apr 12 2005 - ro@suse.de
- added audiofile-devel to neededforbuild
* Wed Mar 23 2005 - sbrabec@suse.cz
- Moved desktop file (#73653).
* Wed Nov 03 2004 - ro@suse.de
- locale rename: no -> nb
* Thu Aug 05 2004 - ro@suse.de
- recode desktop file to utf-8
* Mon Feb 16 2004 - tiwai@suse.de
- updated to version 0.6.7.
- fixed the build on non-ix86 architectures.
- added -fno-strict-aliasing to avoid the miscompilation.
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Tue Sep 16 2003 - tiwai@suse.de
- fixed the sample silencing (taken from pre6).
- added desktop icon.
* Fri Aug 15 2003 - adrian@suse.de
- add Categories
* Mon Jul 14 2003 - sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Fri Jun 20 2003 - ro@suse.de
- build with current gettext
* Fri Jun 06 2003 - tiwai@suse.de
- updated to version 0.6.7-pre5.
added jack and libsndfile related packages to neededforbuild.
* Wed Jan 08 2003 - ro@suse.de
- fix configure again
* Thu Nov 21 2002 - ro@suse.de
- add AM_GNU_GETTEXT_VERSION
* Mon Nov 11 2002 - ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
- changed neededforbuild <xdevel> to <>
* Fri Sep 20 2002 - tiwai@suse.de
- replaced xf86 -> xdevel xshared.
* Wed Jun 26 2002 - tiwai@suse.de
- updated to version 0.6.6.
* Thu Apr 11 2002 - tiwai@suse.de
- fixed build with the latest automake & co.
using autoreconf.
- fixed Makefile.am to use DESTDIR.
- do not setuid-root as default.
- install without stripping (for debugging purpose).
* Tue Nov 06 2001 - tiwai@suse.de
- fixed build with the latest automake.
- use gcc as the default assembler.
* Mon Aug 13 2001 - tiwai@suse.de
- updated to ver.0.6.4.
* Mon Jul 23 2001 - tiwai@suse.de
- added gettextize
* Fri Jul 13 2001 - tiwai@suse.de
- updated to version 0.6.3.
- changed group to X11/Applications/Sound.
* Tue Feb 20 2001 - tiwai@suse.de
- Updated to version 0.6.2.
* Thu Nov 09 2000 - tiwai@suse.de
- Updated to version 0.6.1
* Fri Oct 06 2000 - tiwai@suse.de
- Initial version: 0.6.0