2019-05-23 10:08:33 +00:00
|
|
|
%if !%{defined perl_bootstrap}
|
2019-09-20 07:59:49 +00:00
|
|
|
# Run optional tests.
|
|
|
|
# Disabled because perl-Geo-Point was retired (bug #1748923).
|
|
|
|
# Build-cycle: perl-GIS-Distance → perl-Geo-Point → perl-Geo-Distance
|
|
|
|
%bcond_with perl_GIS_Distance_enables_optional_test
|
2019-03-11 14:05:02 +00:00
|
|
|
# Use optimized implementation in C
|
2019-03-11 14:04:26 +00:00
|
|
|
# Build-cycle: perl-GIS-Distance-XS → perl-GIS-Distance
|
|
|
|
%bcond_without perl_GIS_Distance_enables_xs
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: perl-GIS-Distance
|
2021-02-01 15:00:54 +00:00
|
|
|
Version: 0.19
|
2021-05-21 20:16:33 +00:00
|
|
|
Release: 2%{?dist}
|
2019-03-11 14:04:26 +00:00
|
|
|
Summary: Calculate geographic distances
|
2021-02-01 15:00:54 +00:00
|
|
|
License: GPL+ or Artistic
|
2019-03-11 14:04:26 +00:00
|
|
|
URL: https://metacpan.org/release/GIS-Distance
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BL/BLUEFEET/GIS-Distance-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2021-02-01 15:00:54 +00:00
|
|
|
BuildRequires: coreutils
|
2019-03-11 14:04:26 +00:00
|
|
|
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
|
2019-03-18 08:41:49 +00:00
|
|
|
BuildRequires: perl(parent)
|
2019-03-13 09:23:56 +00:00
|
|
|
BuildRequires: perl(Scalar::Util)
|
2019-03-11 14:04:26 +00:00
|
|
|
BuildRequires: perl(strictures) >= 2
|
|
|
|
%if %{with perl_GIS_Distance_enables_xs}
|
|
|
|
# Optional run-time:
|
2019-03-18 08:41:49 +00:00
|
|
|
BuildRequires: perl(GIS::Distance::Fast) >= 0.13
|
2019-03-11 14:04:26 +00:00
|
|
|
%endif
|
|
|
|
# Tests:
|
2019-03-13 09:23:56 +00:00
|
|
|
BuildRequires: perl(Test2::Require::Module)
|
2019-03-11 14:04:26 +00:00
|
|
|
BuildRequires: perl(Test2::V0) >= 0.000094
|
2019-03-13 09:23:56 +00:00
|
|
|
%if %{with perl_GIS_Distance_enables_optional_test}
|
|
|
|
# Optional tests:
|
2019-03-18 08:41:49 +00:00
|
|
|
BuildRequires: perl(Geo::Point) >= 0.95
|
2019-03-13 09:23:56 +00:00
|
|
|
%endif
|
2019-03-11 14:04:26 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(Const::Fast) >= 0.014
|
|
|
|
%if %{with perl_GIS_Distance_enables_xs}
|
2019-03-18 08:41:49 +00:00
|
|
|
Recommends: perl(GIS::Distance::Fast) >= 0.13
|
2019-03-11 14:04:26 +00:00
|
|
|
%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
|
2021-05-21 20:16:33 +00:00
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-2
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
2021-02-01 15:00:54 +00:00
|
|
|
* Mon Feb 01 2021 Petr Pisar <ppisar@redhat.com> - 0.19-1
|
|
|
|
- 1.19 bump
|
|
|
|
- A license changed from "GPLv3+" to "GPL+ or Artistic"
|
|
|
|
|
2021-01-27 01:33:14 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-28 15:50:42 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-26 14:48:06 +00:00
|
|
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-8
|
|
|
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
|
|
|
|
2020-06-23 08:40:38 +00:00
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-7
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
2020-01-30 00:29:15 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-09-20 07:59:49 +00:00
|
|
|
* Fri Sep 20 2019 Petr Pisar <ppisar@redhat.com> - 0.18-5
|
|
|
|
- Disable optional tests because perl-Geo-Point will be retired (bug #1748923)
|
|
|
|
|
2019-07-26 03:11:54 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-02 20:59:20 +00:00
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-3
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
2019-05-31 14:49:43 +00:00
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-2
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
2019-05-13 09:01:13 +00:00
|
|
|
* Mon May 13 2019 Petr Pisar <ppisar@redhat.com> - 0.18-1
|
|
|
|
- 0.18 bump
|
2019-05-13 09:04:46 +00:00
|
|
|
- License changed from "GPL+ or Artistic" to "GPLv3+"
|
2019-05-13 09:01:13 +00:00
|
|
|
|
2019-03-18 09:08:28 +00:00
|
|
|
* Mon Mar 18 2019 Petr Pisar <ppisar@redhat.com> - 0.17-2
|
|
|
|
- Finish bootstrapping perl-GIS-Distance-Fast-0.14
|
|
|
|
|
2019-03-18 08:41:49 +00:00
|
|
|
* Mon Mar 18 2019 Petr Pisar <ppisar@redhat.com> - 0.17-1
|
|
|
|
- 0.17 bump
|
|
|
|
|
2019-03-13 09:23:56 +00:00
|
|
|
* Wed Mar 13 2019 Petr Pisar <ppisar@redhat.com> - 0.15-1
|
|
|
|
- 0.15 bump
|
|
|
|
|
2019-03-11 14:32:44 +00:00
|
|
|
* Mon Mar 11 2019 Petr Pisar <ppisar@redhat.com> - 0.11-2
|
|
|
|
- Finish boostrapping with perl-GIS-Distance-XS
|
|
|
|
|
2019-03-11 14:04:26 +00:00
|
|
|
* Fri Mar 08 2019 Petr Pisar <ppisar@redhat.com> 0.11-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|