%global codate 20190523 %global commit0 b09c2c788f87dc5a7e6bdbb3a2915f9d6dd09eac %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: perl-AnyEvent-HTTP-Server Version: 1.99981 Release: 3.%{codate}git%{shortcommit0}%{?dist} Summary: AnyEvent HTTP/1.1 Server License: GPL+ or Artistic URL: https://github.com/Mons/AnyEvent-HTTP-Server-II Source0: https://github.com/Mons/AnyEvent-HTTP-Server-II/archive/%{commit0}.tar.gz#/%{name}-%{version}-%{shortcommit0}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.10 BuildRequires: perl(Data::Dumper) BuildRequires: perl(AnyEvent::Handle) BuildRequires: perl(AnyEvent::Socket) BuildRequires: perl(Test::More) BuildRequires: perl(AnyEvent::Util) BuildRequires: perl(Config) BuildRequires: perl(constant) BuildRequires: perl(Encode) BuildRequires: perl(MIME::Base64) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Socket) BuildRequires: perl(Time::HiRes) BuildRequires: perl(AnyEvent) >= 5 BuildRequires: perl(Digest::SHA1) >= 2 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(JSON::XS) >= 3 # tests BuildRequires: perl(EV) BuildRequires: perl(Compress::Zlib) BuildRequires: perl(Test::Pod) Requires: perl(AnyEvent) >= 5 Requires: perl(Digest::SHA1) >= 2 Requires: perl(JSON::XS) >= 3 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description AnyEvent::HTTP::Server is a very fast asynchronous HTTP server written in perl. It has been tested in high load production environments and may be considered both fast and stable. %prep %setup -q -n AnyEvent-HTTP-Server-II-%{commit0} %build unset AUTHOR perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install perl -pi -e 's,#!.*perl,#!%{__perl},' ex/*.pl %{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %doc Changes ex README.md %license LICENSE %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Jun 6 2019 Yanko Kaneti - 1.99981-3.20190523gitb09c2c7 - Incorporate review feedack (#1713315) * Thu May 23 2019 Yanko Kaneti - 1.99981-2.20190523gitb09c2c7 - First try - Specfile autogenerated by cpanspec 1.78 and modified after