Name: perl-Geo-ShapeFile Version: 2.60 Release: 1%{?dist} Summary: Perl extension for handling ESRI GIS Shapefiles License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Geo-ShapeFile/ Source0: http://www.cpan.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: perl BuildRequires: perl(autovivification) BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(IO::File) BuildRequires: perl(lib) BuildRequires: perl(List::Util) BuildRequires: perl(Math::Trig) BuildRequires: perl(overload) BuildRequires: perl(parent) BuildRequires: perl(POSIX) BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(Tree::R) BuildRequires: perl(warnings) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %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. %prep %setup -q -n Geo-ShapeFile-%{version} %patch1 -p1 sed -i 's|\r||' lib/Geo/ShapeFile.pm lib/Geo/ShapeFile/Shape/Index.pm lib/Geo/ShapeFile/Shape.pm lib/Geo/ShapeFile/Point.pm sed -i 's|\r||' Changes README sed -i 's|\r||' eg/shpdump.pl sed -i 's|#!/.*/bin/perl|#!/usr/bin/perl|' eg/shpdump.pl %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %doc Changes README eg %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Jun 20 2014 David Dick - 2.60-1 - Initial release