perl-HTTP-Response-Encoding/perl-HTTP-Response-Encoding.spec
2022-07-15 21:56:08 +08:00

46 lines
1.3 KiB
RPMSpec

Name: perl-HTTP-Response-Encoding
Version: 0.06
Release: 1
Summary: HTTP::Response::Encoding Perl module
License: GPL+ or Artistic
URL: https://metacpan.org/release/HTTP-Response-Encoding
Source0: https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/HTTP-Response-Encoding-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
BuildRequires: perl(Test::Pod) >= 1.14
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Adds encoding() to HTTP::Response.
%prep
%setup -q -n HTTP-Response-Encoding-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon May 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.06-1
- Init package (Thanks to fedora team)