units (1.87-2) debian-dir only changes

Summary

 debian/changelog |  257 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/compat    |    1 
 debian/control   |   16 +++
 debian/copyright |   60 ++++++++++++
 debian/menu      |    1 
 debian/postinst  |   24 +++++
 debian/postrm    |   21 ++++
 debian/rules     |   92 +++++++++++++++++++
 8 files changed, 472 insertions(+)

    
download this patch

Patch contents

--- units-1.87.orig/debian/menu
+++ units-1.87/debian/menu
@@ -0,0 +1 @@
+?package(units):needs="text" section="Applications/Science/Mathematics" title="Units" command="units"
--- units-1.87.orig/debian/postrm
+++ units-1.87/debian/postrm
@@ -0,0 +1,21 @@
+#! /bin/sh
+#
+# This is the postrm script for the Debian GNU/Linux units package
+#
+# Written by John G. Hasler    
+
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ 	if [ -x /usr/bin/update-menus ]
+ 	then
+ 	    update-menus
+ 	fi
+        ;;
+    *)
+	echo "postrm called with unknown argument \`$1'" >&2
+	;;
+esac
--- units-1.87.orig/debian/control
+++ units-1.87/debian/control
@@ -0,0 +1,16 @@
+Source: units
+Section: utils
+Priority: optional
+Maintainer: John G. Hasler <jhasler@debian.org>
+Standards-Version: 3.8.3
+Build-Depends: libreadline-dev | libreadline6-dev | libreadline5-dev, texi2html, texinfo
+
+Package: units
+Architecture: any
+Depends: ${shlibs:Depends}, dpkg (>= 1.15.4) | install-info
+Description: converts between different systems of units
+ GNU 'units' program converts quantities expressed in various scales
+ to their equivalents in other scales.  The 'units' program can only
+ handle multiplicative scale changes directly.  It uses a functional
+ notation for "nonlinear" conversions such a Fahrenheit temperature
+ to Celsius temperature.
--- units-1.87.orig/debian/rules
+++ units-1.87/debian/rules
@@ -0,0 +1,92 @@
+#!/usr/bin/make -f
+# debian/rules file - for GNU Units (1.54).
+# Modified from sample debian/rules file - for GNU Hello (1.3).
+# Copyright 1994,1995 by Ian Jackson.
+# Copyright 1997, 1998 by James Troup.
+# I hereby give you perpetual unlimited permission to copy,
+# modify and relicense this file, provided that you do not remove
+# my name from the file itself.  (I assert my moral right of
+# paternity under the Copyright, Designs and Patents Act 1988.)
+# This file may have to be extensively modified
+
+	export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+	export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+	# FOR AUTOCONF 2.52 AND NEWER ONLY
+	ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+	confflags += --build $(DEB_HOST_GNU_TYPE)
+	else
+	confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+	endif
+
+	NOSTRIP=$(findstring nostrip,$(DEB_BUILD_OPTIONS))
+	ifeq ($(NOSTRIP),)
+	INSTALLER="install -s"
+	else
+	INSTALLER="install"
+	endif
+
+build:
+	$(checkdir)
+	./configure --prefix=/usr --datadir=/usr/share/misc
+	$(MAKE) CFLAGS="-O2 -g -Wall"
+	texi2html -monolithic units.texinfo
+	touch build
+
+clean:
+	$(checkdir)
+	-rm -f build
+	-$(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean
+	-rm -rf *~ debian/units debian/*~ debian/files* \
+		debian/substvars*  *.html
+
+binary-indep: checkroot build
+	$(checkdir)
+
+binary-arch: checkroot build
+	$(checkdir)
+	-rm -rf debian/units
+	install -d debian/units/DEBIAN/ debian/units/usr/share/doc/units/ debian/units/usr/share/menu
+	install -m 755 debian/postinst debian/units/DEBIAN/
+	install -m 755 debian/postrm debian/units/DEBIAN/
+
+	$(MAKE) INSTALL_PROGRAM=$(INSTALLER) \
+		prefix=debian/units/usr datadir=debian/units/usr/share/misc \
+		install
+
+#	mv debian/units/usr/info debian/units/usr/share
+#	mv debian/units/usr/man debian/units/usr/share
+	gzip -9v debian/units/usr/share/info/* debian/units/usr/share/man/man1/*
+
+	install -m 644 README NEWS debian/units/usr/share/doc/units/
+	install -m 644 debian/changelog debian/units/usr/share/doc/units/changelog.Debian
+	install -m 644 ChangeLog debian/units/usr/share/doc/units/changelog
+	gzip -9v debian/units/usr/share/doc/units/*
+	install -m 644 *.html debian/units/usr/share/doc/units/
+	install -m 644 debian/copyright debian/units/usr/share/doc/units/
+
+	install -m 644 debian/menu debian/units/usr/share/menu/units
+
+	dpkg-shlibdeps ./units
+	dpkg-gencontrol -Pdebian/units
+	find debian/units/* -type f ! -regex '^debian/units/DEBIAN/.*' -print0 | xargs -r0 md5sum | sed -e 's/debian\/units\///g'> debian/units/DEBIAN/md5sums
+	chown -R root.root debian/units
+	chmod -R go=rX debian/units
+	dpkg --build debian/units ..
+
+define checkdir
+	test -f units.c -a -f debian/rules
+endef
+
+# Below here is fairly generic really
+
+binary:		binary-indep binary-arch
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- units-1.87.orig/debian/postinst
+++ units-1.87/debian/postinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# This is the postinst script for the Debian GNU/Linux units package
+#
+# Written by John G. Hasler  
+
+set -e
+
+#DEBHELPER#
+
+case "$1" in
+	configure)
+		if [ -x "`which update-menus 2>/dev/null`" ]; then
+        		update-menus
+		fi
+	;;
+    	abort-remove|abort-deconfigure|abort-upgrade)
+    		# Nothing to undo
+	;;
+
+    *)
+	echo "postinst called with unknown argument \`$1'" >&2
+	;;
+esac
--- units-1.87.orig/debian/compat
+++ units-1.87/debian/compat
@@ -0,0 +1 @@
+7
--- units-1.87.orig/debian/copyright
+++ units-1.87/debian/copyright
@@ -0,0 +1,60 @@
+This is Debian GNU/Linux's prepackaged version of the FSF's GNU units
+utility.  GNU 'units' program converts quantities expressed in various
+scales to their equivalents in other scales.
+
+This package was put together by me, James Troup <james@nocrew.org>,
+from the GNU sources, which I obtained from
+sunsite.doc.ic.ac.uk:/pub/gnu/units-1.54.tar.gz.
+
+The current version of the package was obtained from 
+ftp://ftp.gnu.org/gnu/units
+by John Hasler, the current Debian maintainer.
+
+
+The changes were minimal:
+
+o adding support for the Debian package maintenance scheme, by adding
+  various debian/* files.
+o units.c: #include <readline/history.h> iff READLINE is defined to
+  get add_history() prototype.
+o units.c: Added prototypes for handlesum(), completereduce() and
+  compareunits().
+o units.c (readunits,lookupunit,addunit,completeunits): parentheses
+  around assignment used as a truth value.
+o units.c (showanswer): initialize sep, right and left to quiet -Wall.
+
+Program Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+Modifications for Debian Copyright (C) 1997, 1998 James Troup.
+Additional modifications for Debian copyright 1999-2008 John Hasler.
+
+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, 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 with
+your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with the
+Debian GNU/Linux units source package as the file COPYING.  If not,
+write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+Boston, MA 02110-1301, USA.
+
+Manual (units.info) Copyright (C) 1996, 1997 Free Software Foundation,
+Inc.
+
+Permission is granted to make and distribute verbatim copies of this
+manual provided the copyright notice and this permission notice are
+preserved on all copies.
+
+Permission is granted to copy and distribute modified versions of this
+manual under the conditions for verbatim copying, provided that the
+entire resulting derived work is distributed under the terms of a
+permission notice identical to this one.
+
+Permission is granted to copy and distribute translations of this
+manual into another language, under the above conditions for modified
+versions.
--- units-1.87.orig/debian/changelog
+++ units-1.87/debian/changelog
@@ -0,0 +1,257 @@
+units (1.87-2) unstable; urgency=low
+
+  * Deleted debian/prerm, fixed debian/postinst and postrm.
+    Added debian/compat (level 7), Edited debian/control
+    Brought standards-version up to 3.8.3, updated libreadline
+    build dependency, added dpkg (>= 1.15.4) | install-info to depends:
+
+  * Replaced "more" with "/usr/bin/pager" at line 55 in units.c
+    Closes: #548597 Please use /usr/bin/pager as default pager
+  
+ -- John G. Hasler <jhasler@debian.org>  Wed, 07 Oct 2009 21:34:00 -0500
+
+units (1.87-1) unstable; urgency=low
+
+  * New upstream release
+  
+    Upstream made "*" and "/" the same precedence.
+    Closes: #359658: units: precedence of '/' is bad 
+  
+    Units reads ~/.units.dat if it exists before reading the standard
+    units database.
+    Closes: #456544: units: $UNITSFILE doesn't override default anymore 
+  
+ -- John Hasler <jhasler@debian.org>  Sun, 20 Jul 2008 21:54:50 -0500
+
+units (1.86a-1) unstable; urgency=low
+
+  * New upstream release
+  
+    Upstream has changed this section: we now have usbillion and
+    brbillion.  Elsewhere billion is defined as usbillion.  Perhaps 
+    in the future this could be made to depend on locale.
+    Closes: #165946: units: Confusing information in units.dat
+  
+    Upstream added a "help" command that searches the database.
+    Closes: #375255: units: wishlist (finding the "unit")
+  
+    Closes: #370224: crochet is spelled crotchet
+  
+  * 'install -s' now only used if 'nostrip' is not in DEB_BUILD_OPTIONS.
+    Closes: #438233: units: not handling nostrip build option (policy 10.1)
+
+  * Fixed menu entry.
+  
+  * Fixed parallel build problem by consolidating all "install -d"
+    commands in debian/rules into one line.
+  
+  
+ -- John Hasler <jhasler@debian.org>  Sun, 2 Dec 2007 21:46:50 -0600
+
+units (1.85-3) unstable; urgency=low
+
+  * Fixed typo in control file
+  
+  * Added missing build-depends on texinfo
+    Closes: #340850: FTBFS: makeinfo: Command not found
+  
+ -- John Hasler <jhasler@debian.org>  Wed, 21 Dec 2005 21:10:54 -0600
+
+units (1.85-2) unstable; urgency=low
+
+  * Fixed calling of configure script in rules.
+    Closes: #340850: FTBFS: makeinfo: Command not found
+  
+  * Upstream changed handling of imperial units (didn't notice earlier).
+    Closes: #259411: Mile incorrectly related to other imperial units
+
+ -- John Hasler <jhasler@debian.org>  Tue, 13 Dec 2005 20:56:45 -0600
+
+units (1.85-1) unstable; urgency=low
+
+  * New upstream release
+    Closes: #339108 units: new upstream release available
+    Closes: #223890 Missing 0 in the help text.
+    Closes: #266752 -V: doubled slash
+    Closes: #233472 suggest cdromspeed and dvdspeed units
+    Closes: #204473 "nmi" should be "nauticalmile", not "nanomile" [patch]
+  
+  * Fixed build dependencies.
+    Closes: #326284 please rebuild with libreadline5-dev as build dependency
+    Closes: #322941 switch to libreadline5
+  
+  * Fixed typos.
+    Closes: #302822 'man units' typos: "Fahrehneit" and "accomodates"
+  
+  * Corrected FSF address.
+  
+  * Put missing quotes in menu, moved menu to /usr/share.
+  
+ -- John Hasler <jhasler@debian.org>  Tue, 22 Nov 2005 21:33:27 -0600
+
+units (1.81-4) unstable; urgency=low
+
+  * Added md5sums.
+
+ -- John Hasler <jhasler@debian.org>  Tue, 2 Dec 2003 14:30:00 -0500
+
+units (1.81-3) unstable; urgency=low
+
+  * Closes: #195260 FTBFS with gcc-3.3: Uses multiline strings
+    Removed example script from end of units.c.  gcc 3.3 was
+    choking on it despite it being inside a '#if 0 ... #endif'.
+
+ -- John Hasler <john@dhh.gt.org>  Thur, 29 May 2003 20:30:00 -0500
+
+units (1.81-2) unstable; urgency=low
+
+  * Closes: #168132 FTBFS: missing build-depends
+    Added texi2html
+
+ -- John Hasler <john@dhh.gt.org>  Thur, 7 Nov 2002 8:00:00 -0600
+
+units (1.81-1) unstable; urgency=low
+
+  * New upstream version
+  * Simplified scripts, added Build-Depends
+  * Closes: #150343 New upstream version
+  * Closes: #160955 Something Weird About Kelvin-value
+    User error
+  * Closes: #165955 surveyfoot/intfoot inconsistency
+    Fixed in new upstream
+
+ -- John Hasler <john@dhh.gt.org>  Mon, 4 Nov 2002 16:30:00 -0600
+
+units (1.77-1) unstable; urgency=low
+
+  * New upstream version.
+  * Closes: #88634
+  * Closes: #97022
+  * Closes: #88631
+
+ -- John Hasler <john@dhh.gt.org>  Thu, 10 May 2001 20:45:00 -0500
+
+units (1.55-4) unstable; urgency=low
+
+  * Rebuild to use libreadline4.
+
+ -- John Hasler <john@dhh.gt.org>  Mon, 24 Jul 2000 20:45:00 -0500
+
+units (1.55-3) unstable; urgency=low
+
+  * Add readline support.
+  * closes: #59589
+  * closes: #60900
+
+ -- John Hasler <john@dhh.gt.org>  Wed, 22 Mar 2000 20:45:00 -0500
+
+units (1.55-2) unstable; urgency=low
+
+  * Policy compliance.
+
+ -- John Hasler <john@dhh.gt.org>  Sun, 8 Jan 2000 20:45:00 -0500
+
+units (1.55-1) unstable; urgency=low
+
+  * New upstream release.
+  * closes: #43354, #25160
+
+ -- John Hasler <john@dhh.gt.org>  Tue, 3 Aug 1999 20:45:00 -0500
+
+units (1.54-6) unstable; urgency=low
+
+  * Upped libreadlineg2 dependency from -12 to -13 because of
+    segfaults with -12.
+
+ -- John Hasler <john@dhh.gt.org>  Sat, 15 May 1999 16:54:37 -0500
+
+units (1.54-5) unstable; urgency=low
+
+  * debian/control (Maintainer): new maintainer.
+  * Rebuilt with libc6 2.1.1-1.
+
+ -- John Hasler <john@dhh.gt.org>  Tue, 27 Apr 1999 20:54:37 -0500
+
+units (1.54-4) frozen unstable; urgency=low
+
+  * debian/control (Standards-Version): updated to 2.4.1.0.
+  * debian/control (Maintainer): new address.
+  * debian/copy: ditto.
+  * Rebuilt with ncurses4.
+  * units.c: #include <readline/history.h> iff READLINE is defined to get
+    add_history() prototype.
+  * units.c: Added prototypes for handlesum(), completereduce() and
+    compareunits().
+  * units.c (readunits,lookupunit,addunit,completeunits): parentheses
+    around assignment used as a truth value.
+  * units.c (showanswer): initialize sep, right and left to quiet -Wall.
+  * debian/rules (binary-arch): install the `NEWS' and `README' files into
+    /usr/doc/units/.
+
+ -- James Troup <james@nocrew.org>  Fri, 23 Oct 1998 16:29:34 +0100
+
+units (1.54-3) frozen unstable; urgency=low
+
+  * debian/rules (build): pass datadir=/usr/share/misc/ to configure to
+    ensure that units.dat goes to /usr/share/misc/ and doesn't clutter up
+    /usr/share/, reported by Scott Ellis <ellis@valueweb.net>. [#20481]
+  * debian/urles (binary-arch): ditto (datadir=/debian/tmp/usr/share/misc
+    to make install).
+
+ -- James Troup <jjtroup@comp.brad.ac.uk>  Thu,  2 Apr 1998 02:34:53 +0100
+
+units (1.54-2) unstable; urgency=low
+
+  * debian/control (Standards-Version): updated to 2.4.0.0.
+  * debian/copyright: correct reference to now uncompressed GPL in
+    /usr/doc/copyright.
+  * debian/copyright: correct the FSF's address.
+  * debian/rules: drop $(package) and use a literal string instead.
+  * debian/rules: use go=rX as the argument to chmod, rather than g-ws.
+  * debian/rules: don't pass -c to install.
+  * debian/rules: other minor cleanups.
+
+ -- James Troup <jjtroup@comp.brad.ac.uk>  Fri, 13 Feb 1998 21:04:47 +0000
+
+units (1.54-1) unstable; urgency=low
+
+  * New upstream version.
+  * Uses pristine upstream source.
+  * Compile with -g, strip on install.
+  * Minor update to postinst. prerm removed and replaced by a more 
+    intelligent postrm.
+  * Minor fixes to copyright file.
+  * Added a menu entry.
+  * Minor alterations to the rules file (now {}-free *sigh*).
+
+ -- James Troup <jjtroup@comp.brad.ac.uk>  Tue, 18 Nov 1997 03:11:17 +0000
+
+units (1.53-3) unstable; urgency=low
+
+  * Rebuilt with libc6. 
+
+ -- James Troup <jjtroup@comp.brad.ac.uk>  Wed, 25 Jun 1997 18:54:32 +0100
+
+units (1.53-2) frozen unstable; urgency=low
+
+  * Patched units.c so that units doesn't go mad when passed null
+    arguments.  Patch from Mark Baker <mbaker@iee.org>.
+  * Extended units.dat, patch from Mark Baker <mbaker@iee.org> :-
+      eushot, thou, ecu, unitedkingdompound, unitedstatesdollar,
+      British currency (shilling, oldpence, quid, fiver, tenner), 
+      English spellings of aluminum and sulfur,
+      ISO currency codes (+ UKP).
+  * Correct Section: in debian/control (misc -> utils).
+  * Replaced cp's with install's in debian/rules.
+  * Removed substvars in debian/rules clean target.
+  * Added HTML documentation (converted from texinfo) as per standard.
+
+ -- James Troup <jjtroup@comp.brad.ac.uk>  Thu, 3 Apr 1997 00:58:11 +0100
+
+units (1.53-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- James Troup <jjtroup@comp.brad.ac.uk>  Sun, 19 Jan 1997 20:44:33 +0000
+
+