2011-08-15 10:48:55 +02:00
|
|
|
#
|
2011-08-16 14:31:40 +02:00
|
|
|
# spec file for package proj
|
|
|
|
#
|
2021-01-07 09:30:03 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-08-16 14:31:40 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-09-19 13:14:21 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-15 10:48:55 +02:00
|
|
|
#
|
|
|
|
|
2012-03-14 10:04:29 +01:00
|
|
|
|
2021-11-09 11:45:09 +01:00
|
|
|
%define data_version 1.7
|
|
|
|
%define sover 22
|
2018-07-12 11:00:00 +02:00
|
|
|
%define libname lib%{name}%{sover}
|
2011-08-15 10:48:55 +02:00
|
|
|
Name: proj
|
2021-11-09 11:45:09 +01:00
|
|
|
Version: 8.1.1
|
2012-04-20 19:15:56 +02:00
|
|
|
Release: 0
|
2011-08-15 10:48:55 +02:00
|
|
|
Summary: Cartographic projection software
|
2012-04-20 19:15:56 +02:00
|
|
|
License: MIT
|
2011-08-16 14:31:40 +02:00
|
|
|
Group: Productivity/Scientific/Other
|
2019-06-12 16:05:56 +02:00
|
|
|
URL: https://proj.org/
|
2016-10-02 13:21:01 +02:00
|
|
|
Source0: http://download.osgeo.org/proj/%{name}-%{version}.tar.gz
|
2021-01-26 11:26:59 +01:00
|
|
|
Source1: https://download.osgeo.org/%{name}/%{name}-data-%{data_version}.tar.gz
|
2018-09-19 13:14:21 +02:00
|
|
|
BuildRequires: gcc-c++
|
2019-03-25 10:00:13 +01:00
|
|
|
BuildRequires: pkgconfig >= 0.9.0
|
2019-03-11 14:53:40 +01:00
|
|
|
BuildRequires: sqlite3
|
2021-01-07 09:30:03 +01:00
|
|
|
BuildRequires: pkgconfig(gtest)
|
2020-03-31 11:35:11 +02:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
2020-03-10 10:12:48 +01:00
|
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.11
|
|
|
|
Provides: libproj = %{version}
|
2018-07-12 11:00:00 +02:00
|
|
|
|
|
|
|
%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.
|
2011-08-16 14:31:40 +02:00
|
|
|
|
2015-03-08 21:27:30 +01:00
|
|
|
%package -n %{libname}
|
2011-08-16 14:31:40 +02:00
|
|
|
Summary: Cartographic projection software
|
2016-07-04 16:09:30 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-15 10:48:55 +02:00
|
|
|
|
2015-03-08 21:27:30 +01:00
|
|
|
%description -n %{libname}
|
2011-08-15 10:48:55 +02:00
|
|
|
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.
|
|
|
|
|
2018-07-12 11:00:00 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for PROJ
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Provides: libproj-devel = %{version}
|
|
|
|
Obsoletes: libproj-devel < %{version}
|
2011-08-15 10:48:55 +02:00
|
|
|
|
2018-07-12 11:00:00 +02:00
|
|
|
%description devel
|
2011-08-15 10:48:55 +02:00
|
|
|
This package contains libproj and the appropriate header files and man pages.
|
|
|
|
|
2021-01-26 11:26:59 +01:00
|
|
|
%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}
|
2021-11-09 11:45:09 +01:00
|
|
|
|
2021-01-26 11:26:59 +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
|
2021-11-09 11:45:09 +01:00
|
|
|
%data_subpkg -c no -n Norway
|
2021-01-26 11:26:59 +01:00
|
|
|
%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}
|
|
|
|
|
2011-08-15 10:48:55 +02:00
|
|
|
%prep
|
2018-07-12 11:00:00 +02:00
|
|
|
%setup -q
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%build
|
2015-03-08 21:27:30 +01:00
|
|
|
%configure \
|
2019-03-25 10:27:21 +01:00
|
|
|
--with-external-gtest \
|
2020-03-31 11:35:11 +02:00
|
|
|
--disable-static \
|
|
|
|
--enable-lto
|
2019-09-27 15:44:35 +02:00
|
|
|
%make_build
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%install
|
2016-07-04 16:09:30 +02:00
|
|
|
%make_install
|
2021-01-26 11:26:59 +01:00
|
|
|
tar -C %{buildroot}%{_datadir}/%{name} -xf %{SOURCE1}
|
2015-03-08 21:27:30 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
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}
|
2011-08-15 10:48:55 +02:00
|
|
|
|
2019-03-25 10:00:13 +01:00
|
|
|
%check
|
2019-03-25 10:27:21 +01:00
|
|
|
# Tests dont work on i586 and noone cares
|
|
|
|
%ifnarch %{ix86}
|
2020-03-31 11:35:11 +02:00
|
|
|
%make_build check
|
2019-03-25 10:27:21 +01:00
|
|
|
%endif
|
2019-03-25 10:00:13 +01:00
|
|
|
|
2015-03-08 21:27:30 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%files
|
2018-07-12 11:00:00 +02:00
|
|
|
%doc NEWS AUTHORS README ChangeLog
|
2011-08-15 10:48:55 +02:00
|
|
|
%defattr(0755,root,root)
|
2016-07-04 16:09:30 +02:00
|
|
|
%{_bindir}/cs2cs
|
2018-07-12 11:00:00 +02:00
|
|
|
%{_bindir}/cct
|
|
|
|
%{_bindir}/gie
|
2016-07-04 16:09:30 +02:00
|
|
|
%{_bindir}/geod
|
|
|
|
%{_bindir}/invgeod
|
|
|
|
%{_bindir}/invproj
|
|
|
|
%{_bindir}/proj
|
2020-03-31 11:35:11 +02:00
|
|
|
%{_bindir}/projsync
|
2019-03-11 14:53:40 +01:00
|
|
|
%{_bindir}/projinfo
|
2016-07-04 16:09:30 +02:00
|
|
|
%defattr(0644,root,root)
|
2018-07-12 11:00:00 +02:00
|
|
|
%{_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}
|
2019-03-11 14:53:40 +01:00
|
|
|
%{_mandir}/man1/projinfo.1%{?ext_man}
|
2020-03-31 11:35:11 +02:00
|
|
|
%{_mandir}/man1/projsync.1%{?ext_man}
|
2021-01-26 11:26:59 +01:00
|
|
|
%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
|
2016-07-04 16:09:30 +02:00
|
|
|
|
|
|
|
%files -n %{libname}
|
2018-07-12 11:00:00 +02:00
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/libproj.so.%{sover}*
|
2011-08-15 10:48:55 +02:00
|
|
|
|
2018-07-12 11:00:00 +02:00
|
|
|
%files devel
|
2011-08-15 10:48:55 +02:00
|
|
|
%{_includedir}/*.h
|
2019-03-11 14:53:40 +01:00
|
|
|
%{_includedir}/proj
|
2016-07-04 16:09:30 +02:00
|
|
|
%{_libdir}/libproj.so
|
2012-03-14 10:16:15 +01:00
|
|
|
%{_libdir}/pkgconfig/proj.pc
|
2011-08-15 10:48:55 +02:00
|
|
|
|
|
|
|
%changelog
|