File rosegarden4.spec of Package rosegarden4

#
# spec file for package rosegarden4 (Version 1.7.3)
#
# 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:           rosegarden4
BuildRequires:  cmake dssi-devel fdupes fftw3-devel kdelibs3-devel ladspa-devel liblo-devel liblrdf-devel libraptor-devel
Summary:        MIDI/Audio Sequencer and Notation Editor
Version:        1.7.3
Release:        3
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Midi
Source:         rosegarden-%{version}.tar.bz2
Source1:        rosegarden.desktop
Requires:       ladspa libsndfile-progs
Url:            http://www.rosegardenmusic.com/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Rosegarden-4 is a user-friendly MIDI/audio sequencer, notation editor,
and general-purpose music composition and editing application for Unix
and Linux.

This package contains the new version of Rosegarden as a KDE
application with support for ALSA and JACK outputs and LADSPA plug-ins.



Authors:
--------
    Chris Cannam <cannam@all-day-breakfast.com>
    Richard Bown <bownie@bownie.com>
    Guillaume Laurent <glaurent@telegraph-road.org>

%define prefix /opt/kde3

%prep
%setup -q -n rosegarden-%{version}

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
cmake . -DCMAKE_INSTALL_PREFIX=%prefix -DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS"
make %{?jobs:-j %jobs} VERBOSE=1

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf `find $RPM_BUILD_ROOT -name accordion*.xpm`
rm -rf `find $RPM_BUILD_ROOT -name custodes*.xpm`
rm -f $RPM_BUILD_ROOT/opt/kde3/share/applications/*/*.desktop
%suse_update_desktop_file -D rosegarden -i rosegarden AudioVideo Sequencer
%find_lang rosegarden
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files -f rosegarden.lang
%defattr(-, root, root)
%doc AUTHORS COPYING README TRANSLATORS
/opt/kde3/bin/*
# /opt/kde3/share/applications/*
%{_datadir}/applications/*
/opt/kde3/share/apps/rosegarden
/opt/kde3/share/apps/profiles
/opt/kde3/share/icons/*
/opt/kde3/share/mimelnk/audio/*

%changelog
openSUSE Build Service is sponsored by