121 lines
4.4 KiB
RPMSpec
121 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package perl-CGI-Ex
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define cpan_name CGI-Ex
|
|
Name: perl-CGI-Ex
|
|
Version: 2.550.0
|
|
Release: 0
|
|
%define cpan_version 2.55
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: CGI utility suite - makes powerful application writing fun and easy
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RH/RHANDOM/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(CGI)
|
|
BuildRequires: perl(Template::Alloy) >= 1.016
|
|
Requires: perl(CGI)
|
|
Requires: perl(Template::Alloy) >= 1.016
|
|
Provides: perl(CGI::Ex) = %{version}
|
|
Provides: perl(CGI::Ex::App) = %{version}
|
|
Provides: perl(CGI::Ex::App::Constants) = %{version}
|
|
Provides: perl(CGI::Ex::Auth) = %{version}
|
|
Provides: perl(CGI::Ex::Auth::Data) = %{version}
|
|
Provides: perl(CGI::Ex::Conf) = %{version}
|
|
Provides: perl(CGI::Ex::Die) = %{version}
|
|
Provides: perl(CGI::Ex::Dump) = %{version}
|
|
Provides: perl(CGI::Ex::Fill) = %{version}
|
|
Provides: perl(CGI::Ex::JSONDump) = %{version}
|
|
Provides: perl(CGI::Ex::Template) = %{version}
|
|
Provides: perl(CGI::Ex::Validate) = %{version}
|
|
Provides: perl(CGI::Ex::Validate::Error) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
CGI::Ex provides a suite of utilities to make writing CGI scripts more
|
|
enjoyable. Although they can all be used separately, the main functionality
|
|
of each of the modules is best represented in the CGI::Ex::App module.
|
|
CGI::Ex::App takes CGI application building to the next step. CGI::Ex::App
|
|
is not quite a framework (which normally includes pre-built html) instead
|
|
CGI::Ex::App is an extended application flow that dramatically reduces CGI
|
|
build time in most cases. It does so using as little magic as possible. See
|
|
CGI::Ex::App.
|
|
|
|
The main functionality is provided by several other modules that may be
|
|
used separately, or together through the CGI::Ex interface.
|
|
|
|
* 'CGI::Ex::Template'
|
|
|
|
A Template::Toolkit compatible processing engine. With a few limitations,
|
|
CGI::Ex::Template can be a drop in replacement for Template::Toolkit.
|
|
|
|
* 'CGI::Ex::Fill'
|
|
|
|
A regular expression based form filler inner (accessed through *->fill* or
|
|
directly via its own functions). Can be a drop in replacement for
|
|
HTML::FillInForm. See CGI::Ex::Fill for more information.
|
|
|
|
* 'CGI::Ex::Validate'
|
|
|
|
A form field / cgi parameter / any parameter validator (accessed through
|
|
*->validate* or directly via its own methods). Not quite a drop in for most
|
|
validators, although it has most of the functionality of most of the
|
|
validators but with the key additions of conditional validation. Has a
|
|
tightly integrated JavaScript portion that allows for duplicate client side
|
|
validation. See CGI::Ex::Validate for more information.
|
|
|
|
* 'CGI::Ex::Conf'
|
|
|
|
A general use configuration, or settings, or key / value file reader. Has
|
|
ability for providing key fallback as well as immutable key definitions.
|
|
Has default support for yaml, storable, perl, ini, and xml and open
|
|
architecture for definition of others. See CGI::Ex::Conf for more
|
|
information.
|
|
|
|
* 'CGI::Ex::Auth'
|
|
|
|
A highly configurable web based authentication system. See CGI::Ex::Auth
|
|
for more information.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README samples
|
|
%license LICENSE
|
|
|
|
%changelog
|