--- mscore-0.9.1d+dfsg.orig/debian/patches/03-build-desktop-file.dpatch +++ mscore-0.9.1d+dfsg/debian/patches/03-build-desktop-file.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03-build-desktop-file.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix bug in build process regarding desktop file installation. + +@DPATCH@ +diff -urNad mscore-0.9.1d+dfsg~/mscore/CMakeLists.txt mscore-0.9.1d+dfsg/mscore/CMakeLists.txt +--- mscore-0.9.1d+dfsg~/mscore/CMakeLists.txt 2008-01-24 09:38:17.000000000 +0000 ++++ mscore-0.9.1d+dfsg/mscore/CMakeLists.txt 2008-02-03 16:59:42.000000000 +0000 +@@ -147,7 +147,7 @@ + ${PROJECT_BINARY_DIR}/config.h + ) + if (NOT MINGW) +- install( FILES ${PROJECT_BINARY_DIR}/mscore.desktop DESTINATION share/applications) ++ install( FILES packaging/mscore.desktop DESTINATION share/applications) + endif (NOT MINGW) + + if (USE_GLOBAL_FLUID) --- mscore-0.9.1d+dfsg.orig/debian/patches/01-use-global-fluidsynth.dpatch +++ mscore-0.9.1d+dfsg/debian/patches/01-use-global-fluidsynth.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01-use-global-fluidsynth.dpatch by Toby Smithe +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Enable CMake to build with the global FluidSynth libraries. + +@DPATCH@ +diff -urNad mscore-0.8.0+dfsg~/mscore/CMakeLists.txt mscore-0.8.0+dfsg/mscore/CMakeLists.txt +--- mscore-0.8.0+dfsg~/mscore/CMakeLists.txt 2007-12-18 16:04:02.000000000 +0000 ++++ mscore-0.8.0+dfsg/mscore/CMakeLists.txt 2007-12-26 16:49:18.000000000 +0000 +@@ -26,7 +26,7 @@ + # set(CMAKE_BUILD_TYPE DEBUG) + # set(CMAKE_BUILD_TYPE RELEASE) + +-set(USE_GLOBAL_FLUID FALSE) ++set(USE_GLOBAL_FLUID TRUE) + if (MINGW) + set(USE_GLOBAL_FLUID FALSE) + endif (MINGW) --- mscore-0.9.1d+dfsg.orig/debian/patches/00list +++ mscore-0.9.1d+dfsg/debian/patches/00list @@ -0,0 +1,5 @@ +01-use-global-fluidsynth +02-freedom +03-build-desktop-file +04-use-fluid-soundfont +05-use-mscore-common-files --- mscore-0.9.1d+dfsg.orig/debian/patches/02-freedom.dpatch +++ mscore-0.9.1d+dfsg/debian/patches/02-freedom.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02-freedom.dpatch by Toby Smithe +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: data/piano1.sf2 is non-dfsg-free, and thus not available for linking. +## DP: As a result, it cannot be mentioned here. This patch removes it. + +@DPATCH@ +diff -urNad mscore-0.9.1d+dfsg~/mscore/mscore/mscore.qrc mscore-0.9.1d+dfsg/mscore/mscore/mscore.qrc +--- mscore-0.9.1d+dfsg~/mscore/mscore/mscore.qrc 2008-01-24 09:37:41.000000000 +0000 ++++ mscore-0.9.1d+dfsg/mscore/mscore/mscore.qrc 2008-02-24 18:24:10.818835089 +0000 +@@ -31,7 +31,6 @@ + ../share/templates/instruments.xml + data/splash.jpg + data/demo.msc +- data/piano1.sf2 + data/speaker.svg + data/midiin.svg + data/undo.svg --- mscore-0.9.1d+dfsg.orig/debian/patches/04-use-fluid-soundfont.dpatch +++ mscore-0.9.1d+dfsg/debian/patches/04-use-fluid-soundfont.dpatch @@ -0,0 +1,56 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04-use-fluid-soundfont.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Instead of trying, and failing, to use the removed MiniPiano +## DP: SoundFont; try to use the Fluid SoundFont, available to all +## DP: Debian systems in the recommended fluid-soundfont package. + +@DPATCH@ +diff -urNad mscore-0.9.1d+dfsg~/mscore/mscore/fluid.cpp mscore-0.9.1d+dfsg/mscore/mscore/fluid.cpp +--- mscore-0.9.1d+dfsg~/mscore/mscore/fluid.cpp 2008-01-24 09:37:41.000000000 +0000 ++++ mscore-0.9.1d+dfsg/mscore/mscore/fluid.cpp 2008-02-24 18:30:32.026835419 +0000 +@@ -55,9 +55,9 @@ + p = QString(getenv("DEFAULT_SOUNDFONT")); + if (p.isEmpty()) { + // +- // fallback to integrated soundfont ++ // fallback to FluidR3 soundfont + // +- p = ":/data/piano1.sf2"; ++ p = "/usr/share/sounds/sf2/FluidR3_GM.sf2"; + } + return loadSoundFont(p); + } +diff -urNad mscore-0.9.1d+dfsg~/mscore/mscore/preferences.cpp mscore-0.9.1d+dfsg/mscore/mscore/preferences.cpp +--- mscore-0.9.1d+dfsg~/mscore/mscore/preferences.cpp 2008-01-24 09:37:41.000000000 +0000 ++++ mscore-0.9.1d+dfsg/mscore/mscore/preferences.cpp 2008-02-24 18:30:18.850835401 +0000 +@@ -131,13 +131,7 @@ + alsaPeriodSize = 1024; + alsaFragments = 3; + portaudioDevice = -1; +- +-#ifdef USE_GLOBAL_FLUID +- soundFont = INSTPREFIX "/piano1.sf2"; +-#else +- soundFont = ":/data/piano1.sf2"; +-#endif +- ++ soundFont = "/usr/share/sounds/sf2/FluidR3_GM.sf2"; + layoutBreakColor = Qt::green; + antialiasedDrawing = true; + sessionStart = SCORE_SESSION; +@@ -251,12 +245,7 @@ + playNotes = s.value("playNotes", true).toBool(); + lPort = s.value("lPort").toString(); + rPort = s.value("rPort").toString(); +- +-#ifdef USE_GLOBAL_FLUID +- soundFont = s.value("soundFont", INSTPREFIX "/piano1.sf2").toString(); +-#else +- soundFont = s.value("soundFont", ":/data/piano1.sf2").toString(); +-#endif ++ soundFont = s.value("soundFont", "/usr/share/sounds/sf2/FluidR3_GM.sf2").toString(); + stemDir[0] = (Direction)s.value("stemDirection1", AUTO).toInt(); + stemDir[1] = (Direction)s.value("stemDirection2", AUTO).toInt(); + stemDir[2] = (Direction)s.value("stemDirection3", AUTO).toInt(); --- mscore-0.9.1d+dfsg.orig/debian/patches/05-use-mscore-common-files.dpatch +++ mscore-0.9.1d+dfsg/debian/patches/05-use-mscore-common-files.dpatch @@ -0,0 +1,70 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 05-use-mscore-common-files.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: On Debian systems, use mscore-common files as opposed to those +## DP: linked into the mscore binary where possible. This is done for +## DP: two reasons: to make users aware of the available demo files in +## DP: /usr/share/mscore, and to reduce the size of the mscore binary. + +@DPATCH@ +diff -urNad mscore-0.9.1d+dfsg~/mscore/mscore/mscore.qrc mscore-0.9.1d+dfsg/mscore/mscore/mscore.qrc +--- mscore-0.9.1d+dfsg~/mscore/mscore/mscore.qrc 2008-02-24 19:38:16.310984493 +0000 ++++ mscore-0.9.1d+dfsg/mscore/mscore/mscore.qrc 2008-02-24 19:38:37.654834859 +0000 +@@ -2,9 +2,6 @@ + + + data/repeat.svg +- data/paper1.png +- data/paper2.png +- data/paper3.png + data/text_bold.svg + data/text_italic.svg + data/text_left.svg +@@ -30,7 +27,6 @@ + fonts/mscore1_20.otf + ../share/templates/instruments.xml + data/splash.jpg +- data/demo.msc + data/speaker.svg + data/midiin.svg + data/undo.svg +diff -urNad mscore-0.9.1d+dfsg~/mscore/mscore/preferences.cpp mscore-0.9.1d+dfsg/mscore/mscore/preferences.cpp +--- mscore-0.9.1d+dfsg~/mscore/mscore/preferences.cpp 2008-02-24 19:38:16.402835822 +0000 ++++ mscore-0.9.1d+dfsg/mscore/mscore/preferences.cpp 2008-02-24 19:38:26.898835389 +0000 +@@ -102,7 +102,7 @@ + cursorBlink = false; + fgUseColor = false; + bgUseColor = true; +- fgWallpaper = ":/data/paper3.png"; ++ fgWallpaper = "/usr/share/mscore/wallpapers/paper3.png"; + enableMidiInput = true; + playNotes = true; + bgColor.setRgb(0x76, 0x76, 0x6e); +@@ -135,7 +135,7 @@ + layoutBreakColor = Qt::green; + antialiasedDrawing = true; + sessionStart = SCORE_SESSION; +- startScore = ":/data/demo.msc"; ++ startScore = "/usr/share/mscore/demos/promenade.msc"; + instrumentList = ":/data/instruments.xml"; + imagePath = "~/mscore/images"; + showSplashScreen = true; +@@ -234,7 +234,7 @@ + fgUseColor = s.value("fgUseColor", false).toBool(); + bgUseColor = s.value("bgUseColor", true).toBool(); + fgColor = s.value("fgColor", QColor(50,50,50)).value(); +- fgWallpaper = s.value("fgWallpaper", ":/data/paper3.png").toString(); ++ fgWallpaper = s.value("fgWallpaper", "/usr/share/mscore/wallpapers/paper3.png").toString(); + bgColor = s.value("bgColor", QColor(0x76, 0x76, 0x6e)).value(); + bgWallpaper = s.value("bgWallpaper").toString(); + selectColor[0] = s.value("selectColor1", QColor(Qt::blue)).value(); +@@ -285,7 +285,7 @@ + else if (ss == "score") + sessionStart = SCORE_SESSION; + +- startScore = s.value("startScore", ":/data/demo.msc").toString(); ++ startScore = s.value("startScore", "/usr/share/mscore/demos/promenade.msc").toString(); + instrumentList = s.value("instrumentList", ":/data/instruments.xml").toString(); + + s.beginGroup("PlayPanel"); --- mscore-0.9.1d+dfsg.orig/debian/mscore.postinst +++ mscore-0.9.1d+dfsg/debian/mscore.postinst @@ -0,0 +1,16 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +unud=/var/lib/update-notifier/user.d + +echo "You may need to install a SoundFont. Please see the 'fluid-soundfont-gm' \ +package." + +if [ ! -e "$unud/soundfont-required" ]; then + if [ -d $unud ]; then + cp -f /usr/share/mscore/soundfont-required.update-notifier \ + "$unud/soundfont-required" + fi +fi --- mscore-0.9.1d+dfsg.orig/debian/watch +++ mscore-0.9.1d+dfsg/debian/watch @@ -0,0 +1,5 @@ +version=3 +opts=dversionmangle=s/\+dfsg// \ + http://sf.net/mscore/mscore-(.*)\.tar\.bz2 + + --- mscore-0.9.1d+dfsg.orig/debian/soundfont-required.update-notifier +++ mscore-0.9.1d+dfsg/debian/soundfont-required.update-notifier @@ -0,0 +1,13 @@ +Name: SoundFont required +Priority: High +Terminal: False +DontShowAfterReboot: True +DisplayIf: true +Description: A package has been installed that requires a SoundFont. + SoundFonts enable your system to synthesize audio. Currently, there is + only one GM SoundFont included in Ubuntu, via the "fluid-soundfont-gm" + package, so it is recommended you install that. + . + Alternatively, you can download SoundFonts, which may not necessarily + be freely distributable, from HammerSound: + --- mscore-0.9.1d+dfsg.orig/debian/docs +++ mscore-0.9.1d+dfsg/debian/docs @@ -0,0 +1,2 @@ +mscore/NEWS +mscore/README --- mscore-0.9.1d+dfsg.orig/debian/rules +++ mscore-0.9.1d+dfsg/debian/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +patch: patch-stamp + +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +configure: configure-stamp +configure-stamp: patch + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) PREFIX="/usr" release + touch $@ + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/mscore install + + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs $(CURDIR)/mscore/ChangeLog + dh_installdocs + dh_install + rm -r $(CURDIR)/debian/mscore/usr/share/mscore* + cd $(CURDIR)/debian/mscore-common/usr/share && ln -s mscore-* mscore + install -m0644 $(CURDIR)/debian/soundfont-required.update-notifier \ + $(CURDIR)/debian/mscore-common/usr/share/mscore + mv $(CURDIR)/debian/mscore/usr/bin/mscore \ + $(CURDIR)/debian/mscore/usr/bin/mscore.real + install -T -m0755 $(CURDIR)/debian/mscore.sh \ + $(CURDIR)/debian/mscore/usr/bin/mscore + dh_installman + dh_installmenu + dh_desktop + dh_link + dh_strip + dh_icons + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +get-orig-source: version = $(shell uscan --force-download --dehs --destdir . | sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p') +get-orig-source: + -mkdir tmp-mscore-$(version) + tar -C tmp-mscore-$(version) -xjf mscore-$(version).tar.bz2 + cd tmp-mscore-$(version)/mscore* && \ + find -name *sf2 -exec rm {} + && \ + find -name *pdf -exec rm {} + + mv tmp-mscore-$(version)/mscore* tmp-mscore-$(version)/mscore-$(version)\+dfsg + tar -C tmp-mscore-$(version) -czf mscore_$(version)\+dfsg.orig.tar.gz mscore-$(version)\+dfsg/ + #mv mscore_$(version)\+dfsg.orig.tar.gz ../ + rm -r tmp-mscore-$(version) + rm mscore*bz2 + +.PHONY: get-orig-source build clean binary-indep binary-arch binary install configure --- mscore-0.9.1d+dfsg.orig/debian/manpages +++ mscore-0.9.1d+dfsg/debian/manpages @@ -0,0 +1 @@ +mscore/packaging/mscore.1 --- mscore-0.9.1d+dfsg.orig/debian/compat +++ mscore-0.9.1d+dfsg/debian/compat @@ -0,0 +1 @@ +5 --- mscore-0.9.1d+dfsg.orig/debian/control +++ mscore-0.9.1d+dfsg/debian/control @@ -0,0 +1,43 @@ +Source: mscore +Section: sound +Priority: optional +Maintainer: Ubuntu MOTU Developers +Original-Maintainer: Toby Smithe +Build-Depends: debhelper (>= 5), dpatch, cmake, libqt4-dev, libasound2-dev, + libjack-dev, libfluidsynth-dev +Standards-Version: 3.7.3 +Homepage: http://mscore.sourceforge.net/ + +Package: mscore +Architecture: any +Depends: ${shlibs:Depends}, mscore-common +Recommends: fluid-soundfont-gm +Description: Full featured WYSIWYG score editor + MuseScore is a free WYSIWYG music score typesetter for Linux, + licenced under GNU GPL. Features: + * WYSIWYG, notes are entered on a "virtual note sheet" + * unlimited number of staves + * up to four voices/staff + * easy and fast note entry with mouse, keyboard or midi + * integrated sequencer and FluidSynth software synthesizer + * import and export of MusicXml and standard midifiles (SMF) + * platform independent code for Linux, Windows and Mac + . + To use the full functionality, a SoundFont must be supplied to mScore, + enabling synthesis. + +Package: mscore-common +Architecture: all +Description: Full featured WYSIWYG score editor (common files) + MuseScore is a free WYSIWYG music score typesetter for Linux, + licenced under GNU GPL. Features: + * WYSIWYG, notes are entered on a "virtual note sheet" + * unlimited number of staves + * up to four voices/staff + * easy and fast note entry with mouse, keyboard or midi + * integrated sequencer and FluidSynth software synthesizer + * import and export of MusicXml and standard midifiles (SMF) + * platform independent code for Linux, Windows and Mac + . + This package contains the common files used by mscore, such as demos, + templates and wallpapers. --- mscore-0.9.1d+dfsg.orig/debian/mscore.sh +++ mscore-0.9.1d+dfsg/debian/mscore.sh @@ -0,0 +1,8 @@ +#!/bin/sh +MSCORE=`which mscore.real` + +if PASUSPENDER=`which pasuspender` && pgrep -f pulseaudio; then + $PASUSPENDER $MSCORE; +else + $MSCORE; +fi --- mscore-0.9.1d+dfsg.orig/debian/README.Debian +++ mscore-0.9.1d+dfsg/debian/README.Debian @@ -0,0 +1,30 @@ +mscore for Ubuntu +***************** + + Currently, this package does not build the documentation as there is a + bug in the build process for that task. This should be fixed in future + versions. + + Does anybody know of any free SoundFonts that can be used to enable + out-of-box synthesis? (Yays and brownie points for ease-of-use!) + + This package also installs a .desktop file, and the icon + mscore/mscore/data/mscore.png. + + usr/share/mscore is versioned (ie usr/share/mscore-0.7), as upstream + said he wants to make it possible for other users, not necessarily + ours, to install more than one version concurrently for testing. Some + files there are version specific, so he versions /usr/share/mscore. + + debian/rules does not employ dh_install to install the update-notifier + file, as it is not known at build time what version of + usr/share/mscore is being used. The installation of this file waits + for the directory to be created in mscore-common (by dh_install), and + a symlink to reference it. The update-notifier file is installed to that + symlinked directory, but a means other than dh_install must be used, + as dh_install has already been called, and it does not support + multiple calls. This means that on upgrading the packaging for a + new release does not necessarily involve changing version numbers in + debian/rules. + + -- Toby Smithe --- mscore-0.9.1d+dfsg.orig/debian/copyright +++ mscore-0.9.1d+dfsg/debian/copyright @@ -0,0 +1,56 @@ +This package was debianized by Toby Smithe on +Thu, 22 Nov 2007 17:49:27 +0000. + +It was downloaded from + and repackaged +as a gzipped tarball, with the mscore/mscore/data/piano1.sf2 soundfont +("Gort's MiniPiano", which is non-free) removed to sustain DFSG. + +Upstream Author: + + Werner Schweer + +Copyright: + + (C) 1992-2007 Werner Schweer + (C) 1992-2007 Trolltech ASA. + (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + (C) 1998 Juergen Mueller And Sundry Contributors + (C) 1999-2001 Josh Green + (C) 2003 Mathias Lundgren + (C) 2003 Fons Adriaensen + (C) 2003 Peter Hanappe + (C) 2007 Dieter Krause + +mscore/demos: +mscore/share/templates: +mscore/test: +mscore/mscore/fonts: + and their contents are + (C) Werner Schweer as above, with the same licence as below. + +mscore/osdabzip: + (C) 2007 Angius Fabrizio (blue_death@users.sourceforge.net) + (licensed GPLv2 as below) + +Licence: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + + See /usr/share/common-licenses/GPL-2 for a copy of the License. + +The Debian packaging is (C) 2007, Toby Smithe and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- mscore-0.9.1d+dfsg.orig/debian/menu +++ mscore-0.9.1d+dfsg/debian/menu @@ -0,0 +1,4 @@ +?package(mscore):needs="X11" section="Applications/Sound"\ + title="mScore" command="mscore" \ + longtitle="Full featured WYSIWYG score editor" \ + icon="/usr/share/pixmaps/mscore.xpm" --- mscore-0.9.1d+dfsg.orig/debian/mscore-common.install +++ mscore-0.9.1d+dfsg/debian/mscore-common.install @@ -0,0 +1 @@ +debian/mscore/usr/share/mscore* usr/share --- mscore-0.9.1d+dfsg.orig/debian/changelog +++ mscore-0.9.1d+dfsg/debian/changelog @@ -0,0 +1,49 @@ +mscore (0.9.1d+dfsg-0ubuntu2) hardy; urgency=low + + * 04-use-fluid-soundfont.dpatch + - change default SoundFont from the removed MiniPiano, to the + recommended Fluid SoundFont. + * 05-use-mscore-common-files.dpatch + - use files from the mscore-common package rather than link them + into the mscore binary. See the patch header for a rationale. + + -- Toby Smithe Sun, 24 Feb 2008 18:42:45 +0000 + +mscore (0.9.1+dfsg-0ubuntu1~tsmithe1) gutsy; urgency=low + + * No-change PPA upload. + - Previous changelog entry should read "24 Jan 2008". + + -- Toby Smithe Sat, 16 Feb 2008 15:52:12 +0000 + +mscore (0.9.1d+dfsg-0ubuntu1) hardy; urgency=low + + * New upstream release + * Icons and desktop file now installed by upstream distribution. + * 03-build-desktop-file.dpatch: fix building of desktop file. + * mscore.sh: move mscore binary to mscore.real, and use pasuspender if + PulseAudio is installed and running. + + -- Toby Smithe Thu, 24 Jan 2007 20:27:12 +0000 + +mscore (0.8.0+dfsg-0ubuntu1) hardy; urgency=low + + * New upstream release. + * Patches included upstream, remaining: + - 01-use-global-fluidsynth.dpatch: modified to only configure CMake + * Patch to remove piano1.sf2 from mscore binary (02-freedom.dpatch), + as it is not in the source distribution. + + -- Toby Smithe Wed, 26 Dec 2007 16:39:12 +0000 + +mscore (0.7.0.1+dfsg-0ubuntu1) hardy; urgency=low + + * Initial release (Closes LP: #152650) + * Repackaged to comply with DFSG: removed piano1.sf2 SoundFont, PDFs. + - Does anyone have any free SoundFonts? + * Patch to allow installing in a certain prefix (02-install-prefix.dpatch) + * Patch to build using system FluidSynth distribution + (01-use-global-fluidsynth.dpatch) + + -- Toby Smithe Thu, 22 Nov 2007 17:49:27 +0000 +