proj/proj.spec

127 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package proj
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define gridver 1.8
%define sover 19
%define libname lib%{name}%{sover}
Name: proj
Accepting request 845970 from home:LPechacek:proj720 FTR, the self-test failure on PPC is not new. - Update to version 7.2.0: * Command line tools - Add multi-line PROJ string export capability, and use it by default in projinfo (unless --single-line is specified) (#2381) * Coordinate operations - +proj=col_urban projection, implementing a EPSG projection method used by a number of projected CRS in Colombia (#2395) - +proj=tinshift for triangulation-based transformations (#2344) - Added ellipsoidal formulation of +proj=ortho (#2361) * Database - Update to EPSG 10.003 and make code base robust to dealing with WKT CRS with DatumEnsemble (#2370) - Added Finland tinshift operations (#2392) - Added transformation from JGD2011 Geographic 3D to JGD2011 height using GSIGEO2011 (#2393) - Improve CompoundCRS identification and name morphing in VerticalCRS with ESRI WKT1 (#2386) - Added OGC:CRS27 and OGC:CRS83 CRS entries for NAD27 and NAD83 in longitude, latitude order (#2350) * API - Added temporal, engineering, and parametric datum PJ_TYPE enumerations (#2274) - Various improvements to context handling (#2329, #2331) - proj_create_vertical_crs_ex(): add a ACCURACY option to provide an explicit accuracy, or derive it from the grid name if it is known (#2342) - proj_crs_create_bound_crs_to_WGS84(): make it work on verticalCRS/compoundCRS such as EPSG:4326+5773 and EPSG:4326+3855 (#2365) - promoteTo3D(): add a remark with the original CRS identifier (#2369) - Added proj_context_clone (#2383) * Bug fixes - Avoid core dumps when copying contexts in certain scenarios (#2324) - proj_trans(): reset errno before attemptying a retry with a new coordinate operation (#2353) - PROJJSON schema corrected to allow prime meridians values with explicitly stating a unit (degrees assumed) (#2354) - Adjust createBoundCRSToWGS84IfPossible() and operation filtering (for POSGAR 2007 to WGS84 issues) (#2357) - createOperations(): several fixes affecting NAD83 -> NAD83(2011) (#2364) - WKT2:2019 import/export: handle DATUM (at top level object) with PRIMEM - WKT1_ESRI: fix import and export of CompoundCRS (#2389) OBS-URL: https://build.opensuse.org/request/show/845970 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=54
2020-11-04 13:34:25 +01:00
Version: 7.2.0
Release: 0
Summary: Cartographic projection software
License: MIT
Group: Productivity/Scientific/Other
URL: https://proj.org/
Source0: http://download.osgeo.org/proj/%{name}-%{version}.tar.gz
Source1: http://download.osgeo.org/proj/%{name}-datumgrid-%{gridver}.zip
BuildRequires: gcc-c++
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: sqlite3
BuildRequires: unzip
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(sqlite3) >= 3.11
Provides: libproj = %{version}
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(gtest)
%endif
%description
This package offers the commandline tools for performing respective
forward and inverse transformation of cartographic data to or from cartesian
data with a wide range of selectable projection functions.
%package -n %{libname}
Summary: Cartographic projection software
Group: Development/Libraries/C and C++
%description -n %{libname}
This package the library for performing respective
forward and inverse transformation of cartographic data to or from cartesian
data with a wide range of selectable projection functions.
%package devel
Summary: Development files for PROJ
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Provides: libproj-devel = %{version}
Obsoletes: libproj-devel < %{version}
%description devel
This package contains libproj and the appropriate header files and man pages.
%prep
%setup -q
cd data
unzip -o %{SOURCE1}
%build
%configure \
%if 0%{?suse_version} > 1500
--with-external-gtest \
%endif
--disable-static \
--enable-lto
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
# Tests dont work on i586 and noone cares
%ifnarch %{ix86}
%make_build check
%endif
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%doc NEWS AUTHORS README ChangeLog
%defattr(0755,root,root)
%{_bindir}/cs2cs
%{_bindir}/cct
%{_bindir}/gie
%{_bindir}/geod
%{_bindir}/invgeod
%{_bindir}/invproj
%{_bindir}/proj
%{_bindir}/projsync
%{_bindir}/projinfo
%defattr(0644,root,root)
%{_mandir}/man1/cs2cs.1%{?ext_man}
%{_mandir}/man1/geod.1%{?ext_man}
%{_mandir}/man1/proj.1%{?ext_man}
%{_mandir}/man1/cct.1%{?ext_man}
%{_mandir}/man1/gie.1%{?ext_man}
%{_mandir}/man1/projinfo.1%{?ext_man}
%{_mandir}/man1/projsync.1%{?ext_man}
%{_datadir}/proj/
%files -n %{libname}
%license COPYING
%{_libdir}/libproj.so.%{sover}*
%files devel
%{_includedir}/*.h
%{_includedir}/proj
%{_libdir}/libproj.so
%{_libdir}/pkgconfig/proj.pc
%changelog