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