--- pmw-4.50.orig/.gitlab-ci.yml +++ pmw-4.50/.gitlab-ci.yml @@ -0,0 +1,6 @@ +--- +variables: + SALSA_CI_DISABLE_BLHC: 1 + +include: +- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml --- pmw-4.50.orig/debian/changelog +++ pmw-4.50/debian/changelog @@ -0,0 +1,145 @@ +pmw (1:4.50-1) unstable; urgency=medium + + * New upstream release. + * debian/compat, debian/control: bump debhelper compat level to 10 + (from 9), and move to new style of compatibility level declaration. + Don't bump to 11 or above, since that adds --runstatedir, which our + configure script doesn't support. + * Add autopkgtest + * debian/control: Update Homepage field to point to new location + * debian/pmw-doc.postrm: add, to finish up dpkg-maintscript-helper + calls and make lintian happy. + * src/Makefile: drop @echo lines, and show the full gcc output, so + that blhc doesn't get confused. + + -- Wouter Verhelst Tue, 29 Dec 2020 12:48:01 +0200 + +pmw (1:4.29-2) unstable; urgency=medium + + * Register the spec PDF file with doc-base + * Ensure orig.tar.gz exists, so we don't build as a native package anymore (whoops) + + -- Wouter Verhelst Tue, 26 Sep 2017 13:44:22 +0200 + +pmw (1:4.29-1) unstable; urgency=medium + + * New upstream release + + -- Wouter Verhelst Wed, 21 Jun 2017 22:09:45 +0200 + +pmw (1:4.28-4) unstable; urgency=medium + + * Add a proper dpkg-maintscript-helper call to ensure the pmw-doc -> pmw + symlink is removed from /usr/share/doc. Really closes: #858348. + + -- Wouter Verhelst Sun, 02 Apr 2017 12:50:48 +0200 + +pmw (1:4.28-3) unstable; urgency=medium + + * Drop the --link-doc parameter from the dh_installdocs invocation, as + explained in #766711. Closes: #858348. + + -- Wouter Verhelst Fri, 24 Mar 2017 21:15:09 +0100 + +pmw (1:4.28-2) unstable; urgency=medium + + * debian/rules: reorganize so that dpkg-buildpackage -A works. Closes: #806094 + * debian/rules: also split up the build target so that we have a + useful binary-arch target. + * debian/control: move a few dependencies from Build-Depends to + Build-Depends-Indep, in light of the above. + * debian/compat: bump to level 9 + * debian/control: bump debhelper build-dep to at least version 9, in + light of the above. + * debian/control: update Homepage: field to point to the new location. + + -- Wouter Verhelst Tue, 24 Nov 2015 22:55:40 +0100 + +pmw (1:4.28-1) unstable; urgency=medium + + * New upstream release + * Fix Vcs-Git url to silence lintian warning + * Update Standards-Version to 3.9.5 (no changes) + + -- Wouter Verhelst Tue, 31 Dec 2013 11:01:18 +0100 + +pmw (1:4.27-1) unstable; urgency=medium + + * New upstream release + * Install doc/examples into pmw-doc, too + + -- Wouter Verhelst Wed, 18 Dec 2013 12:55:01 +0100 + +pmw (1:4.26-1) unstable; urgency=low + + * New upstream release + * Update Standards-Version: to 3.9.4 (nothing relevant to pmw) + + -- Wouter Verhelst Wed, 29 May 2013 23:16:06 +0200 + +pmw (1:4.24-1) unstable; urgency=low + + * New upstream release + * Add epoch, because I forgot that 231 > 23. Argl. + + -- Wouter Verhelst Fri, 18 May 2012 01:13:50 +0200 + +pmw (4.231-1) unstable; urgency=low + + * New upstream release + - Fixes test suite; Closes: #658229. + * Do 'set -e' in maintainer scripts, so we don't ignore errors + * Fix update-gsfontmap stuff again, hopefully for good. Closes: #635550. + + -- Wouter Verhelst Mon, 23 Jan 2012 23:00:32 +0100 + +pmw (4.23-1) unstable; urgency=low + + * New upstream release + + -- Wouter Verhelst Mon, 23 Jan 2012 22:38:26 +0100 + +pmw (4.22-4) unstable; urgency=low + + * The 'ghostscript sucks' release. + * Check for update-gsfontmap the right way. Closes: #635550. + * add Build-Conflicts: pmw. Building the documentation requires access + to the PMW fonts, which ghostscript allows either through adding a + file to /etc/ghostscript, or through setting an environment + variable, but not both (ghostscript breaks if you try). Using the + package also requires the fonts. + Building requires the environment variable (otherwise fixing bugs in + a previous package could be problematic). Using requires the config + file (requiring environment variables to be set is not allowed by + Debian Policy, and wrapper scripts are ugly). Therefore, we can't + build pmw if pmw itself is installed. + Did I mention I'm not a ghostscript fan? + * Declare Standards-Version 3.9.2 (no changes applicable to pmw) + * Add Recommends: ghostscript + + -- Wouter Verhelst Fri, 29 Jul 2011 17:57:55 +0200 + +pmw (4.22-3) unstable; urgency=low + + * debian/pmw.postinst: Check for existence of update-gsfontmap before + trying to run it. This way it will work without ghostscript + installed, which we don't depend on. Closes: #622334. + * Use dh_installdocs rather than override_dh_install to install pmw-doc's + documents into /usr/share/doc/pmw. Closes: #621886. + * To remain policy-compliant in light of the above, make pmw-doc + depend on pmw. + + -- Wouter Verhelst Wed, 13 Apr 2011 12:17:01 +0200 + +pmw (4.22-2) unstable; urgency=low + + * Make PMW fonts available to ghostscript. + * Add Vcs-Browser and Vcs-Git headers to source package + + -- Wouter Verhelst Fri, 04 Mar 2011 11:19:32 +0100 + +pmw (4.22-1) unstable; urgency=low + + * Initial release. (Closes: #480101) + + -- Wouter Verhelst Fri, 11 Feb 2011 13:18:53 +0100 --- pmw-4.50.orig/debian/control +++ pmw-4.50/debian/control @@ -0,0 +1,40 @@ +Source: pmw +Priority: extra +Section: tex +Maintainer: Wouter Verhelst +Build-Depends: debhelper-compat (= 10) +Build-Depends-Indep: aspic, xfpt, sdop, ghostscript +Build-Conflicts: pmw +Standards-Version: 3.9.5 +Homepage: http://quercite.dx.am/pmw.html +Vcs-Git: git://git.debian.org/users/wouter/pmw.git +Vcs-Browser: http://git.debian.org/?p=users/wouter/pmw.git;a=summary + +Package: pmw +Section: tex +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: ghostscript +Suggests: pmw-doc +Description: Philip's Music Writer + PMW is a computer program for high quality music typesetting. It was + originally written for Acorn RISC OS computers (where it was called + PMS) + . + PMW operates by reading an input file containing an encoded description + of the music; such a file can be constructed using any text editor or + word processor. The music encoding is very straightforward and compact, + and quick to enter. The input encoding is designed to be easy for a + musician to remember, and tries to make use of as many familiar musical + notations as possible within the limitations of an ASCII character set. + . + PMW can output PostScript files for printing, and basic MIDI files for + proof-hearing. + +Package: pmw-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, pmw +Description: Philip's Music Writer - Documentation + This package contains the documentation, in PDF format, of pmw, as well + as a number of examples. --- pmw-4.50.orig/debian/copyright +++ pmw-4.50/debian/copyright @@ -0,0 +1,136 @@ +This package was debianized by Wouter Verhelst on +Fri, 11 Feb 2011 13:28:41 +0100 + +The upstream source is Copyright (c) Philip Hazel, 1991 - 2010. + +The package is released under the GPL, version 2 or above, as noted by the +NOTICE file in the source distribution. + +On Debian GNU/Linux systems, the full text of the GPL, version 2, can be +found in the file /usr/share/common-licenses/GPL-2 + +There is no source for the PMW-Music.pfa Type1 font file. According to +Philip Hazel: + + There is no need for a "source" for the PMW-Music.pfa font, because it + can be recovered trivially by running t1disasm on that file. + +In other words, this file itself (after running it through t1disasm) is +the preferred form for modification, according to the author. + +The source package also ships with several font files that are necessary to +produce correct PostScript output. These are under the following license: + +======Begin fontmetrics/LICENCE file====== +These AFM fonts have been relicensed by Adobe under a free license at different +points in time. + +=============================================================================== +From Adobe-Core35_AFMs-314.tar.gz: +Adobe Core 35 AFM Files with 314 Glyph Entries - ReadMe + + This file and the 35 PostScript(R) AFM files it + accompanies may be used, copied, and distributed for any + purpose and without charge, with or without modification, + provided that all copyright notices are retained; that + the AFM files are not distributed without this file; that + all modifications to this file or any of the AFM files + are prominently noted in the modified file(s); and that + this paragraph is not modified. Adobe Systems has no + responsibility or obligation to support the use of the + AFM files. + +AvantGarde-Book.afm +AvantGarde-BookOblique.afm +AvantGarde-Demi.afm +AvantGarde-DemiOblique.afm +Bookman-Demi.afm +Bookman-DemiItalic.afm +Bookman-Light.afm +Bookman-LightItalic.afm +Courier.afm +Courier-Bold.afm +Courier-BoldOblique.afm +Courier-Oblique.afm +Helvetica.afm +Helvetica-Bold.afm +Helvetica-BoldOblique.afm +Helvetica-Oblique.afm +NewCenturySchlbk-Bold.afm +NewCenturySchlbk-BoldItalic.afm +NewCenturySchlbk-Italic.afm +NewCenturySchlbk-Roman.afm +Palatino-Bold.afm +Palatino-BoldItalic.afm +Palatino-Italic.afm +Palatino-Roman.afm +Symbol.afm +Times-Bold.afm +Times-BoldItalic.afm +Times-Italic.afm +Times-Roman.afm +ZapfChancery-MediumItalic.afm +ZapfDingbats.afm +MustRead.html + +Some of the filenames have been changed in this distribution, dropping the ITC +prefix. +=============================================================================== + + + +Utopia fonts, http://www.ctan.org/tex-archive/fonts/utopia/ + +Contents of the README file + +=============================================================================== +Copyright 2006 TeX Users Group. +You may freely use, modify and/or distribute this README file. + +This is a copy of the Utopia Type1 fonts and accompanying AFM files +which Adobe originally contributed to the X consortium many years ago. + +In 2006, Adobe relicensed them to the TeX Users Group, under similar +terms as the previous contribution, but now explicitly clarifying that +the modifications to the fonts, and redistribution of the modified +versions, was allowed. (This was always the intent; unfortunately, the +original wording was ambiguous.) For the actual license, please see +LICENSE-utopia.txt in this directory. (Original url: +http://tug.org/fonts/utopia/LICENSE-utopia.txt) + +The contents of the fonts themselves are completely unchanged from the +original X donation. Additional TeX support files, and derived fonts, +are available in other TeX packages, notably fourier and mathdesign +(they are available through http://www.ctan.org). This small directory +simply provides Adobe's original files. + +The filenames here have been changed for use with TeX: + putr8a = Utopia-Regular + putri8a = Utopia-Italic + putb8a = Utopia-Bold + putbi8a = Utopia-BoldItalic + +These fonts are: +Copyright 1989, 1991 Adobe Systems Incorporated. All rights reserved. +Utopia(R) +Utopia is either a registered trademark or trademark of Adobe Systems +Incorporated in the United States and/or other countries. Used under +license. + +We thank Adobe for taking the time to make this clarification for the +benefit of the free software community. Terry O'Donnell deserves +particular thanks for pushing the changes through, but many people were +involved by the end. We are grateful to them all. + +--Karl Berry, TUG President +on behalf of the TeX Users Group board and members +17 November 2006 +=============================================================================== + +For SDoP the files have been re-renamed again. + +Utopia-Bold.afm +Utopia-BoldItalic.afm +Utopia-Italic.afm +Utopia-Regular.afm +======End fontmetrics/LICENCE file====== --- pmw-4.50.orig/debian/fonts.conf +++ pmw-4.50/debian/fonts.conf @@ -0,0 +1,2 @@ +/PMW-Music (/usr/share/pmw/psfonts/PMW-Music.pfa) ; +/PMW-Alpha (/usr/share/pmw/psfonts/PMW-Alpha) ; --- pmw-4.50.orig/debian/gbp.conf +++ pmw-4.50/debian/gbp.conf @@ -0,0 +1,4 @@ +[buildpackage] +upstream-tag = pmw-%(version)s +[export-orig] +upstream-tag = pmw-%(version)s --- pmw-4.50.orig/debian/manpages +++ pmw-4.50/debian/manpages @@ -0,0 +1 @@ +doc/pmw.1 --- pmw-4.50.orig/debian/pmw-doc.doc-base +++ pmw-4.50/debian/pmw-doc.doc-base @@ -0,0 +1,8 @@ +Document: pmw-doc +Title: Philip's Music Writer manual +Author: Phil Hazel +Abstract: This manual describes the syntax and usage of the PMW music typesetter +Section: Typesetting + +Format: PDF +Files: /usr/share/doc/pmw-doc/spec.pdf.gz --- pmw-4.50.orig/debian/pmw-doc.docs +++ pmw-4.50/debian/pmw-doc.docs @@ -0,0 +1,3 @@ +contrib +doc/spec.pdf +doc/examples/ --- pmw-4.50.orig/debian/pmw-doc.postinst +++ pmw-4.50/debian/pmw-doc.postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +dpkg-maintscript-helper symlink_to_dir /usr/share/doc/pmw-doc /usr/share/doc/pmw 1:4.28-4~ -- "$@" + +#DEBHELPER# --- pmw-4.50.orig/debian/pmw-doc.postrm +++ pmw-4.50/debian/pmw-doc.postrm @@ -0,0 +1,5 @@ +#!/bin/sh + +dpkg-maintscript-helper symlink_to_dir /usr/share/doc/pmw-doc /usr/share/doc/pmw 1:4.28-4~ -- "$@" + +#DEBHELPER# --- pmw-4.50.orig/debian/pmw-doc.preinst +++ pmw-4.50/debian/pmw-doc.preinst @@ -0,0 +1,5 @@ +#!/bin/sh + +dpkg-maintscript-helper symlink_to_dir /usr/share/doc/pmw-doc /usr/share/doc/pmw 1:4.28-4~ -- "$@" + +#DEBHELPER# --- pmw-4.50.orig/debian/pmw.dirs +++ pmw-4.50/debian/pmw.dirs @@ -0,0 +1 @@ +etc/ghostscript/fontmap.d --- pmw-4.50.orig/debian/pmw.install +++ pmw-4.50/debian/pmw.install @@ -0,0 +1,2 @@ +usr/bin/pmw +usr/share/pmw --- pmw-4.50.orig/debian/pmw.links +++ pmw-4.50/debian/pmw.links @@ -0,0 +1 @@ +usr/share/pmw/psfonts usr/share/fonts/type1/gsfonts/pmw --- pmw-4.50.orig/debian/pmw.manpages +++ pmw-4.50/debian/pmw.manpages @@ -0,0 +1 @@ +doc/pmw.1 --- pmw-4.50.orig/debian/pmw.postinst +++ pmw-4.50/debian/pmw.postinst @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + if [ -x /usr/sbin/update-gsfontmap ] + then + /usr/sbin/update-gsfontmap + fi + ;; +esac + +#DEBHELPER# --- pmw-4.50.orig/debian/pmw.postrm +++ pmw-4.50/debian/pmw.postrm @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +case "$1" in + "remove") + if [ -x /usr/sbin/update-gsfontmap ] + then + update-gsfontmap + fi + ;; +esac + +#DEBHELPER# --- pmw-4.50.orig/debian/rules +++ pmw-4.50/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_installman: + rm -rf debian/pmw/usr/man + dh_installman + +override_dh_auto_clean: + # env -i? dpkg-buildflags must die. + [ ! -f Makefile ] || env -i $(MAKE) distclean + $(MAKE) -C doc clean + dh_clean + +override_dh_auto_build-arch: + $(MAKE) + +# documentation uses the built binaries, so we need to compile -- but no +# need to build documentation when it's not asked for... +override_dh_auto_build-indep: override_dh_auto_build-arch + $(MAKE) -C doc + +override_dh_install-arch: + dh_install -a + cp -a debian/fonts.conf debian/pmw/etc/ghostscript/fontmap.d/20pmw.conf + rm -f debian/pmw/usr/share/pmw/fontmetrics/LICENCE --- pmw-4.50.orig/debian/tests/control +++ pmw-4.50/debian/tests/control @@ -0,0 +1,2 @@ +Tests: run-examples +Depends: pmw --- pmw-4.50.orig/debian/tests/run-examples +++ pmw-4.50/debian/tests/run-examples @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +rm -f doc/examples/*.ps + +for i in doc/examples/* +do + echo $i + pmw $i + echo testing existence of ${i}.ps + test -f ${i}.ps + echo ok +done --- pmw-4.50.orig/doc/Makefile +++ pmw-4.50/doc/Makefile @@ -25,7 +25,7 @@ all: spec.pdf spec.pdf: spec.ps - gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -sOutputFile=spec.pdf ../psfonts/PMW-Alpha spec.ps + GS_FONTPATH=$(CURDIR)/../psfonts gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -sOutputFile=spec.pdf spec.ps spec.ps: Makefile \ spec.xml \ --- pmw-4.50.orig/doc/postscript/.keep +++ pmw-4.50/doc/postscript/.keep @@ -0,0 +1,2 @@ +this directory is empty in the upstream source, but needs to exist, even +after a git checkout of the packaging. --- pmw-4.50.orig/src/Makefile +++ pmw-4.50/src/Makefile @@ -8,7 +8,7 @@ MIDIPERC=$(DATADIR)/MIDIperc FONTDIR=$(DATADIR)/psfonts -CC=$CC) +CC=$(CC) CFLAGS=$(CFLAGS) COMP = $(CC) -DFONTDIR='"$(FONTDIR)"' -DFONTMETRICS='"$(FONTMETRICS)"' -DPSHEADER='"$(PSHEADER)"' -DMIDIVOICES='"$(MIDIVOICES)"' -DMIDIPERC='"$(MIDIPERC)"' $(NO_PMWRC) $(SUPPORT_B2PF) $(CFLAGS) -I. -c @@ -38,15 +38,14 @@ all: pmw pmw: $(OBJ) - @echo "$(CC) -o pmw" - $(FE)$(LINK) $(OBJ) -o pmw -lm $(LFLAGS) + $(LINK) $(OBJ) -o pmw -lm $(LFLAGS) @echo ">>> pmw binary built" clean:; rm -f *.o pmw .SUFFIXES: .o .c -.c.o:; @echo "$(CC) $*.c" - $(FE)$(COMP) $*.c +.c.o:; + $(COMP) $*.c debug.o: $(DEPS) debug.c draw.o: $(DEPS) draw.c