]> git.pld-linux.org Git - packages/perl-Geo-ShapeFile.git/commitdiff
- initial, version 2.60
authorAdam Osuchowski <adwol@pld-linux.org>
Sat, 18 Apr 2015 12:31:15 +0000 (14:31 +0200)
committerAdam Osuchowski <adwol@pld-linux.org>
Sat, 18 Apr 2015 12:31:15 +0000 (14:31 +0200)
perl-Geo-ShapeFile.spec [new file with mode: 0644]

diff --git a/perl-Geo-ShapeFile.spec b/perl-Geo-ShapeFile.spec
new file mode 100644 (file)
index 0000000..d77d7c8
--- /dev/null
@@ -0,0 +1,64 @@
+#
+# Conditional build:
+%bcond_with    tests           # do not perform "make test"
+#
+%define                pdir    Geo
+%define                pnam    ShapeFile
+%include       /usr/lib/rpm/macros.perl
+Summary:       Geo::ShapeFile - Perl extension for handling ESRI GIS Shapefiles
+Summary(pl.UTF-8):     Geo::ShapeFile - rozszerzenie Perla do obsługi plików w formacie ESRI Shapefile
+Name:          perl-Geo-ShapeFile
+Version:       2.60
+Release:       1
+License:       BSD
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Geo/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 25a95e2b9644b78a8d0810d1a5d3b13b
+URL:           http://search.cpan.org/dist/Geo-ShapeFile/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(rlib)
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%description -l pl.UTF-8
+Moduł Geo::ShapeFile czyta pliki w formacie ESRI ShapeFile
+zawierające dane GIS. Rozpoznaje pliki shp (kształty),
+shx (indeksy) i dbf (dane atrybutów).
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Geo/*.pm
+%{perl_vendorlib}/Geo/ShapeFile
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
This page took 0.094804 seconds and 4 git commands to generate.