|
|
a5fefec |
Name: perl-GeoIP2
|
|
|
a5fefec |
Version: 2.006002
|
|
|
87a879d |
Release: 2%{?dist}
|
|
|
a5fefec |
Summary: Perl API for MaxMind's GeoIP2 web services and databases
|
|
|
a5fefec |
License: GPL+ or Artistic
|
|
|
a5fefec |
URL: https://metacpan.org/release/GeoIP2
|
|
|
a5fefec |
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAXMIND/GeoIP2-%{version}.tar.gz
|
|
|
a5fefec |
# Drop an insecure "use lib", <https://github.com/maxmind/GeoIP2-perl/pull/77>
|
|
|
a5fefec |
Patch0: GeoIP2-2.006002-Do-not-use-lib-from-web-service-request-tool.patch
|
|
|
6fee90b |
# Do not use /usr/bin/env in the shebangs
|
|
|
6fee90b |
Patch1: GeoIP2-2.006002-Normalize-a-shebang.patch
|
|
|
a5fefec |
BuildArch: noarch
|
|
|
a5fefec |
BuildRequires: coreutils
|
|
|
a5fefec |
BuildRequires: make
|
|
|
a5fefec |
BuildRequires: perl-generators
|
|
|
a5fefec |
BuildRequires: perl-interpreter
|
|
|
a5fefec |
BuildRequires: perl(:VERSION) >= 5.8
|
|
|
a5fefec |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
a5fefec |
BuildRequires: perl(strict)
|
|
|
a5fefec |
BuildRequires: perl(warnings)
|
|
|
a5fefec |
# Run-time:
|
|
|
a5fefec |
BuildRequires: perl(B)
|
|
|
a5fefec |
# Data::Dumper not used at tests
|
|
|
a5fefec |
BuildRequires: perl(Data::Validate::IP) >= 0.25
|
|
|
a5fefec |
BuildRequires: perl(Exporter)
|
|
|
a5fefec |
# Getopt::Long not used at tests
|
|
|
a5fefec |
BuildRequires: perl(HTTP::Headers)
|
|
|
a5fefec |
BuildRequires: perl(HTTP::Request)
|
|
|
a5fefec |
BuildRequires: perl(JSON::MaybeXS)
|
|
|
a5fefec |
BuildRequires: perl(List::SomeUtils)
|
|
|
a5fefec |
BuildRequires: perl(List::Util)
|
|
|
a5fefec |
BuildRequires: perl(LWP::Protocol::https)
|
|
|
a5fefec |
BuildRequires: perl(LWP::UserAgent)
|
|
|
a5fefec |
BuildRequires: perl(MaxMind::DB::Reader) >= 1.000000
|
|
|
a5fefec |
BuildRequires: perl(MIME::Base64)
|
|
|
a5fefec |
BuildRequires: perl(Moo)
|
|
|
a5fefec |
BuildRequires: perl(Moo::Role)
|
|
|
a5fefec |
BuildRequires: perl(namespace::clean)
|
|
|
a5fefec |
BuildRequires: perl(Params::Validate)
|
|
|
a5fefec |
BuildRequires: perl(Scalar::Util)
|
|
|
a5fefec |
BuildRequires: perl(Sub::Quote)
|
|
|
a5fefec |
BuildRequires: perl(Throwable::Error)
|
|
|
a5fefec |
BuildRequires: perl(Try::Tiny)
|
|
|
a5fefec |
BuildRequires: perl(URI)
|
|
|
a5fefec |
# Tests:
|
|
|
a5fefec |
BuildRequires: perl(base)
|
|
|
a5fefec |
BuildRequires: perl(File::Spec)
|
|
|
a5fefec |
BuildRequires: perl(HTTP::Response)
|
|
|
a5fefec |
BuildRequires: perl(HTTP::Status)
|
|
|
a5fefec |
BuildRequires: perl(IO::Compress::Gzip)
|
|
|
441b678 |
BuildRequires: perl(lib)
|
|
|
a5fefec |
BuildRequires: perl(MaxMind::DB::Metadata)
|
|
|
a5fefec |
BuildRequires: perl(Path::Class)
|
|
|
a5fefec |
BuildRequires: perl(Test::Builder)
|
|
|
a5fefec |
BuildRequires: perl(Test::Fatal)
|
|
|
a5fefec |
BuildRequires: perl(Test::More) >= 0.96
|
|
|
a5fefec |
BuildRequires: perl(Test::Number::Delta)
|
|
|
a5fefec |
BuildRequires: perl(utf8)
|
|
|
a5fefec |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
a5fefec |
Requires: perl(Throwable::Error)
|
|
|
a5fefec |
|
|
|
a5fefec |
%description
|
|
|
a5fefec |
This package provides an API for the GeoIP2 web services and databases. The
|
|
|
a5fefec |
API also works with the GeoLite2 databases.
|
|
|
a5fefec |
|
|
|
a5fefec |
%prep
|
|
|
a5fefec |
%setup -q -n GeoIP2-%{version}
|
|
|
a5fefec |
%patch0 -p1
|
|
|
6fee90b |
%patch1 -p1
|
|
|
a5fefec |
# Rename web-service-request to a more specific name,
|
|
|
a5fefec |
# <https://github.com/maxmind/GeoIP2-perl/issues/78>
|
|
|
a5fefec |
mv bin/{,geoip2-}web-service-request
|
|
|
a5fefec |
perl -i -pe 's{bin/web-service-request}{bin/geoip2-web-service-request}' \
|
|
|
a5fefec |
Makefile.PL MANIFEST
|
|
|
a5fefec |
|
|
|
a5fefec |
%build
|
|
|
a5fefec |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
a5fefec |
%{make_build}
|
|
|
a5fefec |
|
|
|
a5fefec |
%install
|
|
|
a5fefec |
%{make_install}
|
|
|
a5fefec |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
a5fefec |
|
|
|
a5fefec |
%check
|
|
|
a5fefec |
make test
|
|
|
a5fefec |
|
|
|
a5fefec |
%files
|
|
|
a5fefec |
%license LICENSE
|
|
|
a5fefec |
%doc Changes CONTRIBUTING.md README.md
|
|
|
a5fefec |
%{_bindir}/geoip2-web-service-request
|
|
|
a5fefec |
%{perl_vendorlib}/*
|
|
|
a5fefec |
%{_mandir}/man3/*
|
|
|
a5fefec |
|
|
|
a5fefec |
%changelog
|
|
|
87a879d |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.006002-2
|
|
|
87a879d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
87a879d |
|
|
|
a5fefec |
* Tue Aug 11 2020 Petr Pisar <ppisar@redhat.com> 2.006002-1
|
|
|
a5fefec |
- Specfile autogenerated by cpanspec 1.78.
|
|
|
441b678 |
- Build-require lib for a test
|
|
|
6fee90b |
- Do not use /usr/bin/env in the shebangs
|