debian/0000755000000000000000000000000012210726076007171 5ustar debian/control0000644000000000000000000000500712210725437010576 0ustar Source: bignumber.js Section: web Priority: extra Maintainer: Debian Javascript Maintainers Uploaders: Mike Gabriel , Build-Depends: debhelper (>= 8.0.0), dh-buildinfo, uglifyjs, Standards-Version: 3.9.4 Homepage: https://github.com/visionmedia/bignumber/ Vcs-Git: git://anonscm.debian.org/collab-maint/bignumber.js.git Vcs-Browser: http://anonscm.debian.org/gitiweb/?p=collab-maint/bignumber.js.git Package: node-bignumber Architecture: all Depends: ${misc:Depends}, nodejs (>= 0.6.19~dfsg1-3~), Description: Arbitrary-precision decimal and non-decimal arithmetic for Node.js Features: . - Faster, smaller, and perhaps easier to use than Javascript versions of Java's BigDecimal - 5 KB minified and gzipped - Simple API but full-featured - Works with numbers with or without fraction digits in bases from 2 to 36 inclusive - Replicates the toExponential, toFixed, toPrecision and toString methods of Javascript's Number type - Includes a toFraction and a squareRoot method - Stores values in an accessible decimal floating point format - No dependencies - Comprehensive documentation and test set . If an even smaller and simpler library is required see big.js. It's half the size but only works with decimal numbers and only has half the methods. It neither allows NaN or Infinity, or have the configuration options of this library. . This package provides bignumber support to Node.js. Package: libjs-bignumber Architecture: all Depends: ${misc:Depends}, Description: Arbitrary-precision decimal and non-decimal arithmetic (client) Features: . - Faster, smaller, and perhaps easier to use than Javascript versions of Java's BigDecimal - 5 KB minified and gzipped - Simple API but full-featured - Works with numbers with or without fraction digits in bases from 2 to 36 inclusive - Replicates the toExponential, toFixed, toPrecision and toString methods of Javascript's Number type - Includes a toFraction and a squareRoot method - Stores values in an accessible decimal floating point format - No dependencies - Comprehensive documentation and test set . If an even smaller and simpler library is required see big.js. It's half the size but only works with decimal numbers and only has half the methods. It neither allows NaN or Infinity, or have the configuration options of this library. . This package provides bignumber support to clients (i.e. browsers). debian/node-bignumber.doc-base0000644000000000000000000000031412210722710013452 0ustar Document: node-bignumber Title: API documentation for bignumber.js Section: Programming/Javascript Format: HTML Index: /usr/share/doc/node-bignumber/API.html Files: /usr/share/doc/node-bignumber/API.htmldebian/README.source0000644000000000000000000000115412210722710011340 0ustar Obtaining upstream tarballs --------------------------- Some node-*/*.js projects ship the code of other node-*/*.js projects in their upstream sources. So does bignumber.js. Upstream has copied some version of bigdecimal.js into the upstream source tree of bignumber.js. This bigdecimal.js version does not get shipped in the bignumber.js src:package in Debian. In order to avoid this we have created a custom get-orig-source stanza in /debian/rules that removes the completely perf folder (performance tests of bignumber.js compared to bigdecimal.js) from this src:package. light+love Mike Gabriel (aka sunweaver) debian/rules0000755000000000000000000000345512210726042010251 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_build: uglifyjs bignumber.js > bignumber.min.js dh_auto_build override_dh_installdocs: dh_installdocs rm -f debian/node-bignumber/usr/share/doc/node-bignumber/perf/lib/bigdecimal_GWT/LICENCE* rm -f debian/node-bignumber/usr/share/doc/node-bignumber/perf/lib/bigdecimal_ICU4J/LICENCE* rm -f debian/node-bignumber/usr/share/doc/node-bignumber/test/v8-LICENCE* PKD = $(abspath $(dir $(MAKEFILE_LIST))) PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source)) UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') DTYPE = +dfsg VER ?= $(subst $(DTYPE),,$(UVER)) ## http://wiki.debian.org/onlyjob/get-orig-source .PHONY: get-orig-source get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.gz $(info I: $(PKG)_$(VER)$(DTYPE)) @ $(PKG)_$(VER)$(DTYPE).orig.tar.gz: @echo "# Downloading..." uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD) $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..)) @echo "# Extracting..." mkdir $(PKG)-$(VER) \ && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \ || $(RM) -r $(PKG)-$(VER) @echo "# Cleaning-up..." cd $(PKG)-$(VER) \ && find . -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p\n' \ && $(RM) -r -v \ perf/ \ bignumber.min.js $(RM) -v $(PKG)_$(VER).orig.tar.* @echo "# Packing..." find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \ | tar -caf "../$(PKG)_$(VER)$(DTYPE).orig.tar.gz" -T- --owner=root --group=root --mode=a+rX \ && $(RM) -r "$(PKG)-$(VER)"debian/node-bignumber.install0000644000000000000000000000003512210722710013443 0ustar bignumber.js usr/lib/nodejs/ debian/compat0000644000000000000000000000000212210722710010356 0ustar 8 debian/libjs-bignumber.docs0000644000000000000000000000004412210722710013103 0ustar README.md package.json doc/API.html debian/libjs-bignumber.install0000644000000000000000000000013612210722710013623 0ustar bignumber.js usr/share/javascript/bignumber/ bignumber.min.js usr/share/javascript/bignumber/ debian/patches/0000755000000000000000000000000012150370721010613 5ustar debian/copyright0000644000000000000000000000613712210722710011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: bignumber.js Upstream-Contact: Michael Mclaughlin Source: https://github.com/MikeMcl/bignumber.js Files: * Copyright: 2012, Michael Mclaughlin License: Expat Files: test/toPrecision.js test/abs.js test/pow.js test/ceil.js test/floor.js test/round.js Copyright: 2008, 2010, 2011, The V8 Project Authors (http://code.google.com/p/v8) License: BSD-3-clause Files: debian/* Copyright: 2013, Mike Gabriel License: Expat or BSD-3-clause License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/watch0000644000000000000000000000027212210724616010221 0ustar version=3 opts=dversionmangle=s/\+dfsg//,filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/bignumber.js-$1.tar.gz/ \ https://github.com/MikeMcl/bignumber.js/tags .*/archive/v?([\d\.]+).tar.gz debian/libjs-bignumber.doc-base0000644000000000000000000000031712210722710013633 0ustar Document: libjs-bignumber Title: API documentation for bignumber.js Section: Programming/Javascript Format: HTML Index: /usr/share/doc/libjs-bignumber/API.html Files: /usr/share/doc/libjs-bignumber/API.htmldebian/node-bignumber.docs0000644000000000000000000000005012210722710012722 0ustar README.md package.json test doc/API.htmldebian/source/0000755000000000000000000000000012210722710010460 5ustar debian/source/format0000644000000000000000000000001412210722710011666 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000024512210726076011044 0ustar bignumber.js (1.1.0+dfsg-1) unstable; urgency=low * Initial release. (Closes: #708984). -- Mike Gabriel Sun, 01 Sep 2013 23:06:04 +0200