rosegarden/rosegarden.spec

160 lines
5.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package rosegarden (Version 10.10)
#
# Copyright (c) 2010 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: rosegarden
BuildRequires: libjack-devel
BuildRequires: libqt4-devel >= 4.4.0
BuildRequires: alsa-devel dssi-devel fftw3-devel ladspa-devel liblrdf-devel libxml2-devel lirc-devel
BuildRequires: libsamplerate-devel libsndfile-devel
BuildRequires: fdupes liblo-devel shared-mime-info update-desktop-files
Version: 10.10
Release: 1
License: GPLv2+
Source0: http://sourceforge.net/projects/rosegarden/rosegarden-%{version}.tar.bz2
Source1: rosegarden.xpm
Source2: rosegarden.1
# This patch fixes the 64 bit lib search path for dssi and ladspa and is distro specific for now.
Patch0: rosegarden-10.02-plugin-lib64path.patch
# This patch fixes the file search paths for examples, templates and midi driver libraries.
Patch1: rosegarden-%{version}-filepaths.patch
Group: Productivity/Multimedia/Sound/Midi
Summary: Midi, Audio And Notation Editor
Icon: rosegarden.xpm
Url: http://www.rosegardenmusic.com/
AutoReqProv: on
Provides: rosegarden-qt4 = %{version}-%{release} rosegarden4 = %{version}-%{release}
Obsoletes: rosegarden-qt4 < %{version}-%{release} rosegarden4 < %{version}-%{release}
Requires: ladspa dssi
%if 0%{?suse_version} > 1120
Requires: lilypond
%else
Recommends: lilypond
%endif
Recommends: jack
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.
Authors:
--------
Chris Cannam <cannam@all-day-breakfast.com>
Richard Bown <bownie@bownie.com>
Guillaume Laurent <glaurent@telegraph-road.org>
%prep
%setup -q
%patch0
%patch1 -p1
sh bootstrap.sh
%{?suse_update_config:%{suse_update_config -f}}
%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
#sh bootstrap.sh
%configure --enable-debug --localedir=%{_datadir}/rosegarden/locale/
%__make %{?jobs:-j%{jobs}}
# This translation handling make section is possibly only necessary when building svn
make ts
make ts-noobsolete
make locale
%install
mkdir -p %{buildroot}%{_datadir}/rosegarden/scripts
cp -p scripts/* %{buildroot}%{_datadir}/rosegarden/scripts/
cp -r data/* %{buildroot}%{_datadir}/rosegarden/
%makeinstall
rm -rf %{buildroot}%{_datadir}/rosegarden/desktop
rm -rf %{buildroot}%{_datadir}/rosegarden/mime
rm -f %{buildroot}%{_datadir}/rosegarden/*.cpp
rm -f %{buildroot}%{_datadir}/rosegarden/*.o
chmod 755 %{buildroot}%{_datadir}/rosegarden/scripts/*
chmod 644 %{buildroot}%{_datadir}/rosegarden/scripts/lircrc.rosegarden
chmod 644 %{buildroot}%{_datadir}/rosegarden/scripts/README
chmod 644 %{buildroot}%{_datadir}/rosegarden/scripts/color-list
chmod 644 %{buildroot}%{_datadir}/rosegarden/scripts/simple-makefile
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/pixmaps/rosegarden.xpm"
%suse_update_desktop_file %{buildroot}/%{_datadir}/applications/rosegarden.desktop
#This is a man page made by help2man to satisfy factories hunger for one /usr/bin/ one man page.
mkdir -p %{buildroot}%{_mandir}/man1/
%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_mandir}/man1/"
%fdupes -s $RPM_BUILD_ROOT%{_datadir}/
%post
/usr/bin/update-mime-database "%{_datadir}/mime" >/dev/null
%postun
/usr/bin/update-mime-database "%{_datadir}/mime" >/dev/null
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/rosegarden/
%dir %{_datadir}/rosegarden/autoload
%dir %{_datadir}/rosegarden/chords
%dir %{_datadir}/rosegarden/examples
%dir %{_datadir}/rosegarden/fonts
%dir %{_datadir}/rosegarden/library
%dir %{_datadir}/rosegarden/locale
%dir %{_datadir}/rosegarden/profile
%dir %{_datadir}/rosegarden/scripts
%dir %{_datadir}/rosegarden/styles
%dir %{_datadir}/rosegarden/templates
%dir %{_datadir}/rosegarden/templates
%{_datadir}/icons/hicolor/*
%{_datadir}/pixmaps/rosegarden.xpm
%{_datadir}/applications/rosegarden.desktop
%{_bindir}/rosegarden
%{_mandir}/man1/*
%{_datadir}/rosegarden/*
%{_datadir}/rosegarden/presets/*
%{_datadir}/rosegarden/pixmaps/*
%{_datadir}/rosegarden/autoload/*
%{_datadir}/rosegarden/chords/*
%{_datadir}/rosegarden/examples/*
%{_datadir}/rosegarden/fonts/*
%{_datadir}/rosegarden/library/*
%{_datadir}/rosegarden/locale/*
%{_datadir}/rosegarden/profile/*
%{_datadir}/rosegarden/scripts/*
%{_datadir}/rosegarden/styles/*
%{_datadir}/rosegarden/templates/*
%{_datadir}/mime/packages/rosegarden.xml
%changelog