initial package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Debug-Simple?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
Debug-Simple-0.10.tar.gz
Normal file
3
Debug-Simple-0.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e5586c68dec0d1588c657a3e12a3427dbca0ebb26c5f203a6196ecfb8a175360
|
||||||
|
size 3818
|
6
perl-Debug-Simple.changes
Normal file
6
perl-Debug-Simple.changes
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 14 08:12:56 UTC 2011 - coolo@opensuse.org
|
||||||
|
|
||||||
|
- initial package 0.10
|
||||||
|
* created by cpanspec 1.78.04
|
||||||
|
|
117
perl-Debug-Simple.spec
Normal file
117
perl-Debug-Simple.spec
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
#
|
||||||
|
# spec file for package perl-Debug-Simple (Version 0.10)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: perl-Debug-Simple
|
||||||
|
Version: 0.10
|
||||||
|
Release: 1
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
%define cpan_name Debug-Simple
|
||||||
|
Summary: Very simple debugging statements
|
||||||
|
Url: http://search.cpan.org/dist/Debug-Simple/
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
Source: http://www.cpan.org/authors/id/B/BE/BEHANW/%{cpan_name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
Requires: perl(Test::More)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module provides a very simple way to provide debug/verbose/warning
|
||||||
|
messages. It is also trivially controlled via Getopt::Long.
|
||||||
|
|
||||||
|
The idea is to be able to put a bunch of debugging print statements
|
||||||
|
throughout your code that you can enable or disable.
|
||||||
|
|
||||||
|
* debuglevels(\%OPT)
|
||||||
|
|
||||||
|
'debuglevels' registers the hashref 'HASH' as the place to read values
|
||||||
|
used to control whether text is output to the screen or not. There are 4
|
||||||
|
values read from this hash: quiet, debug, verbose, and test.
|
||||||
|
|
||||||
|
* quiet
|
||||||
|
|
||||||
|
If non-zero, this will repress all output from Debug::Simple
|
||||||
|
|
||||||
|
* debug
|
||||||
|
|
||||||
|
This indicates the level of debug messages desired. A debug level of 4
|
||||||
|
prints all the debug messages from levels 1 to 4.
|
||||||
|
|
||||||
|
* verbose
|
||||||
|
|
||||||
|
Like debug, this sets the level of verboseness. A verbose level of 3
|
||||||
|
prints all verbose messages from 1 to 3.
|
||||||
|
|
||||||
|
* test
|
||||||
|
|
||||||
|
If non-zero, the code passed to test() will be printed to the screen
|
||||||
|
instead of being executed.
|
||||||
|
|
||||||
|
* warning(STRING)
|
||||||
|
|
||||||
|
'warning' prints the 'STRING' to stdout in YELLOW unless the "quiet"
|
||||||
|
level is non-zero (see 'debuglevels'). 'STRING' is prefaced with
|
||||||
|
"Warning:".
|
||||||
|
|
||||||
|
* debug(LEVEL, STRING, [NAME => REF])
|
||||||
|
|
||||||
|
'debug' prints a debugging message to stdout as long as 'LEVEL' is at or
|
||||||
|
below the "debug" level. (see <debuglevels).
|
||||||
|
|
||||||
|
The debug message is printed in BOLD. It starts with "Debug: ", then
|
||||||
|
'STRING', and then optionally uses Data::Dumper to dump a data structure
|
||||||
|
referred to by 'REF'. 'NAME' is just a human readable name for 'REF'
|
||||||
|
passed to Data::Dumper.
|
||||||
|
|
||||||
|
* verbose(LEVEL, STRING)
|
||||||
|
|
||||||
|
'verbose' prints 'STRING' to stdout as long as 'LEVEL' is at or below the
|
||||||
|
"verbose" level. (see 'debuglevels').
|
||||||
|
|
||||||
|
* test(CODE)
|
||||||
|
|
||||||
|
'test' executes 'CODE' according to the "test" level. (see
|
||||||
|
'debuglevels'). If the "test" level is non-zero the code is printed to
|
||||||
|
stdout instead of being executed.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
|
%install
|
||||||
|
%perl_make_install
|
||||||
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%defattr(-,root,root,755)
|
||||||
|
%doc %attr(644,-,-) Changes README
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user