proj/proj.spec

186 lines
5.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package proj
#
# Copyright (c) 2022 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/
#
Accepting request 930016 from Application:Geo:Staging - Update to version 8.1.1 (data version: 1.7) * EPSG Database updated to version 10.028 (#2773) * Include algorithm header file to avoid build errors on Alpine Linux (#2769) * CMake: fix installation of executables on iOS (#2766) * Associate extents to transformations of CRS's that include GEOIDMODEL (#2769) * Logging: avoid some overhead when logging is not enabled (#2775) * ortho: remove useless and invalid log trace (#2777) * CMake: remove external nlohmann_json from INTERFACE_LINK_LIBRARIES target (#2781) * reateOperations(): fix SourceTargetCRSExtentUse::NONE mode (#2783) * GeoTIFF grid reading: perf improvements (#2788) * Conversion::createUTM(): avoid integer overflow (#2796) * Inverse laea ellipsoidal: return PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN when appropriates (#2801) * Make sure that proj_crs_promote_to_3D returns a derived CRS (#2806) * createOperations(): fix missing deg<-->rad conversion when transforming with a CRS that has a fallback-to-PROJ4-string behaviour and is a BoundCRS of a GeographicCRS (#2808) * WKT2 import/export: preserve PROJ.4 CRS extension string in REMARKS[] (#2812) * BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (#2815) * ConcatenatedOperation::fixStepsDirection(): fix bad chaining of steps when inverse map projection is involved in non-final step (#2819) - Update to version 8.1.0 (data version: 1.7) * Version 8.1.0 - Update to EPSG v10.027 (#2751) - Decrease DB size by using WITHOUT ROWID tables (#2730) (#2647) - Add a ANALYZE step during proj.db creation allowing for faster lookups (#2729) - Added a PROJ.VERSION metadata entry (#2646) - Added NGO48 (EPSG:4273) to ETRS89 (EPSG:4258) triangulation-based transformation (#2554) - Additions to the norwegian NKG2020 transformation (#2548) - ESRI projection database updated to version 12.8 (#2717) - Added proj_get_geoid_models_from_database() function that returns a list of geoid models available for a given CRS (#2681) - Added proj_get_celestial_body_list_from_database that returns a list of celestial bodies in the PROJ database (#2667) - Added proj_get_celestial_body_name() (#2662) - proj_trans/cs2cs: If two operations have the same accuracy, use the one that is contained within a larger one (#2750) - Share SQLite database handle among all contexts (#2738) - Add proj/internal/mutex.hpp as compat layer for mingw32 for std::mutex (#2736) - projsync: make it filter out files not intended for the current version (#2725) - Improvements related to DerivedVerticalCRS using Change Unit and Height/Depth reversal methods (#2696) - Update internal nlohmann/json to 3.9.1, and add a CMake option to be able to use external nlohmann/json (#2686) - createFromUserInput(): change name of CRS built from URN combined references to match the convention of EPSG projected CRS (#2677) - Parse compound id with two authorities, like ESRI:103668+EPSG:5703 (#2669) - Added projinfo option --list-crs (supports --area) (#2663) - Added support for hyperbolic Cassini-Soldner (#2637) - Added capability to get SQL statements to add custom CRS in the database (#2577) - Fix 'Please include winsock2.h before windows.h' warning with msys (#2692) - Minor changes to address lint in geodesic.c (#2752) - BoundCRS::identify(): avoid incompatible transformation for WKT1 / TOWGS84 export (#2747) - proj_create(): do not open proj.db if string is a PROJ string, even if proj_context_set_autoclose_database() has been set (#2735) - Fix export of transformation to PROJ string in a particular situation where CompoundCRS are involved (#2721) * Version 8.0.1 - Database: update to EPSG v10.018 (#2636) - Add transformations for CHGeo2004, Swiss geoid model (#2604) - Additions to the norwegian NKG2020 transformation (#2600) - pj_vlog(): fix buffer overflow in case of super lengthy error message (#2693) - Revert "proj_create_crs_to_crs_from_pj(): do not use PROJ_SPATIAL_CRITERION_PARTIAL_INTERSECTION if area is specified" (#2679) - UTM: error out when value of +zone= is not an integer (#2672) - getCRSInfoList(): make result order deterministic (by increasing auth_name, code) (#2661) - createOperation(): make sure no to discard deprecated operations if the replacement uses an unknow grid (#2623) - Fix build on Solaris 11.4 (#2621) - Add mapping of ESRI Equal_Area projection method to EPSG (#2612) - Fix incorrect EPGS extent code for EPSG:7789>EPSG:4976 NKG transformation (#2599) - fix wrong capitalization of CHENyx06_ETRS.gsb (#2597) - createOperations(): improve handling of vertical transforms when when compound CRSs are used (#2592) - CRS::promoteTo3D(): propagate the extent from the 2D CRS (#2589) - createFromCRSCodesWithIntermediates(): improve performance when there is no match (#2583) - Fix proj_clone() to work on 'meta' coordinate operation PJ* objects that can be returned by proj_create_crs_to_crs() (#2582) - add PROJ_COMPUTE_VERSION, PROJ_VERSION_NUMBER, PROJ_AT_LEAST_VERSION macros (#2581) - Make proj_lp_dist() and proj_geod() work on a PJ* CRS object (#2570) - Fix gcc 11 -Wnonnull compilation warnings (#2559) - Fix use of uninitialized memory in gie tests (#2558) - createOperations(): fix incorrect height transformation between 3D promoted RGF93 and CH1903+ (#2555) * Version 8.0.0 - With the release of PROJ 8 the proj_api.h API is finally removed. - Several improvements has been made to the command line utilities. - Public header file proj_api.h removed (#837) - Improved accuracy of the Mercator projection (#2397) - Copyright statement wording updated (#2417) - Allow cct to instantiate operations via object codes or names (#2419) - Allow @filename syntax in cct (#2420) - Added geocentric->topocentric conversion (+proj=topocentric) (#2444) - Update GeographicLib to version 1.51 (#2445) - Added option to allow export of Geographic/Projected 3D CRS in WKT1_GDAL (#2450) - Added --area and --bbox options in cs2cs to restrict candidate coordinate operations (#2466) - Added build time option to make PROJ_LIB env var tested last (#2476) - Added --authority switch in cs2cs to control where coordinate operations are looked for. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2477) - Error codes revised and exposed in the public API (#2487) - Added --accuracy options to projinfo. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2488) - Added proj_crs_is_derived() function to C API (#2496) - Enabled linking against static cURL on Windows (#2514) - Updated ESRI CRS database to 12.7 (10.8.1/2.6) (#2519) - Allow a WKT BoundCRS to use a PROJ string transformation (#2521) - Update to EPSG v10.015 (#2539) - Default log level set to PJ_LOG_ERROR (#2542) - CMake installs a pkg-config file proj.pc, where supported (#2547) - Do not restrict longitude to [-90;90] range in spherical transverse Mercator forward projection (#2471) - createOperations(): fix Compound to Geog3D/Projected3D CRS with non-metre ellipsoidal height (#2500) - Avoid error messages to be emitted log level is set to PJ_LOG_NONE (#2527) - Close database connection when autoclose set to True (#2532) OBS-URL: https://build.opensuse.org/request/show/930016 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=60
2021-11-09 11:45:09 +01:00
%define data_version 1.7
%define sover 22
%define libname lib%{name}%{sover}
Name: proj
Version: 8.2.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: https://download.osgeo.org/%{name}/%{name}-data-%{data_version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: sqlite3
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(sqlite3) >= 3.11
Provides: libproj = %{version}
%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.
%define data_subpkg(c:n:e:s:) \
%define countrycode %{-c:%{-c*}}%{!-c:%{error:Country code not defined}} \
%define countryname %{-n:%{-n*}}%{!-n:%{error:Country name not defined}} \
%define extrafile %{-e:%{_datadir}/%{name}/%{-e*}} \
%define wildcard %{!-s:%{_datadir}/%{name}/%{countrycode}_*} \
\
%package data-%{countrycode}\
Summary: %{countryname} datum grids for Proj\
BuildArch: noarch\
# See README.DATA \
License: BSD-2-Clause and CC0-1.0 and CC-BY-4.0 and CC-BY-SA-4.0 and SUSE-Public-Domain \
Supplements: proj\
\
%description data-%{countrycode}\
%{countryname} datum grids for Proj.\
\
%files data-%{countrycode}\
%{wildcard}\
%{extrafile}
Accepting request 930016 from Application:Geo:Staging - Update to version 8.1.1 (data version: 1.7) * EPSG Database updated to version 10.028 (#2773) * Include algorithm header file to avoid build errors on Alpine Linux (#2769) * CMake: fix installation of executables on iOS (#2766) * Associate extents to transformations of CRS's that include GEOIDMODEL (#2769) * Logging: avoid some overhead when logging is not enabled (#2775) * ortho: remove useless and invalid log trace (#2777) * CMake: remove external nlohmann_json from INTERFACE_LINK_LIBRARIES target (#2781) * reateOperations(): fix SourceTargetCRSExtentUse::NONE mode (#2783) * GeoTIFF grid reading: perf improvements (#2788) * Conversion::createUTM(): avoid integer overflow (#2796) * Inverse laea ellipsoidal: return PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN when appropriates (#2801) * Make sure that proj_crs_promote_to_3D returns a derived CRS (#2806) * createOperations(): fix missing deg<-->rad conversion when transforming with a CRS that has a fallback-to-PROJ4-string behaviour and is a BoundCRS of a GeographicCRS (#2808) * WKT2 import/export: preserve PROJ.4 CRS extension string in REMARKS[] (#2812) * BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (#2815) * ConcatenatedOperation::fixStepsDirection(): fix bad chaining of steps when inverse map projection is involved in non-final step (#2819) - Update to version 8.1.0 (data version: 1.7) * Version 8.1.0 - Update to EPSG v10.027 (#2751) - Decrease DB size by using WITHOUT ROWID tables (#2730) (#2647) - Add a ANALYZE step during proj.db creation allowing for faster lookups (#2729) - Added a PROJ.VERSION metadata entry (#2646) - Added NGO48 (EPSG:4273) to ETRS89 (EPSG:4258) triangulation-based transformation (#2554) - Additions to the norwegian NKG2020 transformation (#2548) - ESRI projection database updated to version 12.8 (#2717) - Added proj_get_geoid_models_from_database() function that returns a list of geoid models available for a given CRS (#2681) - Added proj_get_celestial_body_list_from_database that returns a list of celestial bodies in the PROJ database (#2667) - Added proj_get_celestial_body_name() (#2662) - proj_trans/cs2cs: If two operations have the same accuracy, use the one that is contained within a larger one (#2750) - Share SQLite database handle among all contexts (#2738) - Add proj/internal/mutex.hpp as compat layer for mingw32 for std::mutex (#2736) - projsync: make it filter out files not intended for the current version (#2725) - Improvements related to DerivedVerticalCRS using Change Unit and Height/Depth reversal methods (#2696) - Update internal nlohmann/json to 3.9.1, and add a CMake option to be able to use external nlohmann/json (#2686) - createFromUserInput(): change name of CRS built from URN combined references to match the convention of EPSG projected CRS (#2677) - Parse compound id with two authorities, like ESRI:103668+EPSG:5703 (#2669) - Added projinfo option --list-crs (supports --area) (#2663) - Added support for hyperbolic Cassini-Soldner (#2637) - Added capability to get SQL statements to add custom CRS in the database (#2577) - Fix 'Please include winsock2.h before windows.h' warning with msys (#2692) - Minor changes to address lint in geodesic.c (#2752) - BoundCRS::identify(): avoid incompatible transformation for WKT1 / TOWGS84 export (#2747) - proj_create(): do not open proj.db if string is a PROJ string, even if proj_context_set_autoclose_database() has been set (#2735) - Fix export of transformation to PROJ string in a particular situation where CompoundCRS are involved (#2721) * Version 8.0.1 - Database: update to EPSG v10.018 (#2636) - Add transformations for CHGeo2004, Swiss geoid model (#2604) - Additions to the norwegian NKG2020 transformation (#2600) - pj_vlog(): fix buffer overflow in case of super lengthy error message (#2693) - Revert "proj_create_crs_to_crs_from_pj(): do not use PROJ_SPATIAL_CRITERION_PARTIAL_INTERSECTION if area is specified" (#2679) - UTM: error out when value of +zone= is not an integer (#2672) - getCRSInfoList(): make result order deterministic (by increasing auth_name, code) (#2661) - createOperation(): make sure no to discard deprecated operations if the replacement uses an unknow grid (#2623) - Fix build on Solaris 11.4 (#2621) - Add mapping of ESRI Equal_Area projection method to EPSG (#2612) - Fix incorrect EPGS extent code for EPSG:7789>EPSG:4976 NKG transformation (#2599) - fix wrong capitalization of CHENyx06_ETRS.gsb (#2597) - createOperations(): improve handling of vertical transforms when when compound CRSs are used (#2592) - CRS::promoteTo3D(): propagate the extent from the 2D CRS (#2589) - createFromCRSCodesWithIntermediates(): improve performance when there is no match (#2583) - Fix proj_clone() to work on 'meta' coordinate operation PJ* objects that can be returned by proj_create_crs_to_crs() (#2582) - add PROJ_COMPUTE_VERSION, PROJ_VERSION_NUMBER, PROJ_AT_LEAST_VERSION macros (#2581) - Make proj_lp_dist() and proj_geod() work on a PJ* CRS object (#2570) - Fix gcc 11 -Wnonnull compilation warnings (#2559) - Fix use of uninitialized memory in gie tests (#2558) - createOperations(): fix incorrect height transformation between 3D promoted RGF93 and CH1903+ (#2555) * Version 8.0.0 - With the release of PROJ 8 the proj_api.h API is finally removed. - Several improvements has been made to the command line utilities. - Public header file proj_api.h removed (#837) - Improved accuracy of the Mercator projection (#2397) - Copyright statement wording updated (#2417) - Allow cct to instantiate operations via object codes or names (#2419) - Allow @filename syntax in cct (#2420) - Added geocentric->topocentric conversion (+proj=topocentric) (#2444) - Update GeographicLib to version 1.51 (#2445) - Added option to allow export of Geographic/Projected 3D CRS in WKT1_GDAL (#2450) - Added --area and --bbox options in cs2cs to restrict candidate coordinate operations (#2466) - Added build time option to make PROJ_LIB env var tested last (#2476) - Added --authority switch in cs2cs to control where coordinate operations are looked for. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2477) - Error codes revised and exposed in the public API (#2487) - Added --accuracy options to projinfo. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2488) - Added proj_crs_is_derived() function to C API (#2496) - Enabled linking against static cURL on Windows (#2514) - Updated ESRI CRS database to 12.7 (10.8.1/2.6) (#2519) - Allow a WKT BoundCRS to use a PROJ string transformation (#2521) - Update to EPSG v10.015 (#2539) - Default log level set to PJ_LOG_ERROR (#2542) - CMake installs a pkg-config file proj.pc, where supported (#2547) - Do not restrict longitude to [-90;90] range in spherical transverse Mercator forward projection (#2471) - createOperations(): fix Compound to Geog3D/Projected3D CRS with non-metre ellipsoidal height (#2500) - Avoid error messages to be emitted log level is set to PJ_LOG_NONE (#2527) - Close database connection when autoclose set to True (#2532) OBS-URL: https://build.opensuse.org/request/show/930016 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=60
2021-11-09 11:45:09 +01:00
%data_subpkg -c at -n Austria
%data_subpkg -c au -n Australia
%data_subpkg -c be -n Belgium
%data_subpkg -c br -n Brasil
%data_subpkg -c ca -n Canada
%data_subpkg -c ch -n Switzerland
%data_subpkg -c de -n Germany
%data_subpkg -c dk -n Denmark -e DK
%data_subpkg -c es -n Spain
%data_subpkg -c eur -n %{quote:Nordic + Baltic} -e NKG
%data_subpkg -c fi -n Finland
%data_subpkg -c fo -n %{quote:Faroe Island} -e FO -s 1
%data_subpkg -c fr -n France
%data_subpkg -c is -n Island -e ISL
%data_subpkg -c jp -n Japan
%data_subpkg -c nc -n %{quote:New Caledonia}
%data_subpkg -c nl -n Netherlands
Accepting request 930016 from Application:Geo:Staging - Update to version 8.1.1 (data version: 1.7) * EPSG Database updated to version 10.028 (#2773) * Include algorithm header file to avoid build errors on Alpine Linux (#2769) * CMake: fix installation of executables on iOS (#2766) * Associate extents to transformations of CRS's that include GEOIDMODEL (#2769) * Logging: avoid some overhead when logging is not enabled (#2775) * ortho: remove useless and invalid log trace (#2777) * CMake: remove external nlohmann_json from INTERFACE_LINK_LIBRARIES target (#2781) * reateOperations(): fix SourceTargetCRSExtentUse::NONE mode (#2783) * GeoTIFF grid reading: perf improvements (#2788) * Conversion::createUTM(): avoid integer overflow (#2796) * Inverse laea ellipsoidal: return PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN when appropriates (#2801) * Make sure that proj_crs_promote_to_3D returns a derived CRS (#2806) * createOperations(): fix missing deg<-->rad conversion when transforming with a CRS that has a fallback-to-PROJ4-string behaviour and is a BoundCRS of a GeographicCRS (#2808) * WKT2 import/export: preserve PROJ.4 CRS extension string in REMARKS[] (#2812) * BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (#2815) * ConcatenatedOperation::fixStepsDirection(): fix bad chaining of steps when inverse map projection is involved in non-final step (#2819) - Update to version 8.1.0 (data version: 1.7) * Version 8.1.0 - Update to EPSG v10.027 (#2751) - Decrease DB size by using WITHOUT ROWID tables (#2730) (#2647) - Add a ANALYZE step during proj.db creation allowing for faster lookups (#2729) - Added a PROJ.VERSION metadata entry (#2646) - Added NGO48 (EPSG:4273) to ETRS89 (EPSG:4258) triangulation-based transformation (#2554) - Additions to the norwegian NKG2020 transformation (#2548) - ESRI projection database updated to version 12.8 (#2717) - Added proj_get_geoid_models_from_database() function that returns a list of geoid models available for a given CRS (#2681) - Added proj_get_celestial_body_list_from_database that returns a list of celestial bodies in the PROJ database (#2667) - Added proj_get_celestial_body_name() (#2662) - proj_trans/cs2cs: If two operations have the same accuracy, use the one that is contained within a larger one (#2750) - Share SQLite database handle among all contexts (#2738) - Add proj/internal/mutex.hpp as compat layer for mingw32 for std::mutex (#2736) - projsync: make it filter out files not intended for the current version (#2725) - Improvements related to DerivedVerticalCRS using Change Unit and Height/Depth reversal methods (#2696) - Update internal nlohmann/json to 3.9.1, and add a CMake option to be able to use external nlohmann/json (#2686) - createFromUserInput(): change name of CRS built from URN combined references to match the convention of EPSG projected CRS (#2677) - Parse compound id with two authorities, like ESRI:103668+EPSG:5703 (#2669) - Added projinfo option --list-crs (supports --area) (#2663) - Added support for hyperbolic Cassini-Soldner (#2637) - Added capability to get SQL statements to add custom CRS in the database (#2577) - Fix 'Please include winsock2.h before windows.h' warning with msys (#2692) - Minor changes to address lint in geodesic.c (#2752) - BoundCRS::identify(): avoid incompatible transformation for WKT1 / TOWGS84 export (#2747) - proj_create(): do not open proj.db if string is a PROJ string, even if proj_context_set_autoclose_database() has been set (#2735) - Fix export of transformation to PROJ string in a particular situation where CompoundCRS are involved (#2721) * Version 8.0.1 - Database: update to EPSG v10.018 (#2636) - Add transformations for CHGeo2004, Swiss geoid model (#2604) - Additions to the norwegian NKG2020 transformation (#2600) - pj_vlog(): fix buffer overflow in case of super lengthy error message (#2693) - Revert "proj_create_crs_to_crs_from_pj(): do not use PROJ_SPATIAL_CRITERION_PARTIAL_INTERSECTION if area is specified" (#2679) - UTM: error out when value of +zone= is not an integer (#2672) - getCRSInfoList(): make result order deterministic (by increasing auth_name, code) (#2661) - createOperation(): make sure no to discard deprecated operations if the replacement uses an unknow grid (#2623) - Fix build on Solaris 11.4 (#2621) - Add mapping of ESRI Equal_Area projection method to EPSG (#2612) - Fix incorrect EPGS extent code for EPSG:7789>EPSG:4976 NKG transformation (#2599) - fix wrong capitalization of CHENyx06_ETRS.gsb (#2597) - createOperations(): improve handling of vertical transforms when when compound CRSs are used (#2592) - CRS::promoteTo3D(): propagate the extent from the 2D CRS (#2589) - createFromCRSCodesWithIntermediates(): improve performance when there is no match (#2583) - Fix proj_clone() to work on 'meta' coordinate operation PJ* objects that can be returned by proj_create_crs_to_crs() (#2582) - add PROJ_COMPUTE_VERSION, PROJ_VERSION_NUMBER, PROJ_AT_LEAST_VERSION macros (#2581) - Make proj_lp_dist() and proj_geod() work on a PJ* CRS object (#2570) - Fix gcc 11 -Wnonnull compilation warnings (#2559) - Fix use of uninitialized memory in gie tests (#2558) - createOperations(): fix incorrect height transformation between 3D promoted RGF93 and CH1903+ (#2555) * Version 8.0.0 - With the release of PROJ 8 the proj_api.h API is finally removed. - Several improvements has been made to the command line utilities. - Public header file proj_api.h removed (#837) - Improved accuracy of the Mercator projection (#2397) - Copyright statement wording updated (#2417) - Allow cct to instantiate operations via object codes or names (#2419) - Allow @filename syntax in cct (#2420) - Added geocentric->topocentric conversion (+proj=topocentric) (#2444) - Update GeographicLib to version 1.51 (#2445) - Added option to allow export of Geographic/Projected 3D CRS in WKT1_GDAL (#2450) - Added --area and --bbox options in cs2cs to restrict candidate coordinate operations (#2466) - Added build time option to make PROJ_LIB env var tested last (#2476) - Added --authority switch in cs2cs to control where coordinate operations are looked for. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2477) - Error codes revised and exposed in the public API (#2487) - Added --accuracy options to projinfo. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2488) - Added proj_crs_is_derived() function to C API (#2496) - Enabled linking against static cURL on Windows (#2514) - Updated ESRI CRS database to 12.7 (10.8.1/2.6) (#2519) - Allow a WKT BoundCRS to use a PROJ string transformation (#2521) - Update to EPSG v10.015 (#2539) - Default log level set to PJ_LOG_ERROR (#2542) - CMake installs a pkg-config file proj.pc, where supported (#2547) - Do not restrict longitude to [-90;90] range in spherical transverse Mercator forward projection (#2471) - createOperations(): fix Compound to Geog3D/Projected3D CRS with non-metre ellipsoidal height (#2500) - Avoid error messages to be emitted log level is set to PJ_LOG_NONE (#2527) - Close database connection when autoclose set to True (#2532) OBS-URL: https://build.opensuse.org/request/show/930016 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=60
2021-11-09 11:45:09 +01:00
%data_subpkg -c no -n Norway
%data_subpkg -c nz -n %{quote:New Zealand}
%data_subpkg -c pt -n Portugal
%data_subpkg -c se -n Sweden
%data_subpkg -c sk -n Slovakia
%data_subpkg -c uk -n %{quote:United Kingdom}
%data_subpkg -c us -n %{quote:United States}
%prep
%setup -q
%build
%configure \
--with-external-gtest \
--disable-static \
--enable-lto
%make_build
%install
%make_install
tar -C %{buildroot}%{_datadir}/%{name} -xf %{SOURCE1}
find %{buildroot} -type f -name "*.la" -delete -print
Accepting request 930016 from Application:Geo:Staging - Update to version 8.1.1 (data version: 1.7) * EPSG Database updated to version 10.028 (#2773) * Include algorithm header file to avoid build errors on Alpine Linux (#2769) * CMake: fix installation of executables on iOS (#2766) * Associate extents to transformations of CRS's that include GEOIDMODEL (#2769) * Logging: avoid some overhead when logging is not enabled (#2775) * ortho: remove useless and invalid log trace (#2777) * CMake: remove external nlohmann_json from INTERFACE_LINK_LIBRARIES target (#2781) * reateOperations(): fix SourceTargetCRSExtentUse::NONE mode (#2783) * GeoTIFF grid reading: perf improvements (#2788) * Conversion::createUTM(): avoid integer overflow (#2796) * Inverse laea ellipsoidal: return PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN when appropriates (#2801) * Make sure that proj_crs_promote_to_3D returns a derived CRS (#2806) * createOperations(): fix missing deg<-->rad conversion when transforming with a CRS that has a fallback-to-PROJ4-string behaviour and is a BoundCRS of a GeographicCRS (#2808) * WKT2 import/export: preserve PROJ.4 CRS extension string in REMARKS[] (#2812) * BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (#2815) * ConcatenatedOperation::fixStepsDirection(): fix bad chaining of steps when inverse map projection is involved in non-final step (#2819) - Update to version 8.1.0 (data version: 1.7) * Version 8.1.0 - Update to EPSG v10.027 (#2751) - Decrease DB size by using WITHOUT ROWID tables (#2730) (#2647) - Add a ANALYZE step during proj.db creation allowing for faster lookups (#2729) - Added a PROJ.VERSION metadata entry (#2646) - Added NGO48 (EPSG:4273) to ETRS89 (EPSG:4258) triangulation-based transformation (#2554) - Additions to the norwegian NKG2020 transformation (#2548) - ESRI projection database updated to version 12.8 (#2717) - Added proj_get_geoid_models_from_database() function that returns a list of geoid models available for a given CRS (#2681) - Added proj_get_celestial_body_list_from_database that returns a list of celestial bodies in the PROJ database (#2667) - Added proj_get_celestial_body_name() (#2662) - proj_trans/cs2cs: If two operations have the same accuracy, use the one that is contained within a larger one (#2750) - Share SQLite database handle among all contexts (#2738) - Add proj/internal/mutex.hpp as compat layer for mingw32 for std::mutex (#2736) - projsync: make it filter out files not intended for the current version (#2725) - Improvements related to DerivedVerticalCRS using Change Unit and Height/Depth reversal methods (#2696) - Update internal nlohmann/json to 3.9.1, and add a CMake option to be able to use external nlohmann/json (#2686) - createFromUserInput(): change name of CRS built from URN combined references to match the convention of EPSG projected CRS (#2677) - Parse compound id with two authorities, like ESRI:103668+EPSG:5703 (#2669) - Added projinfo option --list-crs (supports --area) (#2663) - Added support for hyperbolic Cassini-Soldner (#2637) - Added capability to get SQL statements to add custom CRS in the database (#2577) - Fix 'Please include winsock2.h before windows.h' warning with msys (#2692) - Minor changes to address lint in geodesic.c (#2752) - BoundCRS::identify(): avoid incompatible transformation for WKT1 / TOWGS84 export (#2747) - proj_create(): do not open proj.db if string is a PROJ string, even if proj_context_set_autoclose_database() has been set (#2735) - Fix export of transformation to PROJ string in a particular situation where CompoundCRS are involved (#2721) * Version 8.0.1 - Database: update to EPSG v10.018 (#2636) - Add transformations for CHGeo2004, Swiss geoid model (#2604) - Additions to the norwegian NKG2020 transformation (#2600) - pj_vlog(): fix buffer overflow in case of super lengthy error message (#2693) - Revert "proj_create_crs_to_crs_from_pj(): do not use PROJ_SPATIAL_CRITERION_PARTIAL_INTERSECTION if area is specified" (#2679) - UTM: error out when value of +zone= is not an integer (#2672) - getCRSInfoList(): make result order deterministic (by increasing auth_name, code) (#2661) - createOperation(): make sure no to discard deprecated operations if the replacement uses an unknow grid (#2623) - Fix build on Solaris 11.4 (#2621) - Add mapping of ESRI Equal_Area projection method to EPSG (#2612) - Fix incorrect EPGS extent code for EPSG:7789>EPSG:4976 NKG transformation (#2599) - fix wrong capitalization of CHENyx06_ETRS.gsb (#2597) - createOperations(): improve handling of vertical transforms when when compound CRSs are used (#2592) - CRS::promoteTo3D(): propagate the extent from the 2D CRS (#2589) - createFromCRSCodesWithIntermediates(): improve performance when there is no match (#2583) - Fix proj_clone() to work on 'meta' coordinate operation PJ* objects that can be returned by proj_create_crs_to_crs() (#2582) - add PROJ_COMPUTE_VERSION, PROJ_VERSION_NUMBER, PROJ_AT_LEAST_VERSION macros (#2581) - Make proj_lp_dist() and proj_geod() work on a PJ* CRS object (#2570) - Fix gcc 11 -Wnonnull compilation warnings (#2559) - Fix use of uninitialized memory in gie tests (#2558) - createOperations(): fix incorrect height transformation between 3D promoted RGF93 and CH1903+ (#2555) * Version 8.0.0 - With the release of PROJ 8 the proj_api.h API is finally removed. - Several improvements has been made to the command line utilities. - Public header file proj_api.h removed (#837) - Improved accuracy of the Mercator projection (#2397) - Copyright statement wording updated (#2417) - Allow cct to instantiate operations via object codes or names (#2419) - Allow @filename syntax in cct (#2420) - Added geocentric->topocentric conversion (+proj=topocentric) (#2444) - Update GeographicLib to version 1.51 (#2445) - Added option to allow export of Geographic/Projected 3D CRS in WKT1_GDAL (#2450) - Added --area and --bbox options in cs2cs to restrict candidate coordinate operations (#2466) - Added build time option to make PROJ_LIB env var tested last (#2476) - Added --authority switch in cs2cs to control where coordinate operations are looked for. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2477) - Error codes revised and exposed in the public API (#2487) - Added --accuracy options to projinfo. C API function proj_create_crs_to_crs_from_pj() updated accordingly (#2488) - Added proj_crs_is_derived() function to C API (#2496) - Enabled linking against static cURL on Windows (#2514) - Updated ESRI CRS database to 12.7 (10.8.1/2.6) (#2519) - Allow a WKT BoundCRS to use a PROJ string transformation (#2521) - Update to EPSG v10.015 (#2539) - Default log level set to PJ_LOG_ERROR (#2542) - CMake installs a pkg-config file proj.pc, where supported (#2547) - Do not restrict longitude to [-90;90] range in spherical transverse Mercator forward projection (#2471) - createOperations(): fix Compound to Geog3D/Projected3D CRS with non-metre ellipsoidal height (#2500) - Avoid error messages to be emitted log level is set to PJ_LOG_NONE (#2527) - Close database connection when autoclose set to True (#2532) OBS-URL: https://build.opensuse.org/request/show/930016 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=60
2021-11-09 11:45:09 +01:00
# It would be good to find out where these extra files
# come from:
rm -rf %{buildroot}%{_datadir}/doc/${name}
%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}
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/proj.ini
%{_datadir}/%{name}/copyright_and_licenses.csv
%{_datadir}/%{name}/CH
%{_datadir}/%{name}/GL27
%{_datadir}/%{name}/ITRF2000
%{_datadir}/%{name}/ITRF2008
%{_datadir}/%{name}/ITRF2014
%{_datadir}/%{name}/README.DATA
%{_datadir}/%{name}/deformation_model.schema.json
%{_datadir}/%{name}/nad.lst
%{_datadir}/%{name}/nad27
%{_datadir}/%{name}/nad83
%{_datadir}/%{name}/other.extra
%{_datadir}/%{name}/proj.db
%{_datadir}/%{name}/projjson.schema.json
%{_datadir}/%{name}/triangulation.schema.json
%{_datadir}/%{name}/world
%files -n %{libname}
%license COPYING
%{_libdir}/libproj.so.%{sover}*
%files devel
%{_includedir}/*.h
%{_includedir}/proj
%{_libdir}/libproj.so
%{_libdir}/pkgconfig/proj.pc
%changelog