Group :: Development/Other
RPM: perl-CGI-PSGI
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(CPAN.pm) perl(JSON.pm) perl(LWP/Simple.pm) perl(Module/Build.pm) perl(Net/FTP.pm) perl(Parse/CPAN/Meta.pm) perl(YAML/Tiny.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-CGI-PSGI
Version: 0.15
Release: alt1_24
Summary: Enable your CGI.pm aware applications to adapt PSGI protocol
License: GPL+ or Artistic
URL: https://metacpan.org/release/CGI-PSGI
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/CGI-PSGI-%{version}.tar.gz
BuildArch: noarch
BuildRequires: findutils
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(inc/Module/Install.pm)
BuildRequires: perl(Module/Install/AuthorTests.pm)
BuildRequires: perl(Module/Install/Metadata.pm)
BuildRequires: perl(Module/Install/Repository.pm)
BuildRequires: perl(Module/Install/WriteAll.pm)
BuildRequires: sed
# Run-time
BuildRequires: perl(base.pm)
BuildRequires: perl(CGI.pm)
BuildRequires: perl(strict.pm)
# Tests
BuildRequires: perl(CGI/Cookie.pm)
BuildRequires: perl(CGI/Util.pm)
BuildRequires: perl(Config.pm)
BuildRequires: perl(IO/Handle.pm)
BuildRequires: perl(POSIX.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(warnings.pm)
Source44: import.info
%description
This module is for web application framework developers who currently uses
CGI to handle query parameters. You can switch to use CGI::PSGI instead of
CGI, to make your framework compatible to PSGI with a slight modification
of your framework adapter. The framework should already be collecting the
body content to print at one place, and not printing any content directly
to STDOUT.
%prep
%setup -q -n CGI-PSGI-%{version}
# Remove bundled libraries
rm -r inc
sed -i -e '/^inc\// d' MANIFEST
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(CPAN.pm) perl(JSON.pm) perl(LWP/Simple.pm) perl(Module/Build.pm) perl(Net/FTP.pm) perl(Parse/CPAN/Meta.pm) perl(YAML/Tiny.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-CGI-PSGI
Version: 0.15
Release: alt1_24
Summary: Enable your CGI.pm aware applications to adapt PSGI protocol
License: GPL+ or Artistic
URL: https://metacpan.org/release/CGI-PSGI
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/CGI-PSGI-%{version}.tar.gz
BuildArch: noarch
BuildRequires: findutils
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(inc/Module/Install.pm)
BuildRequires: perl(Module/Install/AuthorTests.pm)
BuildRequires: perl(Module/Install/Metadata.pm)
BuildRequires: perl(Module/Install/Repository.pm)
BuildRequires: perl(Module/Install/WriteAll.pm)
BuildRequires: sed
# Run-time
BuildRequires: perl(base.pm)
BuildRequires: perl(CGI.pm)
BuildRequires: perl(strict.pm)
# Tests
BuildRequires: perl(CGI/Cookie.pm)
BuildRequires: perl(CGI/Util.pm)
BuildRequires: perl(Config.pm)
BuildRequires: perl(IO/Handle.pm)
BuildRequires: perl(POSIX.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(warnings.pm)
Source44: import.info
%description
This module is for web application framework developers who currently uses
CGI to handle query parameters. You can switch to use CGI::PSGI instead of
CGI, to make your framework compatible to PSGI with a slight modification
of your framework adapter. The framework should already be collecting the
body content to print at one place, and not printing any content directly
to STDOUT.
%prep
%setup -q -n CGI-PSGI-%{version}
# Remove bundled libraries
rm -r inc
sed -i -e '/^inc\// d' MANIFEST
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here