8af21b7
%global maj 11.11
17639f4
%global min .42
a5a40df
c7fa7ef
Name:          rosegarden4
a5a40df
Version:       %{maj}%{?min}
17639f4
Release:       1%{?dist}
c7fa7ef
Summary:       MIDI, audio and notation editor
c7fa7ef
Group:         Applications/Multimedia
c7fa7ef
License:       GPLv2+
c7fa7ef
URL:           http://www.rosegardenmusic.com/
a5a40df
Source0:       http://downloads.sourceforge.net/project/rosegarden/rosegarden/%{maj}/rosegarden-%{version}.tar.bz2
bb29533
# From         http://downloads.sourceforge.net/project/rosegarden/rosegarden/%{maj}/README
8af21b7
Source1:       rosegarden-%{maj}.README
c7fa7ef
# Fedora doesn't want fonts built into the final binary
c7fa7ef
Patch0:        rosegarden-separate-fonts.patch
c7fa7ef
# Look for LADSPA/DSSI plugins in the correct place on 64bit platforms 
c7fa7ef
Patch1:        rosegarden-pluginpath.patch
17639f4
# fix redeclaration of iterator - from GCC 4.7 mas rebuild
17639f4
Patch2:        rosegarden-11.11.42-gcc-4.7.patch
c7fa7ef
c7fa7ef
BuildRequires: alsa-lib-devel
Callum Lerwick 20efdd1
BuildRequires: desktop-file-utils
c7fa7ef
BuildRequires: dssi-devel
Callum Lerwick fec244d
BuildRequires: fftw-devel
c7fa7ef
BuildRequires: fontpackages-devel
c7fa7ef
BuildRequires: imake
Callum Lerwick 20efdd1
BuildRequires: jack-audio-connection-kit-devel
24122a6
BuildRequires: qt4-devel
Callum Lerwick 20efdd1
BuildRequires: ladspa-devel
c7fa7ef
BuildRequires: liblo-devel
Callum Lerwick 20efdd1
BuildRequires: liblrdf-devel
c7fa7ef
BuildRequires: libsamplerate-devel
c7fa7ef
BuildRequires: libsndfile-devel
Callum Lerwick 20efdd1
BuildRequires: lirc-devel
3f042e2
c7fa7ef
Provides:      rosegarden = %{version}-%{release}
c7fa7ef
c7fa7ef
Requires:      %{name}-feta-fonts = %{version}-%{release}
c7fa7ef
Requires:      %{name}-parmesan-fonts = %{version}-%{release}
fe95307
%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
%description
Callum Lerwick 20efdd1
Rosegarden is a professional audio and MIDI sequencer, score editor, and
Callum Lerwick 20efdd1
general purpose music composition and editing environment.
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
Rosegarden is an easy to learn, attractive application, ideal for composers,
Callum Lerwick 20efdd1
musicians, music students, and small studio or home recording environments. 
Callum Lerwick 20efdd1
3f042e2
%package feta-fonts
c7fa7ef
Summary:       Rosegarden feta fonts
c7fa7ef
Group:         User Interface/X
c7fa7ef
BuildArch:     noarch
c7fa7ef
Requires:      fontpackages-filesystem
3f042e2
3f042e2
%description feta-fonts
3f042e2
Rosegarden is a professional audio and MIDI sequencer, score editor, and
3f042e2
general purpose music composition and editing environment.
3f042e2
3f042e2
This package contains Lilypond's feta musical notation fonts adapted for use
3f042e2
of Rosegarden.
3f042e2
3f042e2
%package parmesan-fonts
c7fa7ef
Summary:       Rosegarden parmesan fonts
c7fa7ef
Group:         User Interface/X
c7fa7ef
BuildArch:     noarch
c7fa7ef
Requires:      fontpackages-filesystem
3f042e2
3f042e2
%description parmesan-fonts
3f042e2
Rosegarden is a professional audio and MIDI sequencer, score editor, and
3f042e2
general purpose music composition and editing environment.
3f042e2
3f042e2
This package contains Lilypond's parmesan musical notation fonts adapted for
3f042e2
use of Rosegarden.
3f042e2
Callum Lerwick 20efdd1
%prep
Callum Lerwick 41ab4e3
%setup -q -n rosegarden-%{version}
c7fa7ef
%patch0 -p1 -b .fonts
c7fa7ef
%patch1 -p1 -b .pluginpath
17639f4
%patch2 -p1 -b .gcc4.7
65c7417
fe95307
# Release notes
bb29533
cp -a %{SOURCE1} ./README.%{maj}
fe95307
65c7417
# Fix permissions:
65c7417
chmod 644 src/commands/segment/SegmentSplitTwiceCommand.*
c7fa7ef
chmod 644 src/gui/widgets/BaseTextFloat.*
65c7417
65c7417
# Add GenericName to the desktop file:
65c7417
echo "GenericName=Audio and MIDI Sequencer" >> data/desktop/rosegarden.desktop
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
%build
c7fa7ef
# The following is needed if kdelibs3 is installed
17639f4
unset QTDIR
8af21b7
%configure --with-qt=%{_qt4_prefix}
c7fa7ef
make %{?_smp_mflags}
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
%install
Callum Lerwick 20efdd1
rm -rf %{buildroot}
Callum Lerwick fec244d
make install DESTDIR=%{buildroot}
Callum Lerwick 20efdd1
65c7417
Callum Lerwick 20efdd1
desktop-file-install --vendor fedora \
Callum Lerwick 20efdd1
  --dir %{buildroot}%{_datadir}/applications \
