File muse2.spec of Package muse2
#
# spec file for package muse2 (Version 2.0svn347)
#
# Copyright (c) 2008 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: muse2
Summary: MIDI Music Editor
Version: 2.0svn347
Release: 2
License: GPL v2 only
Group: Productivity/Multimedia/Sound/Midi
Url: http://muse-sequencer.org
Requires: jack
BuildRequires: alsa-devel cmake doxygen dssi fftw3-devel flac-devel fltk-devel fluidsynth-devel libqt4-devel
BuildRequires: glib-devel jack-devel libdrm-devel libjpeg-devel liblo-devel libqt4-devel
BuildRequires: libsamplerate-devel libsndfile-devel mxml-devel readline-devel texlive update-desktop-files
Source: muse-%{version}.tar.bz2
Source1: README.SuSE
Source2: %name.desktop
# from ardour-2.1
Source3: dspSSE.cpp.amd64
Patch1: qatomic-qt-4.4.diff
Patch2: muse2-gcc43fix
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64
%define my_provides /tmp/my-provides
%define _use_internal_dependency_generator 0
%description
MusE aims to be a complete multitrack virtual studio for Linux. MusE
contains a MIDI sequencer with recording and editing capabilities. It
is fully multithreaded with a Qt GUI.
MusE has among other things support for:
* Midi sequencing (Record/Playback/Import)
* Audio sequencing (AudioGroups; Record/Playback several mono/stereo
inputs/outputs)
* LASH (Perform audio effects like chorus/flanger in realtime)
* Jack - jack-audio-connection-kit (for midi/audio routing; Internal
Audio Routing Interface)
* ALSA - based on the Advanced Linux Sound Architecture
Authors:
--------
Werner Schweer <ws@seh.de>
%prep
%setup -q -n muse-%{version}
mkdir obj
%patch1 -p1
%patch2 -p1
## rename docs
#cp plugins/freeverb/readme.txt README.freeverb
#cp synti/vam/README README.vam
#cp synti/vam/TODO TODO.vam
cp %{SOURCE1} .
%ifarch x86_64
cp -p %{SOURCE3} al/dspSSE.cpp
%endif
%build
(cd obj && cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make)
%install
make -C obj DESTDIR="$RPM_BUILD_ROOT" install
# exclude plugins from the provide-list
cat << EOF > %{my_provides}
grep -v $RPM_BUILD_ROOT%{_libdir}/muse | %{__find_provides}
EOF
chmod 755 %{my_provides}
%define __find_provides %{my_provides}
%suse_update_desktop_file -i %name AudioVideo Sequencer
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -c -m 644 packaging/muse_icon.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/muse.png
# convert to UTF-8
# iconv -fiso8859-1 -tutf-8 README.de > README.de.UTF-8
# mv -f README.de.UTF-8 README.de
%clean
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
rm -f %{my_provides}
%files
%defattr(-, root, root)
%doc COPYING ChangeLog NEWS README README.*
%{_bindir}/*
%{_prefix}/lib/muse-2.0
%{_datadir}/muse-2.0
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_libdir}/qt4/plugins/designer/libawlplugin.so
%changelog
* Fri May 16 2008 duwe@suse.de
- include qt-4.4 fix from dmueller to build on STABLE
* Thu May 15 2008 duwe@suse.de
- split experimental SVN version as "muse2"
- due to obscure use of QT4 internals,
currently builds on 10.3 only