Blob Blame History Raw
Name:          rosegarden4
Version:       10.02.1
Release:       1%{?dist}
Summary:       MIDI, audio and notation editor
Group:         Applications/Multimedia
License:       GPLv2+
URL:           http://www.rosegardenmusic.com/
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0:       http://downloads.sourceforge.net/project/rosegarden/rosegarden/10.02/rosegarden-%{version}.tar.bz2
# 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

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: kdelibs4-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}

%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

# 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

# To force our Fedora flags
sed -i 's|@CXXFLAGS@|%optflags|' Makefile.in

%build
# The following is needed if kdelibs3 is installed
#unset QTDIR
# Fix DSO linking
export LIBS="-lz -lX11 -ldl"
%configure
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
%defattr(-,root,root,-)
%doc AUTHORS COPYING CONTRIBUTING README
%{_bindir}/rosegarden
%{_datadir}/applications/fedora-rosegarden.desktop
%{_datadir}/icons/hicolor/*/mimetypes/audio-x-rosegarden-*.png
%{_datadir}/icons/hicolor/32x32/apps/rosegarden.png
%{_datadir}/mime/packages/rosegarden.xml

%_font_pkg -n feta *feta*.pfa
%doc data/fonts/README

%_font_pkg -n parmesan *parmesan*.pfa
%doc data/fonts/README

%changelog
* 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.