--- gbase-0.5.orig/Makefile +++ gbase-0.5/Makefile @@ -1,6 +1,6 @@ CC = gcc -CCFLAGS = `gtk-config --cflags` -LDFLAGS = `gtk-config --libs` +CCFLAGS = `pkg-config --cflags gtk+-2.0` +LDFLAGS = `pkg-config --libs gtk+-2.0` gbase: gbase.o $(CC) gbase.o $(LDFLAGS) -o gbase @@ -12,4 +12,4 @@ %.o: $(CC) $(CCFLAGS) -c $*.c -gbase.o: gbase.c \ No newline at end of file +gbase.o: gbase.c --- gbase-0.5.orig/gbase.c +++ gbase-0.5/gbase.c @@ -377,7 +377,7 @@ else usage(); - if(i == argc) + if(i+1 == argc) usage(); --- gbase-0.5.orig/debian/control +++ gbase-0.5/debian/control @@ -0,0 +1,15 @@ +Source: gbase +Section: math +Priority: optional +Maintainer: Josip Rodin +Build-Depends: debhelper (>= 5), libgtk2.0-dev, libglib2.0-dev +Standards-Version: 3.8.0 +Homepage: http://www.hibernaculum.net/gbase/index.php + +Package: gbase +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: small numeric base converter + This simple program converts numbers between bases 2 (binary), + 8 (octal), 10 (decimal) and 16 (hexadecimal). + It can be used both from console or via a small GTK+-based X interface. --- gbase-0.5.orig/debian/gbase.1 +++ gbase-0.5/debian/gbase.1 @@ -0,0 +1,48 @@ +.TH gbase 1 "August 2003" "gbase" +.SH NAME +gbase \- small numeric base converter +.SH SYNOPSIS +\fBgbase\fP [options] +.SH DESCRIPTION +.BR gbase +converts numbers between bases 2 (binary), 8 (octal), 10 (decimal), +16 (hexadecimal). +.PP +If you specify a number on the command line (preceded by a switch +to describe the base the number is in) the program will display that +number in the four bases on the console and exit. +.br +You can also specify the \-s switch which will allow you to enter/display +signed numbers. (This allows the use of a - (minus) before a decimal number). +.PP +Just running the program without any switches will display the main +window. There are four entry boxes, corresponding to each of the four +bases. You can type into any of these boxes and the others will update +automagically. The program will ignore any characters that are not +allowed for that particular base. It will only allow a - (minus) at +the start of a decimal number, if the signed option is on. +.SH OPTIONS +.TP +.I --help +Display a short help screen and exit +.TP +.I --version +Print version number and exit +.TP +.I -s +Treat the number as a signed value +.TP +.I -d \fBdecimal number\fP +Print this decimal number in all bases +.TP +.I -h \fBhex number\fP +Print this hexadecimal number in all bases +.TP +.I -o \fBoctal number\fP +Print this octal number in all bases +.TP +.I -b \fBbinary number\fP +Print this binary number in all bases +.SH AUTHOR +.B gbase +is Copyright (C) 1999 Damian Kramer, Roger Dunce. --- gbase-0.5.orig/debian/changelog +++ gbase-0.5/debian/changelog @@ -0,0 +1,46 @@ +gbase (0.5-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Build with Gtk2. (Closes: #438405). + * Don't segfault on command line args. (Closes: #282651). + + Thanks to Elmar Hoffmann. + * Add ${misc:Depends} for debhelper package. + * Quote strings in menu file. + * Escape hyphen used as minus in manpage. + * Add watch file. + * Bump debhelper build dep to 5. + * Move DH_COMPAT to debian/compat and set to 5. + + Handles nostrip properly. (Closes: #436906). + * Bump Standards Version to 3.8.0. + + Menu policy transition. + + -- Barry deFreese Mon, 23 Feb 2009 16:51:00 -0500 + +gbase (0.5-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Remove Build-Dependency on xlibs-dev (Closes: #346705). + * Credit and Big Thanks to Justin Pryzby + for the patch and testing. + + -- Amaya Rodrigo Sastre Thu, 19 Jan 2006 01:47:24 +0100 + +gbase (0.5-2) unstable; urgency=low + + * Some updates in the packaging, new maintainer address. + * Clarified the four bases in the description, closes: #100926. + * Wrote a manual page. + + -- Josip Rodin Fri, 15 Aug 2003 20:38:43 +0200 + +gbase (0.5-1) unstable; urgency=low + + * Initial release in Debian. + + -- Josip Rodin Thu, 31 May 2001 12:51:49 +0200 + +gbase (0.5-0) unstable; urgency=low + + * Initial packaging. + + -- Josip Rodin Sat, 18 Dec 1999 01:14:02 +0100 --- gbase-0.5.orig/debian/menu +++ gbase-0.5/debian/menu @@ -0,0 +1 @@ +?package(gbase): needs="X11" section="Applications/Science/Mathematics" title="GBase" command="gbase" --- gbase-0.5.orig/debian/watch +++ gbase-0.5/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://www.hibernaculum.net/gbase/index.php \/download\/gbase-([\d.]+)\.tar\.gz --- gbase-0.5.orig/debian/compat +++ gbase-0.5/debian/compat @@ -0,0 +1 @@ +5 --- gbase-0.5.orig/debian/copyright +++ gbase-0.5/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Josip Rodin on +Sat, 18 Dec 1999 01:14:02 +0100. + +Original source can be found at http://www.hibernaculum.net/gbase.html + + Copyright (C) 1999 Damian Kramer (psiren@hibernaculum.demon.co.uk) + Copyright (C) 1999 Roger Dunce (kro@penguinpowered.com) + + You may distribute this program under the terms of the Artistic License. + + 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 + Artistic License for more details. + +You can see the full text of the Artistic license in the +`/usr/share/common-licenses/Artistic' file on your Debian system. --- gbase-0.5.orig/debian/rules +++ gbase-0.5/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f + +CFLAGS := -g -Wall $(shell pkg-config --cflags gtk+-2.0) +ifneq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" "" +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) CCFLAGS="$(CFLAGS)" + touch $@ + +clean: + dh_testdir + dh_testroot + $(MAKE) clean + dh_clean build-stamp + +binary-indep: + +binary-arch: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/bin + install -m755 -s gbase debian/gbase/usr/bin + dh_installman debian/gbase.1 + dh_installdocs README TODO + dh_installchangelogs + dh_installmenu + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary