Name: perl-Geo-ShapeFile Version: 3.01 Release: 6%{?dist} Summary: Perl extension for handling ESRI GIS Shapefiles License: GPL+ or Artistic URL: https://metacpan.org/release/Geo-ShapeFile Source0: https://cpan.metacpan.org/modules/by-module/Geo/Geo-ShapeFile-%{version}.tar.gz # Remove rlib dependency from test suite as rlib is not available in Fedora and does not have a license Patch1: geo_shapefile_remove_rlib.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time BuildRequires: perl(autovivification) BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(if) BuildRequires: perl(IO::File) BuildRequires: perl(List::Util) BuildRequires: perl(Math::Trig) >= 1.04 BuildRequires: perl(overload) BuildRequires: perl(parent) BuildRequires: perl(POSIX) BuildRequires: perl(Scalar::Util) BuildRequires: perl(strict) BuildRequires: perl(Tree::R) BuildRequires: perl(warnings) # Tests BuildRequires: perl(FindBin) BuildRequires: perl(lib) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) BuildRequires: perl(utf8) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Filter modules bundled for tests %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Geo::ShapeFile::TestHelpers\\) %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} %description The Geo::ShapeFile module reads ESRI ShapeFiles containing GIS mapping data, it has support for shp (shape), shx (shape index), and dbf (data base) formats. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Geo-ShapeFile-%{version} %patch1 -p1 perl -pi -e 's|\r||g' lib/Geo/ShapeFile.pm lib/Geo/ShapeFile/Shape/Index.pm lib/Geo/ShapeFile/Shape.pm lib/Geo/ShapeFile/Point.pm perl -pi -e 's|\r||g' Changes README perl -pi -e 's|\r||g' eg/shpdump.pl perl -MConfig -pi -e 's|^#!.*/bin/perl\b|$Config{startperl}|' eg/shpdump.pl # Help file to recognise the Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %doc Changes README eg %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 22 2022 Fedora Release Engineering - 3.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 3.01-5 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 3.01-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 3.01-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 3.01-2 - Perl 5.34 rebuild * Thu Apr 15 2021 Jitka Plesnikova - 3.01-1 - 3.01 bump - Package tests * Wed Jan 27 2021 Fedora Release Engineering - 3.00-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 3.00-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 3.00-4 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 3.00-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 3.00-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 06 2019 Jitka Plesnikova - 3.00-1 - 3.00 bump * Fri May 31 2019 Jitka Plesnikova - 2.66-2 - Perl 5.30 rebuild * Thu Feb 28 2019 Jitka Plesnikova - 2.66-1 - 2.66 bump * Fri Feb 01 2019 Fedora Release Engineering - 2.64-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.64-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 2.64-5 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 2.64-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.64-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 2.64-2 - Perl 5.26 rebuild * Thu Apr 27 2017 Jitka Plesnikova - 2.64-1 - 2.64 bump * Sat Feb 11 2017 Fedora Release Engineering - 2.62-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 17 2017 Jitka Plesnikova - 2.62-1 - 2.62 bump * Sun May 15 2016 Jitka Plesnikova - 2.61-2 - Perl 5.24 rebuild * Wed Mar 23 2016 Jitka Plesnikova - 2.61-1 - 2.61 bump * Thu Feb 04 2016 Fedora Release Engineering - 2.60-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 2.60-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 2.60-3 - Perl 5.22 rebuild * Fri Aug 29 2014 Jitka Plesnikova - 2.60-2 - Perl 5.20 rebuild * Fri Jun 20 2014 David Dick - 2.60-1 - Initial release