File proj.spec of Package proj

# $Id: proj.spec 8199 2009-12-23 09:55:21Z yury $
# Authority: dag
# Upstream: PROJ.4 <proj$lists,maptools,org>

%define datumgrid_version 1.5

Summary: Cartographic projection software (PROJ.4)
Name:    proj
Version: 4.7.0
Release: 1%{?dist}
License: MIT
Group:   Applications/Engineering
Packager: Dag Wieers <>
Vendor: Dag Apt Repository,

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Proj and invproj perform respective forward and inverse transformation of
cartographic data to or from cartesian data with a wide range of selectable
projection functions.

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%package nad
Summary: US and Canadian datum shift grids for PROJ.4
Group: Applications/Engineering
Requires: %{name} = %{version}-%{release}

%description nad
This package contains additional US and Canadian datum shift grids.

unzip -d nad %{SOURCE1}

%configure \
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%{__install} -Dp -m0644 nad/pj_out27.dist %{buildroot}%{_datadir}/proj/pj_out27.dist
%{__install} -Dp -m0644 nad/pj_out83.dist %{buildroot}%{_datadir}/proj/pj_out83.dist
%{__install} -Dp -m0644 nad/td_out.dist %{buildroot}%{_datadir}/proj/td_out.dist
%{__install} -Dp -m0755 nad/test27 %{buildroot}%{_datadir}/proj/test27
%{__install} -Dp -m0755 nad/test83 %{buildroot}%{_datadir}/proj/test83
%{__install} -Dp -m0755 nad/testvarious %{buildroot}%{_datadir}/proj/testvarious

%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%defattr(-, root, root, 0755)
%doc %{_mandir}/man1/cs2cs.1*
%doc %{_mandir}/man1/geod.1*
%doc %{_mandir}/man1/nad2nad.1*
%doc %{_mandir}/man1/proj.1*

%files devel
%defattr(-, root, root, 0755)
%doc %{_mandir}/man3/pj_init.3*
%exclude %{_libdir}/

%files nad
%defattr(-, root, root, 0755)
%doc nad/README

* Wed Dec 23 2009 Yury V. Zaytsev <> - 4.7.0-1 - 8199/yury
- Minor updates.

* Tue Dec 22 2009 Nico Kadel-Garcia <> - 4.7.0-0
- Updated proj to 4.7.0.
- Updated source URLs.
- Updated proj-datumgrid to 1.5.

* Sun Aug 19 2007 Dag Wieers <> - 4.5.0-1 - +/
- Initial package. (using DAR)