debian/0000755000000000000000000000000012154022364007165 5ustar debian/info0000644000000000000000000000001312014234606010034 0ustar wcalc.info debian/rules0000755000000000000000000000250212154003733010243 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) config.status: configure dh_testdir ./configure $(shell DEB_CFLAGS_MAINT_APPEND=-Wall dpkg-buildflags --export=configure) --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp -rm -f parser.c parser.h scanner.c #-rm -f config.cache/status #remove this in next release [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs dh_installmenu $(MAKE) install DESTDIR=$(CURDIR)/debian/wcalc cp -a $(CURDIR)/debian/wcalc.xpm $(CURDIR)/debian/wcalc/usr/share/pixmaps/ binary-indep: build install binary-arch: build install dh_installchangelogs ChangeLog dh_installdocs dh_installexamples dh_installman 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 install debian/patches/0000755000000000000000000000000012031171617010614 5ustar debian/patches/fix-length-adjust.patch0000644000000000000000000000441312020567304015174 0ustar Description: Add a new directive to wcalc.1 to fix the format of very large line. Forwarded: no Author: Josue Ortega Last-Update: 2012-09-01 --- a/wcalc.1 +++ b/wcalc.1 @@ -200,7 +200,9 @@ .PP The value of \fBpi\fP is special, as it is calculated to however many bits of precision have been specified with the \fB\ebits\fP command. The default number of bits is 1024, or a value of: .br +.nf 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245869974724822361502823407955151120558811684656967313093357387193011055974127397801166600823447367841524950037348489795545416453901986117572722731871388422643588974212021713194956805142308399313566247553371620129340026051601856684677033122428187855479365508702723110143458240736806341798963338923286460351089772720817919599675133363110147505797173662675795471777702814318804385560929672479177350549251018537674006123614790110383192502897923367993783619310166679013187969315172579438604030363957033826325935372151289640167976948453904619615481368332936937026831888367580239969088932697527811653282224950410336573385944190516446146423694037380609059088222036945727944116946240616684848934170304346480406820774078369140625 +.fi .PP Similarly, all values that rely on the value of \fBpi\fP, like mu0, have the same level of precision. Here is a complete list of the symbols used to represent the constants hardcoded into wcalc: .TP 4 @@ -210,10 +212,14 @@ 2.718281828459045235360287471352662497757247093699959574966 .TP .B "gamma" +.nf Euler's Constant: 0.57721566490153286060651209008240243104215933593992359880576723488486772677766467093694706329174674951463144724980708248096050401448654283622417399764492353625350033374293733773767394279259525824709491600873520394816567 +.fi .TP .B K +.nf Catalan Constant: 0.91596559417721901505460351493238411077414937428167213426649811962176301977625476947935651292611510624857442261919619957903589880332585905943159473748115840699533202877331946051903872747816408786590902 +.fi .TP .B "g" Acceleration due to gravity: 9.80665 m/s/s debian/patches/fix-hyphen-minus.patch0000644000000000000000000001142312023234170015041 0ustar Description: Changes hyphen to minus sign to prevent wrong outputs with gtroff. Forwarded: yes Author: Josue Ortega Last-Update: 2012-08-26 --- a/wcalc.1 +++ b/wcalc.1 @@ -36,11 +36,11 @@ Specifies that numerical output should NOT be in scientific notation. .TP \fB\-P\fIXXX\fP -Sets the precision to be \fIXXX\fP. This setting only affects output, not internal representations. A setting of -1 means formats output in whatever precision seems appropriate. +Sets the precision to be \fIXXX\fP. This setting only affects output, not internal representations. A setting of \-1 means formats output in whatever precision seems appropriate. .br -Precision is set to autoadjust (-1) by default. +Precision is set to autoadjust (\-1) by default. .br -Example: wcalc -P6 +Example: wcalc \-P6 .TP \fB\-v\fP or \fB\*=version\fP Prints the version number and exits. @@ -140,7 +140,7 @@ .PP weekday='(((floor((yr - floor(0.6 + 1 / mo)) / 400) - floor((yr - floor(0.6 + 1 / mo)) / 100) + floor((5 * (yr - floor(0.6 + 1 / mo))) / 4) + floor(13 * (mo + 12 * floor(0.6 + 1 / mo) + 1) / 5)) - (7 * floor((floor((yr - floor(0.6 + 1 / mo)) / 400) - floor((yr - floor(0.6 + 1 / mo)) / 100) + floor((5 * (yr - floor(0.6 + 1 / mo))) / 4) + floor(13 * (mo + 12 * floor(0.6 + 1 / mo) + 1) / 5)) / 7)) + 1) + 5 + dy) % 7 + 1' .PP -The second function computes what day Easter will be for a given year (\fIyr\fP) and returns an offset from March 31st. For example, for the year 2005, it returns -4, which means March 27th. Because of leap-year problems, this only works from the year 1900 to 2099, but is a good demonstration nevertheless. +The second function computes what day Easter will be for a given year (\fIyr\fP) and returns an offset from March 31st. For example, for the year 2005, it returns \-4, which means March 27th. Because of leap-year problems, this only works from the year 1900 to 2099, but is a good demonstration nevertheless. .PP easter='((19 * (yr - 19 * floor(yr / 19)) + 24) - floor((19 * (yr - 19 * floor(yr / 19)) + 24) / 30) * 30) + ((2 * (yr - 4 * floor(yr / 4)) + 4 * (yr - 7 * floor(yr / 7)) + 6 * ((19 * (yr - 19 * floor(yr / 19)) + 24) - floor((19 * (yr - 19 * floor(yr / 19)) + 24) / 30) * 30) + 5) - floor((2 * (yr - 4 * floor(yr / 4)) + 4 * (yr - 7 * floor(yr / 7)) + 6 * ((19 * (yr - 19 * floor(yr / 19)) + 24) - floor((19 * (yr - 19 * floor(yr / 19)) + 24) / 30) * 30) + 5) / 7) * 7) - 9' .SH BUILT-IN SYMBOLS @@ -349,7 +349,7 @@ There are several commands that are supported in wcalc. .TP \fB\ep\fIXXX\fP -Sets the precision to \fIXXX\fP. This setting only affects output, not internal representations. A setting of -1 means formats output in whatever precision seems appropriate. +Sets the precision to \fIXXX\fP. This setting only affects output, not internal representations. A setting of \-1 means formats output in whatever precision seems appropriate. .TP \fB\ee\fP or \fB\eeng\fP or \fB\eengineering\fP Rotates between always using scientific notation, never using scientific @@ -451,7 +451,7 @@ The possible keys are: .TP .B precision -A number defining the display precision. Equivalent to the \fB\eP\fP command, where -1 means "auto" and anything else specifies the number of decimal places. This does not affect the behind-the-scenes precision. +A number defining the display precision. Equivalent to the \fB\eP\fP command, where \-1 means "auto" and anything else specifies the number of decimal places. This does not affect the behind-the-scenes precision. .TP .B show_equals Either true ("yes" or "true") or false (anything else). Equivalent to the \fB--quiet\fP argument. Specifies whether answers will begin with an equals sign or not. @@ -502,11 +502,11 @@ Either true ("yes" or "true") or false (anything else). Equivalent to the \fB\ecmod\fP command. Specifies whether the modulo operator (%) will behave as it does in the C programming language, or whether it will use a more flexible method. This only affects modulo operations where negative numbers are involved. As an example, with \fBc_style_mod\fP set to true (the default): .RS .PP --340 % 60 == -40; 340 % -60 == 40; -340 % -60 == -40 +\-340 % 60 == \-40; 340 % \-60 == 40; \-340 % \-60 == \-40 .PP However, with \fBc_style_mod\fP set to false: .PP --340 % 60 == -40; 340 % -60 == -20; -340 % -60 == 20 +\-340 % 60 == \-40; 340 % \-60 == \-20; \-340 % \-60 == 20 .RE .SH PRELOAD Wcalc uses a file, \fB~/.wcalc_preload\fP, to store persistent information between instances. Typically, this is used to store variables that are frequently defined. This file can be edited by hand with a standard text editor. There is also a command within wcalc (\fB\estore\fP) to append a variable definition to the end of this file. Any variable defined in this file is defined and available for use in any subsequent invocation of wcalc. debian/patches/series0000644000000000000000000000020412031170655012026 0ustar fix-other-symbols-man.patch fix-explain-spelling-error.patch fix-hyphen-minus.patch fix-string-format.patch fix-length-adjust.patch debian/patches/fix-string-format.patch0000644000000000000000000000065312023234176015222 0ustar Description: Since hardening flags have been added to debian/rules lintian asked to add format to printf functions. Forwarded: Yes Author: josueortega@debian.org.gt Last-Update: 2012-08-26 --- a/parser.y +++ b/parser.y @@ -482,7 +482,7 @@ if (standard_output) { Number val; num_init(val); - printf($1); + printf("%s",$1); getvarval(val, $1); print_this_result(val); num_free(val); debian/patches/fix-other-symbols-man.patch0000644000000000000000000000123012031741602015772 0ustar Description: Adds to the man other symbols definition Author: Josue Ortega Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600255 Applied-Upstream: http://w-calc.svn.sourceforge.net/viewvc/w-calc?view=revision&revision=839 Last-Update: 2012-09-29 --- a/wcalc.1 +++ b/wcalc.1 @@ -345,6 +345,14 @@ .TP .B "irandom" A Random Integer +.SH SPECIAL SYMBOLS +There are some special symbols that wcalc accept as input for compound operations. +.TP +.B "@Inf@" +Symbol that represents Infinity +.TP +.B "@NaN@" +Symbol that represents "Not a Number" .SH COMMANDS There are several commands that are supported in wcalc. .TP debian/patches/fix-explain-spelling-error.patch0000644000000000000000000000127712020556144017032 0ustar Description: Resolves spelling error to avoid future translations of the software. Upstream has accepted the patch it will be included in the next wcalc version. * explain.c: Fix spelling error accelleration to acceleration Author: Josue Ortega Last-Update: 20012-08-26 --- a/explain.c +++ b/explain.c @@ -248,7 +248,7 @@ ("The universal gravitational constant. Appears in Einstein's theory of general relativity."); break; case W_g: - printf("The gravitational accelleration of Earth at sea-level."); + printf("The gravitational acceleration of Earth at sea-level."); break; case W_Me: printf("The mass of an electron in kilograms."); debian/wcalc.xpm0000644000000000000000000000232112014234606011001 0ustar /* XPM */ static char * wcalc_xpm[] = { "32 32 2 1", " c None", ". c #000000", " ", " ", " .", " .. ...", ".... .. .. ", ".... .... ... ", " ... .... ... ", " ... .... ... ", " ... .... .. ", " .... ...... ... ", " .... ...... .. ", " ... .. ... .. ", " ... .. ... .. ", " ... ... .... . ", " ... .. ... .. ", " ... . ... .. ", " ... . .. .. ", " ... .. ... .. ", " ... . ... .. ", " ... . ... .. ", " ... .. .. .. ", " ... .. ... .. ", " .... ...... ", " .... ..... ", " .... .... ", " .... .... ", " ... .... ", " .. ... ", " .. ... ", " . .. ", " ", " "}; debian/dirs0000644000000000000000000000002212020311143010027 0ustar usr/share/pixmaps debian/control0000644000000000000000000000167412154022003010566 0ustar Source: wcalc Section: math Priority: optional Maintainer: Josue Ortega Build-Depends: debhelper (>= 5), bison, flex, libmpfr-dev, libgmp3-dev, libreadline-dev, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.4 Homepage: http://w-calc.sourceforge.net/ Package: wcalc Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Flexible command-line scientific calculator Wcalc is a very capable calculator. It has standard functions (sin, asin, and sinh for example, in either radians or degrees), many pre-defined constants (pi, e, c, etc.), support for using variables, "active" variables, a command history, hex/octal/binary input and output, unit conversions, embedded comments, and an expandable expression entry field. It evaluates expressions using the standard order of operations. . Wcalc uses intuitive expressions. For example, Wcalc will evaluate: 5sin 4!-7*2(4%6)^2 to be -221.96631678 debian/watch0000644000000000000000000000012712020565735010224 0ustar # watch control file for uscan version=3 http://sf.net/w-calc/wcalc-(\d+\.\d+).tar.bz2 debian/source/0000755000000000000000000000000012014546176010474 5ustar debian/source/format0000644000000000000000000000001412020310365011664 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212014245264010364 0ustar 5 debian/docs0000644000000000000000000000002412014234606010033 0ustar NEWS AUTHORS README debian/copyright0000644000000000000000000000610412026112411011110 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: wcalc Upstream-Contact: Kyle Wheeler Source: http://w-calc.sourceforge.net/download.php Comment: This package was debianized by Daniele Sempione on Wed, 2 Nov 2005 18:05:06 +0100. Files: * Copyright: 2000-2003, Kyle Wheeler Licence: GPL-2+ Files: debian/patches/* Copyright: 2012, Josue Ortega License: GPL-2+ Files: parser.c Copyright: 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. License: GPL-3+ with Bison exception Files: parser.h Copyright: 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. License: GPL-3+ with Bison exception License: GPL-2+ 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 with the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL-2; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License, version 2, can be found in /usr/share/common-licenses/GPL-2. License: GPL-3+ with Bison exception 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 3 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, see . As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. . This special exception was added by the Free Software Foundation in version 2.2 of Bison. . On Debian systems, the complete text of the GNU General Public License, version 3, can be found in /usr/share/common-licenses/GPL-3. debian/changelog0000644000000000000000000000730512154022364011044 0ustar wcalc (2.4-3) unstable; urgency=low * fix-other-symbols-man.patch added to fix undocumented symbols in man (Closes: #600255) * Upload to unstable. * Standards version updated from 3.9.3 to 3.9.4 - debian/rules build-arch and build-indep are now mandatory targets so they were added. * debian/rules Added dh_prep instead obsolete dh_clean -k. -- Josue Ortega Sat, 01 Jun 2013 12:54:59 -0600 wcalc (2.4-2) experimental; urgency=low * New maintainer (Closes: #671207) * debian/rules targets build-arch,build-indep added to fix lintian warning: debian-rules-missing-recommended-target * debian/control updated short description to fix lintian warning: description-synopsis-starts-with-article * Added homepage to debian/control * Added debian/watch file * fix-explain-spelling-error.patch added to fix spelling error in explain.c * Standards version updated from 3.7.3 to 3.7.9, no changes required * debian/copyright copyright license reference updated * fix-hyphen-minus.patch added to fix wrong outputs in man * fix-string-format.patch added to fix wrong format in printf function at parser.y * fix-length-adjust.patch added to fix wrong format in man * debian/copyright updated debian/patches license * debian/copyright updated to format version 1.0 * debian/DEBIAN directory deleted, it was for previous maintainer personal use * Enable hardened build flags -debian/rules manual build flags setup replaced by dpkg-builflags -debian/control Build-Depend on dpkg-dev (>= 1.16.1~) * debian/source/format added in order to use the "3.0(quilt)" source package format -- Josue Ortega Sun, 19 Aug 2012 13:53:40 -0600 wcalc (2.4-1.1) unstable; urgency=low * Non-maintainer upload. * debian/control: Build-Depend on libreadline-dev rather than libreadline5-dev. (Closes: #553888) -- Tim Retout Wed, 17 Aug 2011 17:40:46 +0100 wcalc (2.4-1) unstable; urgency=low * New upstream release. (Closes: #511500, #514618) * Bump debhelper to 5 - fix lintian warning. -- Kilian Krause Thu, 21 May 2009 23:47:51 +0200 wcalc (2.3.1-1) unstable; urgency=low * New upstream release Closes: #435751 * Bump Standards-Version to 3.7.3 * Renamed Apps as Applications in debian/menu * Removed a not anymore useful line in debian/rules -- Daniele Sempione Mon, 18 Feb 2008 17:02:46 +0100 wcalc (2.3-1) unstable; urgency=low * New upstream release Closes: #434353 -- Daniele Sempione Mon, 23 Jul 2007 15:44:10 +0200 wcalc (2.2.2-2) unstable; urgency=low * Added menu support -- Daniele Sempione Thu, 3 Aug 2006 19:04:25 +0200 wcalc (2.2.2-1) unstable; urgency=low * New upstream release -- Daniele Sempione Wed, 12 Jul 2006 16:35:55 +0200 wcalc (2.2.1-1) unstable; urgency=low * New upstream release -- Daniele Sempione Thu, 9 Mar 2006 18:52:30 +0100 wcalc (2.1.2-2) unstable; urgency=low * Added readline support Closes: #341616 -- Daniele Sempione Sat, 3 Dec 2005 13:54:21 +0100 wcalc (2.1.2-1) unstable; urgency=low * New upstream release -- Daniele Sempione Fri, 2 Dec 2005 19:58:45 +0100 wcalc (2.1.1-1) unstable; urgency=low * New upstream release -- Daniele Sempione Mon, 14 Nov 2005 13:02:55 +0100 wcalc (2.1-1) unstable; urgency=low * New upstream release -- Daniele Sempione Wed, 2 Nov 2005 18:05:06 +0100 wcalc (2.0-1) unstable; urgency=low * Initial release. -- Daniele Sempione Wed, 10 Aug 2005 22:01:55 +0200 debian/menu0000644000000000000000000000030112014234606010045 0ustar ?package(wcalc):needs="text" section="Applications/Science/Mathematics" \ title="Wcalc" hints="Calculators" \ command="/usr/bin/wcalc" \ icon="/usr/share/pixmaps/wcalc.xpm"