2007-01-15 23:29:51 +00:00
|
|
|
#
|
2011-10-25 08:14:23 +00:00
|
|
|
# spec file for package perl-CGI-Application
|
2007-01-15 23:29:51 +00:00
|
|
|
#
|
2025-06-12 17:54:30 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:29:51 +00:00
|
|
|
#
|
2008-09-12 16:08:10 +00:00
|
|
|
# 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.
|
|
|
|
|
2025-06-12 17:54:30 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:29:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-06-12 17:54:30 +00:00
|
|
|
%define cpan_name CGI-Application
|
2007-01-15 23:29:51 +00:00
|
|
|
Name: perl-CGI-Application
|
2025-06-12 17:54:30 +00:00
|
|
|
Version: 4.610.0
|
2018-03-05 05:54:57 +00:00
|
|
|
Release: 0
|
2025-06-12 17:54:30 +00:00
|
|
|
# 4.61 -> normalize -> 4.610.0
|
|
|
|
%define cpan_version 4.61
|
2018-03-05 05:54:57 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-06-12 17:54:30 +00:00
|
|
|
Summary: Framework for building reusable web-applications
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARTO/%{cpan_name}-%{cpan_version}.tar.gz
|
2018-03-05 05:54:57 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:12:14 +02:00
|
|
|
Source100: README.md
|
2011-10-25 08:14:23 +00:00
|
|
|
BuildArch: noarch
|
2010-10-19 10:48:26 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 13:56:25 +00:00
|
|
|
BuildRequires: perl-macros
|
2025-06-12 17:54:30 +00:00
|
|
|
BuildRequires: perl(CGI) >= 4.210
|
2011-10-25 08:14:23 +00:00
|
|
|
BuildRequires: perl(Class::ISA)
|
|
|
|
BuildRequires: perl(HTML::Template)
|
2025-06-12 17:54:30 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.42
|
2018-03-05 05:54:57 +00:00
|
|
|
BuildRequires: perl(Test::Requires)
|
2025-06-12 17:54:30 +00:00
|
|
|
Requires: perl(CGI) >= 4.210
|
2011-10-25 08:14:23 +00:00
|
|
|
Requires: perl(Class::ISA)
|
|
|
|
Requires: perl(HTML::Template)
|
2018-03-05 05:54:57 +00:00
|
|
|
Requires: perl(Module::Build)
|
|
|
|
Requires: perl(Test::Requires)
|
2025-06-12 17:54:30 +00:00
|
|
|
Provides: perl(CGI::Application) = %{version}
|
|
|
|
Provides: perl(CGI::Application::Mailform)
|
|
|
|
%undefine __perllib_provides
|
|
|
|
Recommends: perl(CGI::PSGI) >= 0.90
|
2011-10-25 08:14:23 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:29:51 +00:00
|
|
|
|
|
|
|
%description
|
2011-10-25 08:14:23 +00:00
|
|
|
It is intended that your Application Module will be implemented as a
|
|
|
|
sub-class of CGI::Application. This is done simply as follows:
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2018-03-05 05:54:57 +00:00
|
|
|
package My::App;
|
2011-10-25 08:14:23 +00:00
|
|
|
use base 'CGI::Application';
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2011-10-25 08:14:23 +00:00
|
|
|
*Notation and Conventions*
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2011-10-25 08:14:23 +00:00
|
|
|
For the purpose of this document, we will refer to the following
|
|
|
|
conventions:
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2011-10-25 08:14:23 +00:00
|
|
|
WebApp.pm The Perl module which implements your Application Module class.
|
|
|
|
WebApp Your Application Module class; a sub-class of CGI::Application.
|
|
|
|
webapp.cgi The Instance Script which implements your Application Module.
|
|
|
|
$webapp An instance (object) of your Application Module class.
|
|
|
|
$c Same as $webapp, used in instance methods to pass around the
|
|
|
|
current object. (Sometimes referred as "$self" in other code)
|
2007-01-15 23:29:51 +00:00
|
|
|
|
|
|
|
%prep
|
2025-06-12 17:54:30 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2007-01-15 23:29:51 +00:00
|
|
|
|
|
|
|
%build
|
2025-06-12 17:54:30 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2011-10-25 08:14:23 +00:00
|
|
|
%check
|
|
|
|
./Build test
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2011-10-25 08:14:23 +00:00
|
|
|
%install
|
2025-06-12 17:54:30 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-10-25 08:14:23 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2011-10-25 08:14:23 +00:00
|
|
|
%files -f %{name}.files
|
2025-06-12 17:54:30 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license ARTISTIC GPL
|
2007-01-15 23:29:51 +00:00
|
|
|
|
2008-09-12 16:08:10 +00:00
|
|
|
%changelog
|