MuseScore/MuseScore.spec

117 lines
3.7 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: MuseScore
Version: 1.3
Release: 1mamba
Summary: Free music composition & notation software
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.musescore.org
Source: http://downloads.sourceforge.net/project/mscore/mscore/MuseScore-%{version}/mscore-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libICE-devel
BuildRequires: libjack-devel
BuildRequires: libopenssl-devel
BuildRequires: libpng-devel
BuildRequires: libportaudio-devel
BuildRequires: libqt4-designer
BuildRequires: libqt4-devel
BuildRequires: libSM-devel
BuildRequires: libsndfile-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-devel
BuildRequires: libXinerama-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: soundfont-TimGM
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
MuseScore is a free cross platform WYSIWYG music notation program, licenced under GNU GPL.
Some highlights:
* WYSIWYG, notes are entered on a "virtual note sheet"
* Unlimited number of staves
* Up to four voices per staff
* Easy and fast note entry with mouse, keyboard or MIDI
* Integrated sequencer and FluidSynth software synthesizer
* Import and export of MusicXML and Standard MIDI Files (SMF)
* Platform independent code, binaries available for Windows, Mac and Linux
* Available in 20 languages
* GNU GPL licenced
%package -n soundfont-TimGM
Group: System/Multimedia
Summary: A soundfont collection for MIDI synthetizers
Provides: soundfont-2rock9
Obsoletes: soundfont-2rock9
Provides: soundfont
%description -n soundfont-TimGM
A soundfont collection for MIDI synthetizers.
%prep
%setup -q -n mscore-%{version}
%build
%make PREFIX=%{_prefix}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall PREFIX=%{_prefix}
rm -f %{buildroot}%{_libdir}/qt4/plugins/script/libqtscript*.so
install -d -m0755 %{buildroot}%{_datadir}/soundfonts
mv %{buildroot}%{_datadir}/mscore-%{majver}/sound/TimGM6mb.sf2 \
%{buildroot}%{_datadir}/soundfonts/TimGM6mb.sf2
ln -s ../../soundfonts/TimGM6mb.sf2 %{buildroot}%{_datadir}/mscore-%{majver}/sound/TimGM6mb.sf2
ln -s TimGM6mb.sf2 %{buildroot}%{_datadir}/soundfonts/default.sf2
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/mscore
%{_libdir}/qt4/plugins/designer/libawlplugin.so
%{_datadir}/applications/mscore.desktop
%{_datadir}/mscore-%{majver}/demos
%{_datadir}/mscore-%{majver}/locale
%{_datadir}/mscore-%{majver}/man
%{_datadir}/mscore-%{majver}/plugins
%{_datadir}/mscore-%{majver}/sound/TimGM6mb.sf2
%{_datadir}/mscore-%{majver}/styles
%{_datadir}/mscore-%{majver}/templates
%{_datadir}/mscore-%{majver}/wallpaper
%{_datadir}/pixmaps/mscore.png
%{_datadir}/pixmaps/mscore.xpm
%files -n soundfont-TimGM
%defattr(-,root,root)
%{_datadir}/soundfonts/default.sf2
%{_datadir}/soundfonts/TimGM6mb.sf2
%changelog
* Fri Mar 08 2013 Automatic Build System <autodist@mambasoft.it> 1.3-1mamba
- automatic version update by autodist
* Wed Apr 11 2012 Automatic Build System <autodist@mambasoft.it> 1.2-1mamba
- update to 1.2
* Mon Mar 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
- update to 1.0
* Fri Nov 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.5-1mamba
- package created by autospec