From 002b8a905f3388b669eda06845538438e3dd3e81b17b642bd3da3b4e9bc9d0c0 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 19 Oct 2019 14:33:53 +0000 Subject: [PATCH] Accepting request 741157 from home:tinita:branches:devel:languages:perl - Regenerate spec with newest cpanspec * Add PERL_USE_UNSAFE_INC * Add manual dependency File::Copy::Recursive * Removed the following dependencies because they are in perl core since 5.10: * perl(ExtUtils::MakeMaker) >= 6.42 * perl(Carp) OBS-URL: https://build.opensuse.org/request/show/741157 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Catalyst-View-Component-SubInclude?expand=0&rev=2 --- cpanspec.yml | 30 +++++ ...Catalyst-View-Component-SubInclude.changes | 10 ++ perl-Catalyst-View-Component-SubInclude.spec | 109 ++++++++++-------- 3 files changed, 99 insertions(+), 50 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..234fd62 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,30 @@ +--- +#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: |- + # https://rt.cpan.org/Ticket/Display.html?id=81574 + BuildRequires: perl(File::Copy::Recursive) + Requires: perl(File::Copy::Recursive) +#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-Catalyst-View-Component-SubInclude.changes b/perl-Catalyst-View-Component-SubInclude.changes index 646e39c..0d8c853 100644 --- a/perl-Catalyst-View-Component-SubInclude.changes +++ b/perl-Catalyst-View-Component-SubInclude.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Oct 18 20:04:02 UTC 2019 - Tina Mueller + +- Regenerate spec with newest cpanspec + * Add PERL_USE_UNSAFE_INC + * Add manual dependency File::Copy::Recursive + * Removed the following dependencies because they are in perl core since 5.10: + * perl(ExtUtils::MakeMaker) >= 6.42 + * perl(Carp) + ------------------------------------------------------------------- Thu Feb 17 01:37:59 CET 2011 - pascal.bleser@opensuse.org diff --git a/perl-Catalyst-View-Component-SubInclude.spec b/perl-Catalyst-View-Component-SubInclude.spec index d65614e..cbfa1db 100644 --- a/perl-Catalyst-View-Component-SubInclude.spec +++ b/perl-Catalyst-View-Component-SubInclude.spec @@ -1,87 +1,96 @@ -# vim: set sw=4 ts=4 et nu: +# +# spec file for package perl-Catalyst-View-Component-SubInclude +# +# 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 +# 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 https://bugs.opensuse.org/ +# + Name: perl-Catalyst-View-Component-SubInclude Version: 0.10 Release: 0 +%define cpan_name Catalyst-View-Component-SubInclude Summary: Use subincludes in your Catalyst views -Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-View-Component-SubInclude-%{version}.tar.gz -URL: http://search.cpan.org/dist/Catalyst-View-Component-SubInclude +License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -License: Perl License -BuildRoot: %{_tmppath}/build-%{name}-%{version} -%{perl_requires} +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl BuildRequires: perl-macros -BuildRequires: make -BuildRequires: perl(Test::More) >= 0.88 -BuildRequires: perl(Catalyst::View::TT) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(Catalyst::Action::RenderView) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Moose::Role) -BuildRequires: perl(URI) -BuildRequires: perl(Carp) -BuildRequires: perl(namespace::clean) -BuildRequires: perl(LWP::UserAgent) -BuildRequires: perl(MooseX::Types) BuildRequires: perl(Catalyst::Plugin::SubRequest) BuildRequires: perl(Catalyst::Runtime) >= 5.80014 +BuildRequires: perl(Catalyst::View::TT) +BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Moose) -BuildRequires: perl(File::Copy::Recursive) -Requires: perl(Moose::Role) -Requires: perl(Catalyst::View::TT) -Requires: perl(URI) +BuildRequires: perl(Moose::Role) +BuildRequires: perl(MooseX::Types) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(URI) +BuildRequires: perl(namespace::clean) Requires: perl(Catalyst::Action::RenderView) -Requires: perl(Carp) -Requires: perl(namespace::clean) -Requires: perl(LWP::UserAgent) -Requires: perl(MooseX::Types) Requires: perl(Catalyst::Plugin::SubRequest) Requires: perl(Catalyst::Runtime) >= 5.80014 +Requires: perl(Catalyst::View::TT) +Requires: perl(LWP::UserAgent) Requires: perl(List::MoreUtils) Requires: perl(Moose) +Requires: perl(Moose::Role) +Requires: perl(MooseX::Types) +Requires: perl(Test::More) >= 0.88 +Requires: perl(URI) +Requires: perl(namespace::clean) +%{perl_requires} +# MANUAL BEGIN +# https://rt.cpan.org/Ticket/Display.html?id=81574 +BuildRequires: perl(File::Copy::Recursive) Requires: perl(File::Copy::Recursive) -%if 0%{?suse_version} >= 1120 -BuildArch: noarch -%endif +# MANUAL END %description -"Catalyst::View::Component::SubInclude" allows you to include content in -your templates (or, more generally, somewhere in your view's "render" +'Catalyst::View::Component::SubInclude' allows you to include content in +your templates (or, more generally, somewhere in your view's 'render' processing) which comes from another action in your application. It's implemented as a Moose::Role, so using Moose in your view is required. + Simply put, it's a way to include the output of a Catalyst sub-request somewhere in your page. + It's built in an extensible way so that you're free to use sub-requests, -Varnish ESI () or any +Varnish ESI (http://www.catalystframework.org/calendar/2008/17) or any other sub-include plugin you might want to implement. %prep -%setup -q -n "Catalyst-View-Component-SubInclude-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test %install %perl_make_install %perl_process_packlist +%perl_gen_filelist -%check -%__make test - -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - -%files -%defattr(-,root,root) +%files -f %{name}.files +%defattr(-,root,root,755) %doc Changes README -%dir %{perl_vendorlib}/Catalyst -%dir %{perl_vendorlib}/Catalyst/View -%dir %{perl_vendorlib}/Catalyst/View/Component -%{perl_vendorlib}/Catalyst/View/Component/SubInclude.pm -%{perl_vendorlib}/Catalyst/View/Component/SubInclude -%doc %{perl_man3dir}/Catalyst::View::Component::SubInclude.%{perl_man3ext}%{ext_man} -%doc %{perl_man3dir}/Catalyst::View::Component::SubInclude::*.%{perl_man3ext}%{ext_man} +%changelog