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