proj/proj.spec
Martin Pluskal 174eaf126f Accepting request 1036440 from home:predivan:branches:Application:Geo
- * Update to 9.1.0:
  * Database: update to EPSG v10.074 (#3273)
  * Update ESRI objects to version 3.0.0 (#3257)
  * Add Svalbard geoid grid no_kv_arcgp-2006-sk to grid alternatives (#3292)
  * Added French grid fr_ign_RAF20 to grid alternatives (#3228)
  * PROJ pipeline generator: recognize opposite Helmert transformations using a different convention (#3265)
  * Introduce PROJ_DATA` environment variable to deprecate PROJ_LIB (#3253)
  * projinfo: fix crash on –list-crs when proj.db cannot be opened (#3290)
  * WKT parser: fix issue when parsing some WKT1 with Hotine_Oblique_Mercator_Azimuth_Center and ignoring rectified_grid_angle (#3280)
9.0.1 Release Notes
  * Update to EPSG 10.064 (#3208)
  * Add OGC:CRS84h (WGS 84 longitude-latitude-height) (#3155)
  * Increase MAX_ITER so Mollweide forward projection works near the poles (#3082)
  * Fix wrong results with SQLite 3.38.0 (#3091)
  * Fix issue when transforming from/to BoundCRS of 3D CRS with non-Greenwich prime meridian, created from WKT (#3098)
  * Fix issues with WKT of concatenated operations (#3105)
  * unitconvert: round to nearest date when converting to yyyymmdd (#3111)
  * Fix comparison of GeodeticRefrenceFrame vs DynamicGeodeticReferenceFrame (#3120)
  * Fix datum names when importing from PROJ4 crs strings (affects some transformations using geoidgrids) (#3129)
  * Deal with PARAMETER["EPSG code for Interpolation CRS",crs_code] (#3149)
  * ITRF2014: fix ITRF2014:ITRF88,ITRF94 and ITRF96 definitions (#3159)
  * WKT import: deal with Projected CRS that is a mix of WKT1:GDAL / WKT1:ESRI (#3189)
  * createOperations(): fix/improve result of ‘BD72 + Ostend height’ to ‘WGS84+EGM96 height’ (#3199)
  * WKT import: correctly deal with absence of Latitude_Of_Origin parameter in WKT1 ESRI with Stereographic projection (#3212)
  * PROJJSON parser: do not error out if a datum ensemble member is unknown in the database (#3223)
 9.0.0 Release Notes
  * Support for the autotools build system has been removed (#3027) See RFC7 for details: https://proj.org/community/rfc/rfc-7.html
  * ESRI projection engine db to version 12.9 (#2943)
  * EPSG v10.054 (#3051)
  * Vertical grid files for PL-geoid-2011, Polish geoid model (#2960)
  * Belgian geoid model hBG18 to grid alternatives (#3044)
  * Add new option to proj_create_crs_to_crs_from_pj() method to force +over on transformation operations (#2914)
  * Implement Geographic3D to Depth/Geog2D+Depth as used by ETRS89 to CD Norway depth (#3010)
  * Use external gtest by default when possible (#3035)
  * CMake: make BUILD_SHARED_LIBS=ON the default even on Windows (#3042)
  * Fix extremely long parsing time on hostile PROJ strings (#2968)
  * Better deal with importing strings like +init=epsg:XXXX +over (#3055)
  * Fix importing CRS definition with +proj=peirce_q and +shape different from square or diamond (#3057)
- Packaging changes:
  * Switch to cmake build
  * Add nlohmann_json-devel as BuildReq

OBS-URL: https://build.opensuse.org/request/show/1036440
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=63
2022-11-23 09:38:19 +00:00

192 lines
5.7 KiB
RPMSpec

#
# 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/
#
%define data_version 1.11
%define sover 25
%define libname lib%{name}%{sover}
Name: proj
Version: 9.1.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: https://download.osgeo.org/%{name}/%{name}-data-%{data_version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: sqlite3
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(nlohmann_json)
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}
%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 mx -n Mexico
%data_subpkg -c nc -n %{quote:New Caledonia}
%data_subpkg -c nl -n Netherlands
%data_subpkg -c no -n Norway
%data_subpkg -c nz -n %{quote:New Zealand}
%data_subpkg -c pl -n Poland
%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}
%data_subpkg -c za -n %{quote:South Africa}
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
tar -C %{buildroot}%{_datadir}/%{name} -xf %{SOURCE1}
find %{buildroot} -type f -name "*.la" -delete -print
# 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}
%ctest
%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
%dir %{_libdir}/cmake/proj/
%{_libdir}/cmake/proj/*.cmake
%dir %{_libdir}/cmake/proj4/
%{_libdir}/cmake/proj4/*.cmake
%{_libdir}/pkgconfig/proj.pc
%changelog