1
0
forked from pool/schismtracker
schismtracker/schism.spec

71 lines
2.1 KiB
RPMSpec

#
# spec file for package schism
#
# 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: schism
Version: 0.20100224
Release: 1
URL: http://schismtracker.org/
License: GPL v2 or later
Group: Productivity/Multimedia/Sound/Editors and Convertors
Summary: Music editor that aims to match the look and feel of Impulse Tracker
#Hg-Clone: http://schismtracker.org/hg/
Source: schismtracker-%version.tar.bz2
Source1: %{name}.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL-devel >= 1.2.10, xorg-x11-devel
BuildRequires: alsa-devel freeglut-devel gcc-c++
BuildRequires: python >= 2.4
BuildRequires: update-desktop-files
%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 schismtracker
%build
if [ ! -e configure ]; then
autoreconf -fi
fi
%configure
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
# install icons
for size in 16 22 24 32 36 48 64 72 96 128 192; do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${size}x${size}/apps
cp icons/schism-icon-$size.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${size}x${size}/apps/schism.png
done
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
cp icons/schism-icon.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/schism.svg
# install desktop file
%suse_update_desktop_file -i %{name} AudioVideo Sequencer
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/schismtracker
%{_datadir}/icons/hicolor
%{_datadir}/applications/schism.desktop
%changelog