33ddbf044d
* Database: update to EPSG v9.8.9 * Make tests independent of proj-datumgrid * Add missing projection property tables * Avoid crash when running against SQLite3 binary built with -DSQLITE_OMIT_AUTOINIT * createOperations(): fix wrong pipeline generation with CRS that has +nadgrids= and +pm= * Fix bad copy&replace pattern on HEALPix and rHEALPix projection names * createUnitOfMeasure(): use full double resolution for the conversion factor * Update README with info on PROJ-data * utm/ups: make sure to set errno to PJD_ERR_ELLIPSOID_USE_REQUIRED if es==0 * data/Makefile.am: remove bashism * ProjectedCRS::identify(): tune it to better work with ESRI WKT representation of EPSG:2193 * Fix build with gcc 4.8.5 * Autotools/pkg-conf: Define datarootdir * cs2cs: don't require +to for '{source_crs} {target_crs} filename...' syntax * CMake: fix bug with find_package(PROJ) with macOS * ESRI WKT import / identification: special case for NAD_1983_HARN_StatePlane_Colorado_North_FIPS_0501 with Foot_US unit * EngineeringCRS: when exporting to WKT1_GDAL, output unit and axis * Use jtsk03-jtsk horizontal grid from CDN * CMake: prefer to use use PROJ_SOURCE_DIR and PROJ_BINARY_DIR * Fix wrong grids file name in esri.sql * Fix identification of projected CRS whose name is close but not strictly equal to a ESRI alias * Fix working of Helmert transform between the horizontal part of 2 compoundCRS * Database: fix registration of custom entries of grid_transformation_custom.sql for geoid grids * ESRI_WKT ingestion: make sure to identify to non-deprecated EPSG entry when possible * Make sure that importing a Projected 3D CRS from WKT:2019 keeps the base geographic CRS as 3D * createOperations(): improve results of compoundCRS to compoundCRS case * hgridshift/vgridshift: defer grid opening when grid has already been opened * Resolve a few shadowed declaration warnings * ProjectedCRS identification: deal with switched 1st/2nd std parallels for LCC_2SP OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=50
127 lines
3.4 KiB
RPMSpec
127 lines
3.4 KiB
RPMSpec
#
|
|
# 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
|
|
Version: 7.0.1
|
|
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
|