proj/proj.spec

125 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package proj
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 15
%define libname lib%{name}%{sover}
Name: proj
Accepting request 745525 from Application:Geo:Staging - Update to version 6.2.1: * Update the EPSG database to version 9.8.2 * Fixed erroneous spelling of "Potsdam" (#1573) * Calculate y-coordinate correctly in bertin1953 in all cases (#1579) * proj_create_crs_to_crs_from_pj(): make the PJ* arguments const PJ* (#1583) * PROJStringParser::createFromPROJString(): avoid potential infinite recursion (#1574) * Avoid core dump when setting ctx==NULL in functions proj_coordoperation_is_instantiable and * proj_coordoperation_has_ballpark_transformation (#1590) * createOperations(): fix conversion from/to PROJ.4 CRS strings with non-ISO-kosher options and +towgs84/+nadgrids (#1602) * proj_trans_generic(): properly set coordinate time to HUGE_VAL when no value is passed to the function (#1604) * Fix support for +proj=ob_tran +o_proj=lonlat/latlong/latlon instead of only only allowing +o_proj=longlat (#1601) * Improve backwards compatibility of vertical transforms (#1613) * Improve emulation of deprecated +init style initialization (#1614) * cs2cs: autopromote CRS to 3D when there's a mix of 2D and 3D (#1563) * Avoid divisions by zero in odd situations (#1620) * Avoid compile error on Solaris (#1639) * proj_create_crs_to_crs(): fix when there are only transformations with ballpark steps (#1643) * PROJ string CRS ingester: recognize more unit-less parameters, and handling of +key=string_value parameters (#1645) * Only call pkg-config in configure when necessary (#1652) * aeqd: for spherical forward path, go to higher precision ellipsoidal case when the point coordinates are super close to the origin (#1654) * proj_create_crs_to_crs(): remove elimination of Ballpark operations that caused transformation failures in some cases (#1665) * createOperations(): allow transforming from a compoundCRS of a bound verticalCRS to a 2D CRS (#1667) * Avoid segfaults in case of out-of-memory situations (#1679) * createOperations(): fix double vertical unit conversion from CompoundCRS to other CRS when the horizontal part of the projected CRS uses non-metre unit (#1683) * importFromWkt(): fix axis orientation for non-standard ESRI WKT (#1690) OBS-URL: https://build.opensuse.org/request/show/745525 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/proj?expand=0&rev=44
2019-11-06 17:34:14 +01:00
Version: 6.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: http://download.osgeo.org/proj/%{name}-datumgrid-%{gridver}.zip
BuildRequires: gcc-c++
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: sqlite3
BuildRequires: unzip
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(gtest)
%endif
BuildRequires: pkgconfig(sqlite3) >= 3.7
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.
%prep
%setup -q
cd data
unzip -o %{SOURCE1}
%build
%configure \
%if 0%{?suse_version} > 1500
--with-external-gtest \
%endif
--disable-static
%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 %{?_smp_mflags} 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}/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}
%{_datadir}/proj/
%files -n %{libname}
%license COPYING
%{_libdir}/libproj.so.%{sover}*
%files devel
%{_includedir}/*.h
%{_includedir}/proj
%{_includedir}/proj_json_streaming_writer.hpp
%{_libdir}/libproj.so
%{_libdir}/pkgconfig/proj.pc
%{_mandir}/man3/geodesic.3%{?ext_man}
%{_mandir}/man3/pj_init.3%{?ext_man}
%changelog