--- libtest-mockrandom-perl-1.00.orig/debian/control +++ libtest-mockrandom-perl-1.00/debian/control @@ -0,0 +1,33 @@ +Source: libtest-mockrandom-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 7), perl-modules (>= 5.10) | libmodule-build-perl +Build-Depends-Indep: perl (>= 5.6.0-12) +Maintainer: Debian Perl Group +Uploaders: Salvatore Bonaccorso +Standards-Version: 3.8.1 +Homepage: http://search.cpan.org/dist/Test-MockRandom/ + +Package: libtest-mockrandom-perl +Architecture: all +Depends: ${misc:Depends}, ${perl:Depends} +Description: module to replace random number generation with non-random number generation + The Test::MockRandom module replaces random number generation with non-random + number generation. + . + This perhaps ridiculous-seeming module was created to test routines that + manipulate random numbers by providing a known output from rand. Given a + list of seeds with srand, it will return each in turn. After seeded + random numbers are exhausted, it will always return 0. Seed numbers must + be of a form that meets the expected output from rand as called with no + arguments -- i.e. they must be between 0 (inclusive) and 1 (exclusive). + In order to facilitate generating and testing a nearly-one number, this + module exports the function oneish, which returns a number just + fractionally less than one. + . + Depending on how this module is called with use, it will export rand to + a specified package (e.g. a class being tested) effectively overriding + and intercepting calls in that package to the built-in rand. It can also + override rand in the current package or even globally. In all of these + cases, it also exports srand and oneish to the current package in order + to control the output of rand. --- libtest-mockrandom-perl-1.00.orig/debian/copyright +++ libtest-mockrandom-perl-1.00/debian/copyright @@ -0,0 +1,47 @@ +Format-Specification: http://dep.debian.net/deps/dep5/ +Maintainer: David A. Golden +Source: http://search.cpan.org/dist/Test-MockRandom/ +Name: Test-MockRandom + +Files: * +Copyright: 2004-2007, David A. Golden +License: Apache-2.0 + +Files: debian/* +Copyright: 2009, Salvatore Bonaccorso +License: Apache-2.0 or Artistic or GPL-1+ + +License: Apache-2.0 + Licensed under Apache License, Version 2.0 (the "License"). You may not + use this file except in compliance with the License. A copy of the + License was distributed with this file or you may obtain a copy of the + License from http://www.apache.org/licenses/LICENSE-2.0 + . + Files produced as output though the use of this software, shall not be + considered Derivative Works, but shall be considered the original work + of the Licensor. + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +X-Comment: + On Debian GNU/Linux systems, the complete text of the Apache License, + Version 2.0 can be found in `/usr/share/common-licenses/Apache-2.0' + +License: Artistic + This program is free software; you can redistribute it and/or modify + it under the terms of the Artistic License, which comes with Perl. +X-Comment: + On Debian GNU/Linux systems, the complete text of the Artistic License + can be found in `/usr/share/common-licenses/Artistic' + +License: GPL-1+ + 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 1, or (at your option) + any later version. +X-Comment: + On Debian GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL' --- libtest-mockrandom-perl-1.00.orig/debian/watch +++ libtest-mockrandom-perl-1.00/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/Test-MockRandom/ .*/Test-MockRandom-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ --- libtest-mockrandom-perl-1.00.orig/debian/compat +++ libtest-mockrandom-perl-1.00/debian/compat @@ -0,0 +1 @@ +7 --- libtest-mockrandom-perl-1.00.orig/debian/changelog +++ libtest-mockrandom-perl-1.00/debian/changelog @@ -0,0 +1,5 @@ +libtest-mockrandom-perl (1.00-1) unstable; urgency=low + + * Initial Release (Closes: #531200). + + -- Salvatore Bonaccorso Sun, 31 May 2009 16:45:16 +0200 --- libtest-mockrandom-perl-1.00.orig/debian/rules +++ libtest-mockrandom-perl-1.00/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --- libtest-mockrandom-perl-1.00.orig/debian/libtest-mockrandom-perl.docs +++ libtest-mockrandom-perl-1.00/debian/libtest-mockrandom-perl.docs @@ -0,0 +1 @@ +Todo