OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CGI-Application-Plugin-Forward?expand=0&rev=2
78 lines
2.5 KiB
RPMSpec
78 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package perl-CGI-Application-Plugin-Forward
|
|
#
|
|
# Copyright (c) 2011 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-CGI-Application-Plugin-Forward
|
|
Version: 1.06
|
|
Release: 1
|
|
License: GPL+ or Artistic
|
|
%define cpan_name CGI-Application-Plugin-Forward
|
|
Summary: Pass control from one run mode to another
|
|
Url: http://search.cpan.org/dist/CGI-Application-Plugin-Forward/
|
|
Group: Development/Libraries/Perl
|
|
Source: http://www.cpan.org/authors/id/M/MG/MGRAHAM/%{cpan_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Test::More)
|
|
# perl 5.12.3: Class::ISA will be removed from the Perl core
|
|
# distribution in the next major release.
|
|
%if 0%{?suse_version} > 1140
|
|
BuildRequires: perl(Class::ISA)
|
|
%endif
|
|
BuildRequires: perl(CGI::Application)
|
|
Requires: perl(CGI::Application)
|
|
%if 0%{?suse_version} > 1010
|
|
Recommends: perl(CGI::Application::Plugin::AutoRunmode) >= 0.09
|
|
%endif
|
|
%{perl_requires}
|
|
|
|
%description
|
|
The forward method passes control to another run mode and returns its
|
|
output. This is equivalent to calling '$self->$other_runmode', except that
|
|
the CGI::Application manpage's internal value of the current run mode is
|
|
updated.
|
|
|
|
This means that calling '$self->get_current_runmode' after calling
|
|
'forward' will return the name of the new run mode. This is useful for
|
|
modules that depend on the name of the current run mode such as the
|
|
CGI::Application::Plugin::AnyTemplate manpage.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Build.PL installdirs=vendor
|
|
./Build build flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes README
|
|
|
|
%changelog
|