debian/0000775000000000000000000000000011760351626007177 5ustar debian/README.source0000664000000000000000000000024511470015313011343 0ustar This package is using quilt for patch management. Please consult quilt's own documentation. The standard debian/rules targets patch and unpatch work as expected. debian/patches/0000775000000000000000000000000011727076530010627 5ustar debian/patches/series0000664000000000000000000000005711727076530012046 0ustar 10_destdirsupport.diff 20_ld_and_cppflags.diff debian/patches/10_destdirsupport.diff0000664000000000000000000000267011470016035015046 0ustar Author: Andreas Metzler Description: Add support for make DESTDIR=... --- xfpt-0.06.orig/Makefile.in +++ xfpt-0.06/Makefile.in @@ -13,9 +13,10 @@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ +prefix=@prefix@ BINDIR=@prefix@/bin -DATADIR=@prefix@/share/xfpt -MANDIR=@prefix@/man +DATADIR=@datadir@/xfpt +MANDIR=@mandir@ # BINDIR is the directory in which the commands are installed. # DATADIR is the directory in which the include styles are installed. @@ -45,16 +46,16 @@ distclean:; rm Makefile config.cache config.log config.status; \ cd src; $(MAKE) clean -test:; cd testing; runtest +test:; cd testing; ./runtest install: build - $(mkinstalldirs) $(BINDIR) - $(mkinstalldirs) $(DATADIR) - $(mkinstalldirs) $(MANDIR) - $(mkinstalldirs) $(MANDIR)/man1 - $(INSTALL) src/xfpt $(BINDIR)/xfpt - $(INSTALL_DATA) share/* $(DATADIR) - $(INSTALL_DATA) doc/xfpt.1 $(MANDIR)/man1 + $(mkinstalldirs) $(DESTDIR)$(BINDIR) + $(mkinstalldirs) $(DESTDIR)$(DATADIR) + $(mkinstalldirs) $(DESTDIR)$(MANDIR) + $(mkinstalldirs) $(DESTDIR)$(MANDIR)/man1 + $(INSTALL) src/xfpt $(DESTDIR)$(BINDIR)/xfpt + $(INSTALL_DATA) share/* $(DESTDIR)$(DATADIR) + $(INSTALL_DATA) doc/xfpt.1 $(DESTDIR)$(MANDIR)/man1 uninstall:; rm -rf \ $(BINDIR)/xfpt \ --- xfpt-0.06.orig/src/Makefile +++ xfpt-0.06/src/Makefile @@ -46,6 +46,6 @@ # Clean up etc -clean:; /bin/rm -f *.o +clean:; /bin/rm -f *.o xfpt # End debian/patches/20_ld_and_cppflags.diff0000664000000000000000000000241211727077465015071 0ustar Description: Use CPPFLAGS and LDFLAGS Author: Andreas Metzler --- xfpt-0.08.orig/Makefile.in +++ xfpt-0.08/Makefile.in @@ -8,7 +8,9 @@ mkinstalldirs = $(SHELL) mkinstalldirs CC=@CC@ CFLAGS=@CFLAGS@ +CPPFLAGS=@CPPFLAGS@ LFLAGS=@LFLAGS@ +LDFLAGS=@LDFLAGS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ @@ -38,7 +40,9 @@ build:; @cd src; $(MAKE) all \ MANDIR=$(MANDIR) \ CC="$(CC)" \ CFLAGS="$(CFLAGS)" \ + CPPFLAGS="$(CPPFLAGS)" \ LFLAGS="$(LFLAGS)" \ + LDFLAGS="$(LDFLAGS)" \ FE="$(FE)" clean:; cd src; $(MAKE) clean --- xfpt-0.08.orig/src/Makefile +++ xfpt-0.08/src/Makefile @@ -15,7 +15,7 @@ all: xfpt .SUFFIXES: .o .c .c.o:; @echo "$(CC) $*.c" - $(FE)$(CC) -c $(CFLAGS) -DDATADIR='"$(DATADIR)"' $*.c + $(FE)$(CC) -c $(CPPFLAGS) $(CFLAGS) -DDATADIR='"$(DATADIR)"' $*.c # List of general dependencies @@ -29,7 +29,7 @@ SDOBJ = dot.o error.o globals.o literal. xfpt : $(SDOBJ) @echo "$(CC) -o xfpt" - $(FE)$(CC) $(LFLAGS) $(EFENCE) -o xfpt $(SDOBJ) + $(FE)$(CC) $(LDFLAGS) $(LFLAGS) $(EFENCE) -o xfpt $(SDOBJ) @echo ">>> xfpt command built"; echo "" # Dependencies debian/compat0000664000000000000000000000000211470015313010361 0ustar 7 debian/docs0000664000000000000000000000004211470015313010032 0ustar README doc/xfpt.html doc/xfpt.pdf debian/watch0000664000000000000000000000017711470015313010221 0ustar version=3 opts=pasv \ ftp://ftp.csx.cam.ac.uk/pub/software/wordprocessing/unix/xfpt/xfpt-([\d+\.]+\d+)\.tar.bz2 debian uupdate debian/xfpt.doc-base0000664000000000000000000000037311470017016011550 0ustar Document: xfpt Title: xfpt manual Author: Philip Hazel Abstract: The xfpt plain text to XML processor Section: Text Format: PDF Files: /usr/share/doc/xfpt/xfpt.pdf* Format: HTML Index: /usr/share/doc/xfpt/xfpt.html Files: /usr/share/doc/xfpt/*.html debian/control0000664000000000000000000000151011727075274010604 0ustar Source: xfpt Section: text Priority: extra Maintainer: Andreas Metzler Build-Depends: debhelper (>= 7), autotools-dev, dpkg-dev (>= 1.16.1) Standards-Version: 3.9.3 Package: xfpt Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: generate XML from plain text xfpt is a program that reads a file of plain text that contains relatively simple markup, and outputs an XML file. It is intended to simplify the management of XML data. It is not a program that attempts to turn a plain text document into XML. Markup within text is introduced by ampersand characters, but is otherwise "soft". You can define what follows the ampersand, for example, &" to generate a "quote" element. There is also a macro facility that allows for higher level concepts such as chapters, displays, tables, etc. debian/source/0000775000000000000000000000000011470011410010455 5ustar debian/source/format0000664000000000000000000000001411331312235011670 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000237211760351544011135 0ustar This package was debianized by Andreas Metzler on Sat, 20 Jun 2009 14:18:39 +0000. It was downloaded from Upstream Author: Philip Hazel Copyright: /* Copyright (c) University of Cambridge, 2012 */ /* Written by Philip Hazel. */ License: 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 Street, Fifth Floor, Boston, MA 02110-1301 USA. The Debian packaging is: Copyright (C) 2009 Andreas Metzler and is licensed under the GPL (either version 2 of the License, or (at your option) any later version.) On Debian systems is available in /usr/share/common-licenses/GPL. debian/changelog0000664000000000000000000000211411760351626011047 0ustar xfpt (0.09-1) unstable; urgency=low * New upstream version. -- Andreas Metzler Sun, 27 May 2012 09:11:11 +0200 xfpt (0.08-2) unstable; urgency=low * Use 'dpkg-buildflags --export=configure' to get hardening-flags. Append -Wall to CFLAGS. Add required b-d on dpkg-dev (>= 1.16.1). * 20_ld_and_cppflags.diff: Use LDFLAGS and CPPFLAGS. * Add build-arch and build-indep targets. -- Andreas Metzler Sun, 11 Mar 2012 11:02:59 +0100 xfpt (0.08-1) unstable; urgency=low * New upstream version. * Convert to v3 format, drop quilt build-dep. * Register manual with doc-base. -- Andreas Metzler Sun, 14 Nov 2010 18:22:25 +0100 xfpt (0.07-1) unstable; urgency=low * New upstream version. + Bump debian/copyright. * Use quilt. * Standards-Version 3.8.3. * Add watch file. -- Andreas Metzler Sat, 29 Aug 2009 13:41:41 +0200 xfpt (0.06-1) unstable; urgency=low * Initial release (Closes: #533819) -- Andreas Metzler Sat, 20 Jun 2009 14:18:39 +0000 debian/rules0000775000000000000000000000407311727100572010256 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) else CROSS= --build $(DEB_BUILD_GNU_TYPE) endif export config.status: configure dh_testdir # Add here commands to configure the package. ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ $(shell DEB_CFLAGS_MAINT_APPEND=-Wall dpkg-buildflags --export=configure) build: build-stamp build-arch: build-stamp build-indep: #nothing to do build-stamp: config.status dh_testdir $(MAKE) FULLECHO='' ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) $(MAKE) FULLECHO='' test endif touch $@ clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f config.sub config.guess src/xfpt dh_clean install: build dh_testdir dh_testroot dh_prep $(MAKE) FULLECHO='' DESTDIR=$(CURDIR)/debian/xfpt install # Build architecture-independent files here. binary-indep: install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples dh_install # dh_installmenu dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install build-arch build-indep