Callum Lerwick 20efdd1
  --delete-original \
65c7417
  --remove-category X-SuSE-Sequencer \
65c7417
  --remove-category X-Red-Hat-Base \
65c7417
  %{buildroot}%{_datadir}/applications/rosegarden.desktop
Callum Lerwick 20efdd1
c7fa7ef
# Install fonts in the %%_fontdir
3f042e2
mkdir -p %{buildroot}/%{_fontdir}
3f042e2
install -pm 644 data/fonts/*.pfa %{buildroot}/%{_fontdir}
3f042e2
Callum Lerwick fec244d
Callum Lerwick 20efdd1
%clean
Callum Lerwick 20efdd1
rm -rf %{buildroot}
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
%post
Callum Lerwick 20efdd1
update-desktop-database &> /dev/null ||:
65c7417
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
65c7417
touch --no-create %{_datadir}/icons/locolor &>/dev/null || :
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
%postun
Callum Lerwick 20efdd1
update-desktop-database &> /dev/null ||:
65c7417
touch --no-create %{_datadir}/icons/locolor &>/dev/null || :
65c7417
if [ $1 -eq 0 ] ; then
65c7417
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
65c7417
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Callum Lerwick 20efdd1
fi
65c7417
65c7417
%posttrans
65c7417
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
65c7417
Callum Lerwick 20efdd1
c7fa7ef
%files
8af21b7
bb29533
%doc AUTHORS CONTRIBUTING README
bb29533
%doc README.%{maj}
Callum Lerwick 20efdd1
%{_bindir}/rosegarden
Callum Lerwick 20efdd1
%{_datadir}/applications/fedora-rosegarden.desktop
c7fa7ef
%{_datadir}/icons/hicolor/*/mimetypes/audio-x-rosegarden-*.png
1806489
%{_datadir}/icons/hicolor/*/apps/rosegarden.png
c7fa7ef
%{_datadir}/mime/packages/rosegarden.xml
Callum Lerwick 20efdd1
3f042e2
%_font_pkg -n feta *feta*.pfa
57f2139
%doc data/fonts/README COPYING
3f042e2
3f042e2
%_font_pkg -n parmesan *parmesan*.pfa
57f2139
%doc data/fonts/README COPYING
3f042e2
Callum Lerwick 20efdd1
%changelog
17639f4
* Tue Jan 17 2012 Brendan Jones <brendan.jones.it@gmail.com> - 11.11.42-1
17639f4
- Patch for GCC 4.7 FTB
17639f4
- New upstream 11.11.42
17639f4
8af21b7
* Sun Nov 27 2011 Brendan Jones <brendan.jones.it@gmail.com> - 11.11.11-1
8af21b7
- Update to 11.11 and README
8af21b7
- Update spec to current guidelines
8af21b7
873bc38
* Sun May 15 2011 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 11.06-1
873bc38
- Update to 11.06
873bc38
a4e6ce1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.02-2
a4e6ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a4e6ce1
bb29533
* Fri Feb 03 2011 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 11.02-1
bb29533
- Update to 11.02
bb29533
1806489
* Sat Nov 06 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 10.10-1
1806489
- Update to 10.10
1806489
8c108ca
* Tue Jul 20 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 10.04.2-2
8c108ca
- Rebuild against new liblo
57f2139
- Fix the license file issue
8c108ca
a5a40df
* Sun May 09 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 10.04.2-1
a5a40df
- Update to 10.04.2
a5a40df
- Drop upstreamed qt-4.7 patch
a5a40df
fe95307
* Thu Apr 22 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 10.04-1
fe95307
- Update to 10.04
fe95307
- BR qt-devel instead of kdelibs-devel
fe95307
- Add release notes to %%doc
3d6cd70
- Patch for build against qt-4.7
fe95307
c7fa7ef
* Thu Feb 18 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 10.02.1-1
c7fa7ef
- Update to 10.02.1 (Qt4 version)
c7fa7ef
9a2a213
* Sat Feb 13 2010 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.7.3-6
9a2a213
- Fix DSO linking RHBZ#564747
9a2a213
e7676fa
* Wed Nov 25 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.7.3-5
e7676fa
- Font subpackages are noarch
e7676fa
- Rebuild needed (something broke the ABI?)
e7676fa
c9766e1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-4
c9766e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c9766e1
3f13d81
* Sat Mar 07 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.7.3-3
3f13d81
- The software makes use of kdialog. Thus we re-add Requires: kdebase. 
3f13d81
3f042e2
* Sat Mar 07 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.7.3-2
3f042e2
- Add Requires: perl-XML-Twig. RHBZ#468919
3f042e2
- Fix the lilypondview script. RHBZ#464046
3f042e2
- Separate fonts to their own subpackages RHBZ#477450
3f042e2
65c7417
* Fri Mar 06 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.7.3-1
65c7417
- New upstream version.
65c7417
43992e7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-3
43992e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
43992e7
8b57e20
* Wed Apr 02 2008 Rex Dieter <rdieter@fedoraproject.org> -  1.6.1-2
8b57e20
- fix rawhide build (#434424)
8b57e20
- drop: Requires: kdebase3 (don't want a hard dep here)
8b57e20
- drop scriptlet deps (undesirable)
8b57e20
- fix 64bit platform %%if
8b57e20
Callum Lerwick 4aaa1a2
* Wed Feb 13 2008 Callum Lerwick <seg@haxxed.com> - 1.6.1-1
Callum Lerwick 4aaa1a2
- New upstream version.
d20fdb5
Callum Lerwick 6039241
* Wed Dec 12 2007 Callum Lerwick <seg@haxxed.com> - 1.6.0-1
Callum Lerwick 6039241
- New upstream version.
Callum Lerwick 6039241
- Patch cmakelists to use our optflags. (bz330631)
Callum Lerwick 6039241
Callum Lerwick fec244d
* Wed May 02 2007 Callum Lerwick <seg@haxxed.com> - 1.5.1-1
Callum Lerwick fec244d
- New upstream version.
Callum Lerwick fec244d
Callum Lerwick fec244d
* Tue Feb 13 2007 Callum Lerwick <seg@haxxed.com> - 1.5.0-1
Callum Lerwick fec244d
- New upstream version.
Callum Lerwick fec244d
Callum Lerwick 41ab4e3
* Sat Nov 11 2006 Callum Lerwick <seg@haxxed.com> - 1.4.0-1
Callum Lerwick 41ab4e3
- New upstream version.
Callum Lerwick 41ab4e3
Callum Lerwick bfd0970
* Tue Sep 05 2006 Callum Lerwick <seg@haxxed.com> - 1.2.3-5
Callum Lerwick bfd0970
- Bump for FC6 mass rebuild.
Callum Lerwick bfd0970
Callum Lerwick 8c92686
* Sun Jul 23 2006 Callum Lerwick <seg@haxxed.com> - 1.2.3-4
Callum Lerwick 8c92686
- Add dependency on kdebase so help works.
Callum Lerwick 8c92686
Callum Lerwick 20efdd1
* Sun Jul 16 2006 Callum Lerwick <seg@haxxed.com> - 1.2.3-3
Callum Lerwick 20efdd1
- Look for DSSI plugins in the correct place on x86_64.
Callum Lerwick 20efdd1
- Add gettext BR.
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
* Sat Jun 17 2006 Callum Lerwick <seg@haxxed.com> - 1.2.3-2
Callum Lerwick 20efdd1
- Removed which from Buildrequires, mock needing it is confirmed to be a bug.
Callum Lerwick 20efdd1
- Use find_lang macro.
Callum Lerwick 20efdd1
- Look for ladspa plugins in the correct place on x86_64.
Callum Lerwick 20efdd1
- Build against liblo, jack, dssi, lirc.
Callum Lerwick 20efdd1
- Salvage the upstream desktop file, rather than using our own.
Callum Lerwick 20efdd1
Callum Lerwick 20efdd1
* Sat Apr 15 2006 Callum Lerwick <seg@haxxed.com> - 1.2.3-1
Callum Lerwick 20efdd1
- Initial packaging for Extras.