Группа :: Разработка/Perl
Пакет: perl-LWP-Protocol-PSGI
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(Test/Pod.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define upstream_name LWP-Protocol-PSGI
%define upstream_version 0.11
%{?perl_default_filter}
Name: perl-%{upstream_name}
Version: %{upstream_version}
Release: alt1_1
Summary: Override LWP's HTTP/HTTPS backend with your own PSGI applciation
License: GPL+ or Artistic
Group: Development/Perl
Url: http://search.cpan.org/dist/%{upstream_name}
Source0: http://www.cpan.org/modules/by-module/LWP/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(HTTP/Message/PSGI.pm)
BuildRequires: perl(LWP.pm)
BuildRequires: perl(LWP/Protocol.pm)
BuildRequires: perl(Module/Build/Tiny.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(Test/Requires.pm)
BuildRequires: perl(parent.pm)
BuildArch: noarch
Source44: import.info
%description
LWP::Protocol::PSGI is a module to hijack *any* code that uses the
LWP::UserAgent manpage underneath such that any HTTP or HTTPS requests can
be routed to your own PSGI application.
Because it works with any code that uses LWP, you can override various
WWW::*, Net::* or WebService::* modules such as the WWW::Mechanize manpage,
without modifying the calling code or its internals.
use WWW::Mechanize;
use LWP::Protocol::PSGI;
%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%build
/usr/bin/perl Build.PL --installdirs=vendor
./Build
%check
./Build test
%install
./Build install --destdir=%{buildroot}
%files
%doc Changes LICENSE META.json META.yml README
%{perl_vendor_privlib}/*
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(Test/Pod.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define upstream_name LWP-Protocol-PSGI
%define upstream_version 0.11
%{?perl_default_filter}
Name: perl-%{upstream_name}
Version: %{upstream_version}
Release: alt1_1
Summary: Override LWP's HTTP/HTTPS backend with your own PSGI applciation
License: GPL+ or Artistic
Group: Development/Perl
Url: http://search.cpan.org/dist/%{upstream_name}
Source0: http://www.cpan.org/modules/by-module/LWP/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(HTTP/Message/PSGI.pm)
BuildRequires: perl(LWP.pm)
BuildRequires: perl(LWP/Protocol.pm)
BuildRequires: perl(Module/Build/Tiny.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(Test/Requires.pm)
BuildRequires: perl(parent.pm)
BuildArch: noarch
Source44: import.info
%description
LWP::Protocol::PSGI is a module to hijack *any* code that uses the
LWP::UserAgent manpage underneath such that any HTTP or HTTPS requests can
be routed to your own PSGI application.
Because it works with any code that uses LWP, you can override various
WWW::*, Net::* or WebService::* modules such as the WWW::Mechanize manpage,
without modifying the calling code or its internals.
use WWW::Mechanize;
use LWP::Protocol::PSGI;
%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%build
/usr/bin/perl Build.PL --installdirs=vendor
./Build
%check
./Build test
%install
./Build install --destdir=%{buildroot}
%files
%doc Changes LICENSE META.json META.yml README
%{perl_vendor_privlib}/*
%changelog
…
Полный changelog можно просмотреть здесь