Package libproj: Specfile

Name: libproj
Version: 4.8.0
Release: alt1

Packager: Vladislav Zavjalov <slazav@altlinux.org>

Summary: PROJ.4 - cartographic projections library
Group: Sciences/Geosciences
License: MIT
Url: http://trac.osgeo.org/proj/
Source0: http://download.osgeo.org/proj/proj-%version.tar.gz

BuildRequires: gcc-c++ libstdc++-devel

%description
This package contains the PROJ.4 cartographic projections library.

%package -n proj
Summary: PROJ.4 programs
Group: Sciences/Geosciences
Requires: %name = %version-%release
%description -n proj
This package contains PROJ.4 programs.

%package devel
Summary: PROJ.4 development files
Group: Sciences/Geosciences
Requires: %name = %version-%release
Obsoletes: proj-devel
Provides:  proj-devel
%description devel
This package contains PROJ.4 development files.

%if_enabled static
%package devel-static
Group: Sciences/Geosciences
Summary: PROJ.4 static library
Requires: %name-devel = %version-%release
%description devel-static
This package contains PROJ.4 static library.
%endif #enabled static

%package nad
Summary: PROJ.4 US and Canadian datum shift grids
Group: Sciences/Geosciences
Requires: %name = %version-%release
Obsoletes: proj-nad
Provides:  proj-nad
BuildArch: noarch
%description nad
This package contains additional US and Canadian datum shift grids for PROJ.4.

%prep
%setup

%build
# do autoreconf to avoid RPATH with standard paths
# see: http://lists.altlinux.org/pipermail/devel/2011-December/192727.html
%autoreconf
%configure
%make_build

%install
%makeinstall
install -p -m 0644 nad/pj_out27.dist nad/pj_out83.dist nad/td_out.dist %buildroot%_datadir/proj
install -p -m 0755 nad/test27 nad/test83 nad/testvarious %buildroot%_datadir/proj

%files
%doc NEWS AUTHORS COPYING README ChangeLog
%_libdir/*.so.*

%files -n proj
%_bindir/*
%_mandir/man1/*.1*

%files devel
%_mandir/man3/*.3*
%_includedir/*.h
%_libdir/*.so

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%files nad
%doc nad/README
%attr(0755,root,root) %_datadir/proj/test27
%attr(0755,root,root) %_datadir/proj/test83
%attr(0755,root,root) %_datadir/proj/testvarious
%_datadir/proj

%changelog
* Wed Apr 18 2012 Vladislav Zavjalov <slazav@altlinux.org> 4.8.0-alt1
- 4.8.0

* Tue Dec 20 2011 Vladislav Zavjalov <slazav@altlinux.org> 4.7.0-alt6
- spec: do autoreconf to avoid RPATH with standard paths

* Sat Mar 26 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.7.0-alt5.1
- Rebuilt for debuginfo

* Thu Oct 21 2010 Vladislav Zavjalov <slazav@altlinux.org> 4.7.0-alt5
- rebuild for soname set-versions

* Mon May 24 2010 Vladislav Zavjalov <slazav@altlinux.org> 4.7.0-alt4
- spec: libproj-{devel,nad} provides proj-{devel,nad} (closes #23527)

* Sat May 22 2010 Vladislav Zavjalov <slazav@altlinux.org> 4.7.0-alt3
- cleanup spec: fix some repocop warnings, closes #11468
  * move libraries into libproj-* subpackages
  * move static library to devel-static subpackage
  * make libproj-nad package to be noarch
  * replace make -> make_build in the build section
  * remove BuildRequires: libqt4-core
  * change Group to Sciences/Geosciences

* Wed Apr 07 2010 Vladislav Zavjalov <slazav@altlinux.org> 4.7.0-alt2
- merge with git.alt:/srpms/p/proj.git to include repocop changes

* Tue Apr 06 2010 Vladislav Zavjalov <slazav@altlinux.org> 4.7.0-alt1
- new version
- cleanup spec (rider@)
- reset LC_NUMERIC in pj_init() (bga@)

* Wed Dec 02 2009 Repocop Q. A. Robot <repocop@altlinux.org> 4.5.0-alt1.qa1
- NMU (by repocop): the following fixes applied:
  * post_ldconfig for proj
  * postun_ldconfig for proj
  * postclean-05-filetriggers for spec file

* Wed Jan 17 2007 Dmitri Kuzishchin <dim@altlinux.ru> 4.5.0-alt1
- Initial package.