Files
perl-Web-Simple/perl-Web-Simple.spec

77 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-Web-Simple
#
# Copyright (c) 2021 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.033
Release: 0
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}-%{version}.tar.gz
Source1: cpanspec.yml
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.001
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.001
Requires: perl(strictures) >= 1
Requires: perl(warnings::illegalproto)
%{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}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -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