# $Id: shapelib.spec,v 1.2 2000/03/29 09:22:10 jan Exp $ # This the rpm spec file for shapelib %define PACKAGE_NAME shapelib %define PACKAGE_VERSION 1.2.8 %define PACKAGE_URL http://gdal.velocet.ca/projects/shapelib/index.html Summary: API in "C" for Shapefile handling Name: %PACKAGE_NAME Version: %PACKAGE_VERSION Release: 1mdk Source: shapelib-1.2.8.tar.gz #Patch: Copyright: LGPL, MIT License; Copyright (c) 1999, Frank Warmerdam Group: Sciences/Geosciences #URL: %PACKAGE_URL Packager: Franck Martin Vendor: SOPAC Distribution: FreeGIS CD #Icon: #Conflicts: Requires: PROJ.4 >= 4.4.1 %description The Shapefile C Library provides the ability to write simple C programs for reading, writing and updating (to a limited extent) ESRI Shapefiles, and the associated attribute file (.dbf). %prep #set %setup -n shapelib-1.2.8 #%patch -p1 %build make (cd contrib ; make ) make lib %install install dbfadd dbfcreate dbfdump shpadd shpcreate shpdump shptest /usr/bin ( cd contrib ; install dbfcat dbfinfo shpcat shpcentrd shpdata shpdxf shpfix shpinfo shpwkb shpproj /usr/bin ) make lib_install #%files -f /usr/src/RPM/SPECS/%PACKAGE_NAME-%PACKAGE_VERSION.files %files /usr/bin/dbfadd /usr/bin/dbfcreate /usr/bin/dbfdump /usr/bin/shpadd /usr/bin/shpcreate /usr/bin/shpdump /usr/bin/shptest # the contrib files: /usr/bin/dbfcat /usr/bin/dbfinfo /usr/bin/shpcat /usr/bin/shpcentrd /usr/bin/shpdata /usr/bin/shpdxf /usr/bin/shpfix /usr/bin/shpinfo /usr/bin/shpwkb /usr/bin/shpproj # the library stuff: /usr/include/libshp/shapefil.h /usr/lib/libshp.a /usr/lib/libshp.la /usr/lib/libshp.so /usr/lib/libshp.so.1 /usr/lib/libshp.so.1.0.1 %doc LICENSE.LGPL %doc README.tree %doc dbf_api.html %doc shapelib.html %doc shp_api.html %doc contrib/doc/shpproj.txt