3 %bcond_with tests # perform "make test"
7 Summary: Geo::Shapelib - Perl extension for reading and writing shapefiles as defined by ESRI(r)
8 Summary(pl.UTF-8): Geo::Shapelib - rozszerzenie Perla o obsługę r/w plików ESRI(r) SHP
9 Name: perl-Geo-Shapelib
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Geo/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: ca0246d5b5c8950153a5c48eea0d2d2c
16 URL: http://search.cpan.org/dist/Geo-Shapelib/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-Tree-R
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This is a library for reading, creating, and writing shapefiles as
27 defined by ESRI(r) using Perl. The Perl code uses Frank Warmerdam's
28 Shapefile C Library (http://shapelib.maptools.org/). The library is
29 included in this distribution.
31 %description -l pl.UTF-8
32 Biblioteka ta umożliwia wczytywanie, tworzenie oraz zapisywanie tzw.
33 shapefiles zdefiniowanych przez ESRI(r) z poziomu Perla. Kod
34 wykorzystuje bibliotekę C Shapefile Franka Warmerdama
35 (http://shapelib.maptools.org/). Biblioteka ta jest załączona w
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/Geo/Shapelib.pm
62 %dir %{perl_vendorarch}/auto/Geo/Shapelib
63 %{perl_vendorarch}/auto/Geo/Shapelib/shputils
64 %attr(755,root,root) %{perl_vendorarch}/auto/Geo/Shapelib/Shapelib.so