%define VER1 %(rpmquery --qf '%{VERSION}' fedora-release) Name: proj Summary: Cartographic reprojection library Version: 4.5.0 Release: 1.fc%{VER1} License: MIT URL: http://proj.maptools.org Source0: ftp://ftp.remotesensing.org/proj/proj-%{version}.tar.gz Source1: ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.tar.gz Prefix: %{_prefix} Group: Applications/GIS Packager: Brad Douglas BuildRoot: %{_tmppath}/%{name}-%{version}-root Prereq: /sbin/ldconfig %description The proj library provides cartographic reprojection support used in GIS software for converting shapes from one coordinate system to another. This package includes extra datums and grids not provided in other builds of proj. %package devel Summary: Development Libraries for the Proj reprojection library Group: Development/Libraries Requires: proj = %{version} %description devel The proj library provides cartographic reprojection support used in GIS software for converting shapes from one coordinate system to another. %prep %setup -b 0 cd nad tar -xzvf %{SOURCE1} %build %configure \ --enable-static \ --enable-shared \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --enable-incode-epsg make %install %makeinstall /bin/rm -f %{buildroot}%{_libdir}/*.la /bin/rm -f %{buildroot}%{_mandir}/*/*.gz %clean %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/* %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man3/* %dir %{_datadir}/proj %{_datadir}/proj/* %files devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.a %Changelog * Tue Jul 24 2007 Brad Douglas - Used builtin paths instead of hardcoding * Wed Oct 25 2006 Markus Neteler - PROJ 4.5.0 with extra daums/grids