104 lines
3.7 KiB
RPMSpec
104 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package perl-Web-Simple
|
|
#
|
|
# 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 Web-Simple
|
|
Name: perl-Web-Simple
|
|
Version: 0.33.0
|
|
Release: 0
|
|
# 0.033 -> normalize -> 0.33.0
|
|
%define cpan_version 0.033
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Quick and easy way to build simple web applications
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSTROUT/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Data::Dumper::Concise) >= 2.020
|
|
BuildRequires: perl(HTTP::Body) >= 1.22
|
|
BuildRequires: perl(Moo) >= 0.009014
|
|
BuildRequires: perl(Plack) >= 0.9968
|
|
BuildRequires: perl(Syntax::Keyword::Gather) >= 1.1.0
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
BuildRequires: perl(strictures) >= 1
|
|
BuildRequires: perl(warnings::illegalproto)
|
|
Requires: perl(HTTP::Body) >= 1.22
|
|
Requires: perl(Moo) >= 0.009014
|
|
Requires: perl(Plack) >= 0.9968
|
|
Requires: perl(Syntax::Keyword::Gather) >= 1.1.0
|
|
Requires: perl(strictures) >= 1
|
|
Requires: perl(warnings::illegalproto)
|
|
Provides: perl(CSS::Declare)
|
|
Provides: perl(CSS::Declare::Unex)
|
|
Provides: perl(HTML::Tags)
|
|
Provides: perl(Plack::Middleware::Dispatch)
|
|
Provides: perl(Web::Dispatch)
|
|
Provides: perl(Web::Dispatch::HTTPMethods)
|
|
Provides: perl(Web::Dispatch::HTTPMethods::Endpoint)
|
|
Provides: perl(Web::Dispatch::Node)
|
|
Provides: perl(Web::Dispatch::NotAnUpload)
|
|
Provides: perl(Web::Dispatch::ParamParser)
|
|
Provides: perl(Web::Dispatch::Parser)
|
|
Provides: perl(Web::Dispatch::Predicates)
|
|
Provides: perl(Web::Dispatch::ToApp)
|
|
Provides: perl(Web::Dispatch::Upload)
|
|
Provides: perl(Web::Dispatch::Wrapper)
|
|
Provides: perl(Web::Simple) = %{version}
|
|
Provides: perl(Web::Simple::Application)
|
|
Provides: perl(Web::Simple::Role) = %{version}
|
|
Provides: perl(XML::Tags)
|
|
Provides: perl(XML::Tags::StringThing)
|
|
Provides: perl(XML::Tags::TIEHANDLE)
|
|
Provides: perl(XML::Tags::Unex)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
The philosophy of Web::Simple is to keep to an absolute bare minimum for
|
|
everything. It is not designed to be used for large scale applications; the
|
|
Catalyst web framework already works very nicely for that and is a far more
|
|
mature, well supported piece of software.
|
|
|
|
However, if you have an application that only does a couple of things, and
|
|
want to not have to think about complexities of deployment, then
|
|
Web::Simple might be just the thing for you.
|
|
|
|
%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 examples README
|
|
|
|
%changelog
|