75 lines
2.3 KiB
RPMSpec
75 lines
2.3 KiB
RPMSpec
# Use optimized implementation in C
|
|
# Enable bootstrapping locally until perl-GIS-Distance-XS is built.
|
|
%global perl_bootstrap 1
|
|
%if !%{defined perl_bootstrap}
|
|
# Build-cycle: perl-GIS-Distance-XS → perl-GIS-Distance
|
|
%bcond_without perl_GIS_Distance_enables_xs
|
|
%endif
|
|
|
|
Name: perl-GIS-Distance
|
|
Version: 0.11
|
|
Release: 1%{?dist}
|
|
Summary: Calculate geographic distances
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/GIS-Distance
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BL/BLUEFEET/GIS-Distance-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(:VERSION) >= 5.8.1
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.035
|
|
BuildRequires: perl(strict)
|
|
# Run-time:
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Class::Measure::Length)
|
|
BuildRequires: perl(Const::Fast) >= 0.014
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(Math::Trig)
|
|
BuildRequires: perl(namespace::clean) >= 0.24
|
|
BuildRequires: perl(strictures) >= 2
|
|
%if %{with perl_GIS_Distance_enables_xs}
|
|
# Optional run-time:
|
|
BuildRequires: perl(GIS::Distance::Fast) >= 0.09
|
|
%endif
|
|
# Tests:
|
|
BuildRequires: perl(Test2::V0) >= 0.000094
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(Const::Fast) >= 0.014
|
|
%if %{with perl_GIS_Distance_enables_xs}
|
|
Recommends: perl(GIS::Distance::Fast) >= 0.09
|
|
%endif
|
|
Requires: perl(namespace::clean) >= 0.24
|
|
|
|
# Remove under-specified dependencies
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Const::Fast|namespace::clean)\\)$
|
|
|
|
%description
|
|
This Perl module calculates distances between geographic points on, at the
|
|
moment, planet Earth. Various "FORMULAS" are available that provide different
|
|
levels of accuracy versus speed.
|
|
|
|
%prep
|
|
%setup -q -n GIS-Distance-%{version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%check
|
|
unset GEO_DISTANCE_PP GIS_DISTANCE_PP
|
|
./Build test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc Changes README.md
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Fri Mar 08 2019 Petr Pisar <ppisar@redhat.com> 0.11-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|