- 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
97 lines
3.3 KiB
RPMSpec
97 lines
3.3 KiB
RPMSpec
#
|
|
# 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
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Group: Development/Libraries/Perl
|
|
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: perl(Catalyst::Action::RenderView)
|
|
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(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(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)
|
|
# MANUAL END
|
|
|
|
%description
|
|
'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 (http://www.catalystframework.org/calendar/2008/17) or any
|
|
other sub-include plugin you might want to implement.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
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
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes README
|
|
|
|
%changelog
|