File muse2.spec of Package muse2

#
# spec file for package muse2
#
# Copyright (c) 2009-2012 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/
#



Name:           muse2
Version:        2.0.1
Release:        40
License:        GPL-2.0
Summary:        MIDI Music Editor
Url:            http://muse-sequencer.org
Group:          Productivity/Multimedia/Sound/Midi
Source:         muse-%{version}.tar.bz2
Source1:        README.SuSE
Source2:        %name.desktop
# from ardour-2.1
Source3:        dspSSE.cpp.amd64
Source4:        muse2.permissions
BuildRequires:  alsa-devel
BuildRequires:  automake
BuildRequires:  ccaudio2-devel
BuildRequires:  cmake
BuildRequires:  cpp
BuildRequires:  doxygen
BuildRequires:  dssi-devel
BuildRequires:  fftw3-devel
BuildRequires:  flac-devel
BuildRequires:  fltk-devel
BuildRequires:  fluidsynth-devel
BuildRequires:  glib2-devel
BuildRequires:  gcc
BuildRequires:  hicolor-icon-theme
BuildRequires:  jack-devel
BuildRequires:  ladspa-devel
BuildRequires:  lash-devel
BuildRequires:  libdrm-devel
BuildRequires:  libjpeg-devel
BuildRequires:  liblo-devel
BuildRequires:  libuuid-devel
BuildRequires:  libqt4-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  libsndfile-devel
BuildRequires:  libtool
BuildRequires:  mxml-devel
BuildRequires:  pkg-config
BuildRequires:  python-devel
BuildRequires:  readline-devel
BuildRequires:  texlive
BuildRequires:  update-desktop-files
Requires:       jack
Requires:       lash
Requires:       alsa-plugins-jack
Requires:       fluidsynth-dssi
Requires:       hicolor-icon-theme
Recommends:     qjackctl
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

%prep
%setup -q -n muse-%{version}
cp %{SOURCE4} .

%build
cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR=%{_libdir} -DENABLE_PYTHON=ON -DMusE_DOC_DIR=%{_defaultdocdir}/%{name}

%install
make DESTDIR="%{buildroot}" install
# install desktop files
%suse_update_desktop_file -i %name AudioVideo Sequencer
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -c -m 644 packaging/muse_icon.png %{buildroot}%{_datadir}/pixmaps/muse.png
# exclude plugins from the provide-list
cat << EOF > %{my_provides}
grep -v %{buildroot}%{_libdir}/muse | %{__find_provides}
EOF
chmod 755 %{my_provides}
%define __find_provides %{my_provides}

%clean
[ %{buildroot} != "/" -a -d %{buildroot} ] && rm -rf %{buildroot}
rm -f %{my_provides}

%files
%defattr(-, root, root)
%doc COPYING ChangeLog NEWS README README.* muse2.permissions
%{_bindir}/*
%{_datadir}/muse-2.0
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/icons/*/*/apps/muse*.png
%{_libdir}/muse-2.0
%{_mandir}/man1/*
%{_datadir}/mime/packages/muse*.xml

%changelog
openSUSE Build Service is sponsored by