File mingw64-schismtracker.spec of Package mingw64-schismtracker

#
# spec file for package mingw64-schismtracker
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           mingw64-schismtracker
%define rname	schismtracker
Version:        20150409
Release:        0
Url:            http://schismtracker.org/
Summary:        Music editor that aims to match the look and feel of Impulse Tracker
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Editors and Convertors

#Hg-Clone:      http://schismtracker.org/hg/
#Snapshot:	2914:3fa3836ff27c
Source:         schismtracker-%version.tar.xz
Source2:        schismtracker.desktop
Patch1:         schism-alsa.diff
Patch2:         schism-nodate.diff
Patch3:         schism-deptrack.diff
Patch4:         schism-notarget.diff
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libSDL-devel >= 1.2.10
BuildRequires:  libtool
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-freeglut-devel
BuildRequires:  mingw64-libSDL-devel >= 1.2.10
BuildRequires:  python >= 2.4
BuildRequires:  xz
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
Schism Tracker is a free reimplementation of Impulse Tracker, a
program used to create high quality music without the requirements of
specialized, expensive equipment, and with a unique "finger feel"
that is difficult to replicate in-part. The player is based on a
highly modified version of the Modplug engine, with a number of
bugfixes and changes to improve IT playback.

%prep
%setup -qn hg
%patch -P 1 -P 2 -P 3 -P 4 -p1

%build
autoreconf -fi
%_mingw64_configure
make %{?_smp_mflags}

%install
b="%buildroot"
%make_install
for size in 16 22 24 32 36 48 64 72 96 128 192; do
	install -Dm 0644 "icons/schism-icon-$size.png" \
		"$b/%_mingw64_datadir/icons/hicolor/${size}x$size/apps/%name.png"
done
install -Dm 0644 icons/schism-icon.svg \
	"$b/%_mingw64_datadir/icons/hicolor/scalable/apps/%name.svg"

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%_mingw64_bindir/schismtracker.exe
%_mingw64_datadir/icons/
%_mingw64_mandir/man*/*

%changelog
openSUSE Build Service is sponsored by