Compare commits

...

15 Commits

Author SHA1 Message Date
Fedora Release Engineering 78d3019f0f Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 06:24:04 +00:00
Jitka Plesnikova ab89d90bb9 Perl 5.36 re-rebuild of bootstrapped packages 2022-06-03 12:01:43 +02:00
Jitka Plesnikova 066f8ddf28 Perl 5.36 rebuild 2022-06-01 08:23:19 +02:00
Fedora Release Engineering 4d20d79a9d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 01:53:57 +00:00
Petr Písař c74752198b Add TMT tests and gating 2022-01-18 15:14:33 +01:00
Petr Písař 124d6ee61a Package the tests 2022-01-18 15:13:29 +01:00
Fedora Release Engineering 6094a2e4ce - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 20:33:08 +00:00
Jitka Plesnikova be3be1f4fc Perl 5.34 re-rebuild of bootstrapped packages 2021-05-24 10:11:54 +02:00
Jitka Plesnikova 968165aa65 Perl 5.34 rebuild 2021-05-21 22:16:33 +02:00
Petr Písař 1884ec88d0 1.19 bump 2021-02-01 16:00:54 +01:00
Fedora Release Engineering 2d3704f96e - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 01:33:14 +00:00
Fedora Release Engineering f685539003 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 15:50:42 +00:00
Jitka Plesnikova 1d2b0150a1 Perl 5.32 re-rebuild of bootstrapped packages 2020-06-26 16:48:06 +02:00
Jitka Plesnikova 666f929693 Perl 5.32 rebuild 2020-06-23 10:40:38 +02:00
Fedora Release Engineering 41a2ec7bef - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 00:29:15 +00:00
8 changed files with 105 additions and 6 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/GIS-Distance-0.15.tar.gz /GIS-Distance-0.15.tar.gz
/GIS-Distance-0.17.tar.gz /GIS-Distance-0.17.tar.gz
/GIS-Distance-0.18.tar.gz /GIS-Distance-0.18.tar.gz
/GIS-Distance-0.19.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View File

@ -0,0 +1 @@
addFilter('-tests\.noarch: W: no-documentation')

View File

@ -9,16 +9,18 @@
%endif %endif
Name: perl-GIS-Distance Name: perl-GIS-Distance
Version: 0.18 Version: 0.19
Release: 5%{?dist} Release: 9%{?dist}
Summary: Calculate geographic distances Summary: Calculate geographic distances
License: GPLv3+ License: GPL+ or Artistic
URL: https://metacpan.org/release/GIS-Distance URL: https://metacpan.org/release/GIS-Distance
Source0: https://cpan.metacpan.org/authors/id/B/BL/BLUEFEET/GIS-Distance-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/B/BL/BLUEFEET/GIS-Distance-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1 BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: perl(Config)
BuildRequires: perl(Module::Build::Tiny) >= 0.035 BuildRequires: perl(Module::Build::Tiny) >= 0.035
BuildRequires: perl(strict) BuildRequires: perl(strict)
# Run-time: # Run-time:
@ -36,11 +38,11 @@ BuildRequires: perl(strictures) >= 2
BuildRequires: perl(GIS::Distance::Fast) >= 0.13 BuildRequires: perl(GIS::Distance::Fast) >= 0.13
%endif %endif
# Tests: # Tests:
BuildRequires: perl(Test2::Require::Module)
BuildRequires: perl(Test2::V0) >= 0.000094 BuildRequires: perl(Test2::V0) >= 0.000094
%if %{with perl_GIS_Distance_enables_optional_test} %if %{with perl_GIS_Distance_enables_optional_test}
# Optional tests: # Optional tests:
BuildRequires: perl(Geo::Point) >= 0.95 BuildRequires: perl(Geo::Point) >= 0.95
BuildRequires: perl(Test2::Require::Module)
%endif %endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Const::Fast) >= 0.014 Requires: perl(Const::Fast) >= 0.014
@ -50,15 +52,37 @@ Recommends: perl(GIS::Distance::Fast) >= 0.13
Requires: perl(namespace::clean) >= 0.24 Requires: perl(namespace::clean) >= 0.24
# Remove under-specified dependencies # Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Const::Fast|namespace::clean)\\)$ %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Const::Fast|Geo::Point|namespace::clean|Test2::V0)\\)$
%description %description
This Perl module calculates distances between geographic points on, at the This Perl module calculates distances between geographic points on, at the
moment, planet Earth. Various "FORMULAS" are available that provide different moment, planet Earth. Various "FORMULAS" are available that provide different
levels of accuracy versus speed. levels of accuracy versus speed.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(Test2::V0) >= 0.000094
%if %{with perl_GIS_Distance_enables_optional_test}
Requires: perl(Geo::Point) >= 0.95
%endif
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep %prep
%setup -q -n GIS-Distance-%{version} %setup -q -n GIS-Distance-%{version}
%if !%{with perl_GIS_Distance_enables_optional_test}
rm t/geo_point.t
perl -i -ne 'print $_ unless m{^t/geo_point\.t}' MANIFEST
%endif
# Normalize shebangs
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build %build
perl Build.PL --installdirs=vendor perl Build.PL --installdirs=vendor
@ -67,9 +91,19 @@ perl Build.PL --installdirs=vendor
%install %install
./Build install --destdir=%{buildroot} --create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot} %{_fixperms} %{buildroot}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
unset GEO_DISTANCE_PP GIS_DISTANCE_PP
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%check %check
unset GEO_DISTANCE_PP GIS_DISTANCE_PP unset GEO_DISTANCE_PP GIS_DISTANCE_PP
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
./Build test ./Build test
%files %files
@ -78,7 +112,53 @@ unset GEO_DISTANCE_PP GIS_DISTANCE_PP
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-8
- Perl 5.36 re-rebuild of bootstrapped packages
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-7
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jan 18 2022 Petr Pisar <ppisar@redhat.com> - 0.19-5
- Package the tests
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-3
- Perl 5.34 re-rebuild of bootstrapped packages
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.19-2
- Perl 5.34 rebuild
* Mon Feb 01 2021 Petr Pisar <ppisar@redhat.com> - 0.19-1
- 1.19 bump
- A license changed from "GPLv3+" to "GPL+ or Artistic"
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-8
- Perl 5.32 re-rebuild of bootstrapped packages
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.18-7
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Sep 20 2019 Petr Pisar <ppisar@redhat.com> - 0.18-5 * Fri Sep 20 2019 Petr Pisar <ppisar@redhat.com> - 0.18-5
- Disable optional tests because perl-Geo-Point will be retired (bug #1748923) - Disable optional tests because perl-Geo-Point will be retired (bug #1748923)

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -1 +1 @@
SHA512 (GIS-Distance-0.18.tar.gz) = 78bd535d3f73963a1b7a4815c9da8f8473f37eb0898faa1661a7f0e2abfdeb1d458496729c0c4613870bcc8129499622f34d4ea03a0933ad2bd6097a55804029 SHA512 (GIS-Distance-0.19.tar.gz) = fc6a65bf8bde06417f722ec7acf73649d9004ded16e6be8d021225a59d18d76c22ce7b70a69fdbcffca4d7d308163dd2e003bf3ac28687aaa20998044ab52e05

4
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,4 @@
summary: Upstream tests
component: perl-GIS-Distance
require: perl-GIS-Distance-tests
test: /usr/libexec/perl-GIS-Distance/test