File perl-CGI-PSGI.spec of Package perl-CGI-PSGI
#
# spec file for package perl-CGI-PSGI
#
# Copyright (c) 2023 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/
#
Name: perl-CGI-PSGI
Version: 0.15
Release: 0
%define cpan_name CGI-PSGI
Summary: CGI::PSGI Perl module
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/CGI-PSGI/
Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/CGI-PSGI-%{version}.tar.gz
Patch0: CGI-PSGI-old-Test_More.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Module::Install)
BuildRequires: perl(Test::More) >= 0.88
#
BuildRequires: perl(CGI) >= 3.33
Requires: perl(CGI) >= 3.33
%{perl_requires}
%description
CGI::PSGI Perl module
This module is for web application framework developers who currently use CGI to handle query parameters, and would like for the frameworks to comply with the PSGI protocol.
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1110
%patch0 -p1
%endif
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%changelog