diff --git a/Plack-Middleware-Debug-0.10.tar.bz2 b/Plack-Middleware-Debug-0.10.tar.bz2 deleted file mode 100644 index f821d48..0000000 --- a/Plack-Middleware-Debug-0.10.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d6b65efd651bf16d8db91a334282438dba575e35ccbca03a3dae5f71ca12f244 -size 67767 diff --git a/Plack-Middleware-Debug-0.14.tar.gz b/Plack-Middleware-Debug-0.14.tar.gz deleted file mode 100644 index a63e2ce..0000000 --- a/Plack-Middleware-Debug-0.14.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:696510f4b189eb3e179ac1d6ea2f2b2b15fcd22674ccd1f924dc19168729890c -size 73285 diff --git a/Plack-Middleware-Debug-0.17.tar.gz b/Plack-Middleware-Debug-0.17.tar.gz new file mode 100644 index 0000000..80552a5 --- /dev/null +++ b/Plack-Middleware-Debug-0.17.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a30b62f1bb94e641f7b60b5ea5335e140c553b4131ec4003b56db37f47617a26 +size 52951 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..76ad4a4 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,28 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Plack-Middleware-Debug.changes b/perl-Plack-Middleware-Debug.changes index a2e01d8..822cad4 100644 --- a/perl-Plack-Middleware-Debug.changes +++ b/perl-Plack-Middleware-Debug.changes @@ -1,3 +1,58 @@ +------------------------------------------------------------------- +Wed Apr 3 07:24:42 UTC 2019 - Stephan Kulow + +- updated to 0.17 + see /usr/share/doc/packages/perl-Plack-Middleware-Debug/Changes + + 0.17 2018-02-22 06:11:23 JST + + - Added support for loading debug middleware outside of the + Plack::Middleware::Debug::* namespace, by prefixing the name of + middleware with a "+", + e.g. "+My::Plack::Middleware::Debug::Something". + - Debug.pm no longer injects inline JavaScript + + 0.16 2013-09-06 11:41:25 PDT + - Merge with upstream + + 0.15 2013-09-06 11:37:24 PDT + - Convert to Milla + - Fix broken latin-1 META.yml + + 0.14 Sun Sep 18 12:51:49 PDT 2011 + - Fixed warnings (chiselwright) + + 0.13 Mon Jul 18 13:57:27 PDT 2011 + - Fixed the way $spec mangling works (Jon Swartz) + + 0.12 Mon Mar 28 16:20:54 PDT 2011 + - Added experimental TrackObjects panel + - Fixed UUV warnings for Catalyst (jjn1016) + + 0.11 Fri Jan 14 10:54:53 PST 2011 + - Fixed memory leaks in Parameters panel (jnap) + - Fixed memory leaks in responses not HTML/XML (forwardever) + +------------------------------------------------------------------- +Wed Apr 3 07:24:41 UTC 2019 - Stephan Kulow + +- updated to 0.14 + see /usr/share/doc/packages/perl-Plack-Middleware-Debug/Changes + + 0.14 Sun Sep 18 12:51:49 PDT 2011 + - Fixed warnings (chiselwright) + + 0.13 Mon Jul 18 13:57:27 PDT 2011 + - Fixed the way $spec mangling works (Jon Swartz) + + 0.12 Mon Mar 28 16:20:54 PDT 2011 + - Added experimental TrackObjects panel + - Fixed UUV warnings for Catalyst (jjn1016) + + 0.11 Fri Jan 14 10:54:53 PST 2011 + - Fixed memory leaks in Parameters panel (jnap) + - Fixed memory leaks in responses not HTML/XML (forwardever) + ------------------------------------------------------------------- Wed Dec 1 13:34:30 UTC 2010 - coolo@novell.com diff --git a/perl-Plack-Middleware-Debug.spec b/perl-Plack-Middleware-Debug.spec index f13716a..65a964c 100644 --- a/perl-Plack-Middleware-Debug.spec +++ b/perl-Plack-Middleware-Debug.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-Plack-Middleware-Debug (Version 0.10) +# spec file for package perl-Plack-Middleware-Debug # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,79 +12,139 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# norootforbuild Name: perl-Plack-Middleware-Debug +Version: 0.17 +Release: 0 %define cpan_name Plack-Middleware-Debug Summary: Display information about the current request/response -Version: 0.10 -Release: 1 -License: GPL+ or Artistic +License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Plack-Middleware-Debug/ -#Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Plack-Middleware-Debug-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.bz2 -Patch0: test-more-no-plan-and-note-removal.patch +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::Method::Modifiers) >= 1.05 BuildRequires: perl(Data::Dump) +BuildRequires: perl(Data::Dumper::Concise) +BuildRequires: perl(Encode) >= 2.23 BuildRequires: perl(File::ShareDir) >= 1.00 -BuildRequires: perl(Module::Versions) >= 0.01 -BuildRequires: perl(parent) +BuildRequires: perl(Module::Build::Tiny) >= 0.034 BuildRequires: perl(Plack) -BuildRequires: perl(Text::MicroTemplate) +BuildRequires: perl(Test::More) >= 0.70 +BuildRequires: perl(Test::Requires) >= 0.08 +BuildRequires: perl(Text::MicroTemplate) >= 0.15 +BuildRequires: perl(parent) Requires: perl(Class::Method::Modifiers) >= 1.05 Requires: perl(Data::Dump) +Requires: perl(Data::Dumper::Concise) +Requires: perl(Encode) >= 2.23 Requires: perl(File::ShareDir) >= 1.00 -Requires: perl(Module::Versions) >= 0.01 -Requires: perl(parent) Requires: perl(Plack) -Requires: perl(Text::MicroTemplate) +Requires: perl(Text::MicroTemplate) >= 0.15 +Requires: perl(parent) +%{perl_requires} %description The debug middleware offers a configurable set of panels that displays information about the current request and response. The information is -generated only for responses with a status of 200 (OK) and a Content-Type -that contains text/html or application/xhtml+xml and is embedded in the -HTML that is sent back to the browser. Also the code is injected directly -before the tag so if there is no such tag, the information will not -be injected. +generated only for responses with a status of 200 ('OK') and a +'Content-Type' that contains 'text/html' or 'application/xhtml+xml' and is +embedded in the HTML that is sent back to the browser. + +Note that the code is injected *directly before the closing tag* +('') so if there is no such tag, the debug panel will not be +injected at all. + +To enable the middleware, just use Plack::Builder as usual in your '.psgi' +file: + + use Plack::Builder; + + builder { + enable 'Debug', panels => [ qw(DBITrace Memory Timer) ]; + $app; + }; + +The 'Debug' middleware takes an optional 'panels' argument whose value is +expected to be a reference to an array of panel specifications. If given, +only those panels will be enabled. If you don't pass a 'panels' argument, +the default list of panels - 'Environment', 'Response', 'Timer', 'Memory', +'Session' and 'DBITrace' - will be enabled, each with their default +settings, and automatically disabled if their target modules or middleware +components are not loaded. + +Each panel specification can take one of three forms: + +* A string + +This is interpreted as the base name of a panel in the +'Plack::Middeware::Debug::' namespace, unless preceded by '+', in which +case it's interpreted as an absolute name similar to how Plack::Builder +handles such names, e.g. '+My::Plack::Middleware::Debug::Something'. + +The panel class is loaded and a panel object is created with its default +settings. + +* An array reference + +If you need to pass arguments to the panel object as it is created, you may +use this form (But see below). + +The first element of the array reference has to be the panel base name. The +remaining elements are key/value pairs to be passed to the panel. + +For example: + + builder { + enable 'Debug', panels => + [ qw(Environment Response Timer Memory), + [ 'DBITrace', level => 2 ] + ]; + $app; + }; + +Because each panel is a middleware component, you can write this way as +well: + + builder { + enable 'Debug'; # load defaults + enable 'Debug::DBITrace', level => 2; + $app; + }; + +Note that the ' line should come before other Debug panels +because of the order middleware components are executed. + +* Custom middleware + +You can also pass a Panel middleware component. This might be useful if you +have custom debug panels in your framework or web application. %prep %setup -q -n %{cpan_name}-%{version} -%patch0 -p1 +find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check -%{__make} test +./Build test %install -%perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist -# Bug in perl_gen_filelist macro: remove %{perl_vendorlib}/auto from files list -%{__sed} -ie 's#^%dir %{perl_vendorlib}/auto$##' %{name}.files - -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) -%doc Changes README README.mkdn +%defattr(-,root,root,755) +%doc Changes examples README +%license LICENSE %changelog