File soundtracker.spec of Package soundtracker

#
# spec file for package soundtracker (Version 0.6.7)
#
# 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:           soundtracker
BuildRequires:  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:        481
License:        GPL v2 or later
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
openSUSE Build Service is sponsored by