2010-11-08 16:19:59 +00:00
|
|
|
#
|
2011-05-21 16:11:05 +00:00
|
|
|
# spec file for package rosegarden
|
2010-11-08 16:19:59 +00:00
|
|
|
#
|
2014-09-19 13:59:33 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-11-08 16:19:59 +00:00
|
|
|
#
|
|
|
|
# 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/
|
2011-12-02 19:17:11 +00:00
|
|
|
#
|
2010-11-08 16:19:59 +00:00
|
|
|
|
|
|
|
Name: rosegarden
|
2014-09-19 13:59:33 +00:00
|
|
|
Version: 14.02
|
2013-04-28 07:54:34 +00:00
|
|
|
Release: 0
|
|
|
|
License: GPL-2.0+
|
|
|
|
Summary: Midi, Audio And Notation Editor
|
|
|
|
Url: http://www.rosegardenmusic.com/
|
|
|
|
Group: Productivity/Multimedia/Sound/Midi
|
|
|
|
# http://sourceforge.net/projects/rosegarden/files/ This source url prevent me from checking out the tarball.
|
|
|
|
Source0: %{name}/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}.xpm
|
|
|
|
Source2: %{name}.1
|
|
|
|
# This patch fixes the file search paths for examples, templates and midi driver libraries.
|
|
|
|
Patch1: rosegarden-10.10-filepaths.patch
|
2011-12-02 19:17:11 +00:00
|
|
|
BuildRequires: alsa-devel
|
2011-12-26 07:14:41 +00:00
|
|
|
BuildRequires: automake
|
2011-12-02 19:17:11 +00:00
|
|
|
BuildRequires: dssi-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fftw3-devel
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: ladspa-devel
|
|
|
|
BuildRequires: libjack-devel
|
|
|
|
BuildRequires: liblo-devel
|
|
|
|
BuildRequires: liblrdf-devel
|
|
|
|
BuildRequires: libqt4-devel >= 4.6.3
|
|
|
|
BuildRequires: libsamplerate-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: lirc-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: xorg-x11-util-devel
|
2013-04-28 07:54:34 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
Requires: dssi
|
|
|
|
Requires: ladspa
|
|
|
|
Provides: rosegarden-qt4 = %{version}
|
|
|
|
Provides: rosegarden4 = %{version}
|
|
|
|
Obsoletes: rosegarden-qt4 < %{version}
|
|
|
|
Obsoletes: rosegarden4 < %{version}
|
2010-11-08 16:19:59 +00:00
|
|
|
Icon: rosegarden.xpm
|
|
|
|
%if 0%{?suse_version} > 1120
|
|
|
|
Requires: lilypond
|
|
|
|
%else
|
|
|
|
Recommends: lilypond
|
|
|
|
%endif
|
2013-04-06 11:19:00 +00:00
|
|
|
Requires: jack
|
2010-11-08 16:19:59 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Rosegarden is a well-rounded audio and MIDI sequencer,
|
|
|
|
score editor, and general-purpose music composition and
|
|
|
|
editing environment. Rosegarden is an easy-to-learn,
|
|
|
|
attractive application that runs on Linux, ideal for
|
|
|
|
composers, musicians, music students, and small studio or
|
|
|
|
home recording environments.
|
|
|
|
This is a complete rewrite of the old 1.7.x series of
|
|
|
|
rosegarden and has many new features and enhancements.
|
|
|
|
See the changelog for details.
|
|
|
|
|
2011-05-21 16:11:05 +00:00
|
|
|
# TODO The current desktop menu category (kde4 at least) is Multimedia > Audio Player and not appropriate.
|
2010-11-08 16:19:59 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-02-04 12:17:55 +00:00
|
|
|
%patch1
|
|
|
|
# When we build svn we need to execute bootstrap.sh it doesn't harm the release build either.
|
2010-11-08 16:19:59 +00:00
|
|
|
sh bootstrap.sh
|
|
|
|
|
|
|
|
%build
|
|
|
|
export DEBUG_LADSPA
|
|
|
|
export QTDIR=/usr/
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing -ggdb"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
# -fmessage-length=0 -O2 -fno-strict-aliasing -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables
|
2011-05-21 16:11:05 +00:00
|
|
|
%configure --enable-debug --localedir=%{_datadir}/%{name}/locale/
|
2013-04-28 07:54:34 +00:00
|
|
|
make %{?_smp_mflags}
|
2010-11-08 16:19:59 +00:00
|
|
|
# This translation handling make section is possibly only necessary when building svn
|
|
|
|
make ts
|
|
|
|
make ts-noobsolete
|
|
|
|
make locale
|
|
|
|
|
|
|
|
%install
|
2011-05-21 16:11:05 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/scripts
|
|
|
|
cp -p scripts/* %{buildroot}%{_datadir}/%{name}/scripts/
|
|
|
|
cp -r data/* %{buildroot}%{_datadir}/%{name}/
|
2010-11-08 16:19:59 +00:00
|
|
|
|
2013-04-28 07:54:34 +00:00
|
|
|
%make_install
|
2011-05-21 16:11:05 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/desktop
|
|
|
|
rm -rf %{buildroot}%{_datadir}/%{name}/mime
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/*.cpp
|
|
|
|
rm -f %{buildroot}%{_datadir}/%{name}/*.o
|
|
|
|
chmod 755 %{buildroot}%{_datadir}/%{name}/scripts/*
|
|
|
|
chmod 644 %{buildroot}%{_datadir}/%{name}/scripts/lircrc.rosegarden
|
|
|
|
chmod 644 %{buildroot}%{_datadir}/%{name}/scripts/README
|
|
|
|
chmod 644 %{buildroot}%{_datadir}/%{name}/scripts/color-list
|
|
|
|
chmod 644 %{buildroot}%{_datadir}/%{name}/scripts/simple-makefile
|
2010-11-08 16:19:59 +00:00
|
|
|
|
2013-04-28 07:54:34 +00:00
|
|
|
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/pixmaps/%{name}.xpm"
|
2011-05-21 16:11:05 +00:00
|
|
|
%suse_update_desktop_file %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
2010-11-08 16:19:59 +00:00
|
|
|
#This is a man page made by help2man to satisfy factories hunger for one /usr/bin/ one man page.
|
2011-05-21 16:11:05 +00:00
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
2013-04-28 07:54:34 +00:00
|
|
|
install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_mandir}/man1/"
|
2011-05-21 16:11:05 +00:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}
|
2010-11-08 16:19:59 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
/usr/bin/update-mime-database "%{_datadir}/mime" >/dev/null
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/usr/bin/update-mime-database "%{_datadir}/mime" >/dev/null
|
|
|
|
|
|
|
|
%clean
|
2013-04-28 07:54:34 +00:00
|
|
|
rm -rf %{buildroot}
|
2010-11-08 16:19:59 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-03-08 10:18:26 +00:00
|
|
|
%doc AUTHORS COPYING README
|
2014-09-19 13:59:33 +00:00
|
|
|
%dir %{_datadir}/appdata
|
2011-05-21 16:11:05 +00:00
|
|
|
%dir %{_datadir}/%{name}/
|
|
|
|
%dir %{_datadir}/%{name}/autoload
|
|
|
|
%dir %{_datadir}/%{name}/chords
|
|
|
|
%dir %{_datadir}/%{name}/examples
|
|
|
|
%dir %{_datadir}/%{name}/fonts
|
|
|
|
%dir %{_datadir}/%{name}/library
|
|
|
|
%dir %{_datadir}/%{name}/locale
|
|
|
|
%dir %{_datadir}/%{name}/profile
|
|
|
|
%dir %{_datadir}/%{name}/scripts
|
|
|
|
%dir %{_datadir}/%{name}/styles
|
|
|
|
%dir %{_datadir}/%{name}/templates
|
|
|
|
%dir %{_datadir}/%{name}/templates
|
2010-11-08 16:19:59 +00:00
|
|
|
%{_datadir}/icons/hicolor/*
|
2011-05-21 16:11:05 +00:00
|
|
|
%{_datadir}/pixmaps/%{name}.xpm
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_bindir}/%{name}
|
2011-02-04 12:17:55 +00:00
|
|
|
%{_mandir}/man1/*
|
2011-05-21 16:11:05 +00:00
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
%{_datadir}/%{name}/presets/*
|
|
|
|
%{_datadir}/%{name}/pixmaps/*
|
|
|
|
%{_datadir}/%{name}/autoload/*
|
|
|
|
%{_datadir}/%{name}/chords/*
|
|
|
|
%{_datadir}/%{name}/examples/*
|
|
|
|
%{_datadir}/%{name}/fonts/*
|
|
|
|
%{_datadir}/%{name}/library/*
|
|
|
|
%{_datadir}/%{name}/locale/*
|
|
|
|
%{_datadir}/%{name}/profile/*
|
|
|
|
%{_datadir}/%{name}/scripts/*
|
|
|
|
%{_datadir}/%{name}/styles/*
|
|
|
|
%{_datadir}/%{name}/templates/*
|
|
|
|
%{_datadir}/mime/packages/%{name}.xml
|
2014-02-09 05:45:55 +00:00
|
|
|
%{_datadir}/appdata/rosegarden.appdata.xml
|
2010-11-08 16:19:59 +00:00
|
|
|
|
|
|
|
%changelog
|