]> git.pld-linux.org Git - SPECS.git/blob - perl-Geo-ShapeFile.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / perl-Geo-ShapeFile.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # do not perform "make test"
4 #
5 %define         pdir    Geo
6 %define         pnam    ShapeFile
7 Summary:        Geo::ShapeFile - Perl extension for handling ESRI GIS Shapefiles
8 Summary(pl.UTF-8):      Geo::ShapeFile - rozszerzenie Perla do obsługi plików w formacie ESRI Shapefile
9 Name:           perl-Geo-ShapeFile
10 Version:        2.60
11 Release:        1
12 License:        BSD
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Geo/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  25a95e2b9644b78a8d0810d1a5d3b13b
16 URL:            http://search.cpan.org/dist/Geo-ShapeFile/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl(rlib)
21 %endif
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 The Geo::ShapeFile module reads ESRI ShapeFiles containing GIS
27 mapping data, it has support for shp (shape), shx (shape index),
28 and dbf (data base) formats.
29
30 %description -l pl.UTF-8
31 Moduł Geo::ShapeFile czyta pliki w formacie ESRI ShapeFile
32 zawierające dane GIS. Rozpoznaje pliki shp (kształty),
33 shx (indeksy) i dbf (dane atrybutów).
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} pure_install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorlib}/Geo/*.pm
61 %{perl_vendorlib}/Geo/ShapeFile
62 %{_mandir}/man3/*
63 %{_examplesdir}/%{name}-%{version}
This page took 0.157741 seconds and 3 git commands to generate.