%bcond_without mingw %global data_version 1.14 Name: proj # Also check whether there is a new proj-data release when upgrading! Version: 9.3.0 Release: 1%{?dist} Summary: Cartographic projection software (PROJ) License: MIT URL: https://proj.org Source0: https://download.osgeo.org/%{name}/%{name}-%{version}.tar.gz Source1: https://download.osgeo.org/%{name}/%{name}-data-%{data_version}.tar.gz BuildRequires: cmake BuildRequires: curl-devel BuildRequires: gcc-c++ BuildRequires: gmock-devel BuildRequires: gtest-devel >= 1.8.0 BuildRequires: make BuildRequires: libtiff-devel BuildRequires: sqlite-devel %if %{with mingw} BuildRequires: mingw32-curl BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-libtiff BuildRequires: mingw32-sqlite BuildRequires: mingw64-curl BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-libtiff BuildRequires: mingw64-sqlite %endif Obsoletes: proj-datumgrid < 1.8-6.3.2.6 Requires: proj-data = %{version}-%{release} %description Proj and invproj perform 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 Requires: %{name}%{?_isa} = %{version}-%{release} Obsoletes: %{name}-static < 7.2.0 %description devel This package contains libproj and the appropriate header files and man pages. %package data Summary: Proj data files BuildArch: noarch %description data Proj arch independent data files. %package data-europe Summary: Compat package for old proj-datumgrid-europe BuildArch: noarch Obsoletes: proj-datumgrid-europe < 1.6-3 Provides: deprecated() Requires: proj-data-at Requires: proj-data-be Requires: proj-data-ch Requires: proj-data-de Requires: proj-data-dk Requires: proj-data-es Requires: proj-data-eur Requires: proj-data-fi Requires: proj-data-fo Requires: proj-data-fr Requires: proj-data-is Requires: proj-data-nl Requires: proj-data-pl Requires: proj-data-pt Requires: proj-data-se Requires: proj-data-si Requires: proj-data-sk Requires: proj-data-uk %description data-europe Compat package for old proj-datumgrid-europe. Please do not depend on this package, it will get removed! %files data-europe %package data-north-america Summary: Compat package for old proj-datumgrid-north-america BuildArch: noarch Obsoletes: proj-datumgrid-north-america < 1.4-3 Provides: deprecated() Requires: proj-data-ca Requires: proj-data-us %description data-north-america Compat package for old proj-datumgrid-north-america. Please do not depend on this package, it will get removed! %files data-north-america %package data-oceania Summary: Compat package for old proj-datumgrid-oceania BuildArch: noarch Obsoletes: proj-datumgrid-oceania < 1.2-3 Provides: deprecated() Requires: proj-data-au Requires: proj-data-nc Requires: proj-data-nz %description data-oceania Compat package for old proj-datumgrid-oceania. Please do not depend on this package, it will get removed! %files data-oceania %package data-world Summary: Compat package for old proj-datumgrid-world BuildArch: noarch Obsoletes: proj-datumgrid-world < 1.0-5 Provides: deprecated() Requires: proj-data-br Requires: proj-data-jp %description data-world Compat package for old proj-datumgrid-world. Please do not depend on this package, it will get removed! %files data-world # TODO: why the \ cruft in this section? %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: CC-BY and MIT and BSD and Public Domain \ Requires: proj-data = %{version}-%{release} \ 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 -e CH %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 no -n Norway %data_subpkg -c nc -n %{quote:New Caledonia} %data_subpkg -c nl -n Netherlands %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 si -n Slovenia %data_subpkg -c uk -n %{quote:United Kingdom} %data_subpkg -c us -n %{quote:United States} %data_subpkg -c za -n %{quote:South Africa} %if %{with mingw} %package -n mingw32-%{name} Summary: Cartographic projection software (PROJ.4) Obsoletes: mingw32-%{name}-static < 6.3.2-3 BuildArch: noarch %description -n mingw32-%{name} Proj and invproj perform respective forward and inverse transformation of cartographic data to or from cartesian data with a wide range of selectable projection functions. Proj docs: http://www.remotesensing.org/dl/new_docs/ %package -n mingw64-%{name} Summary: Cartographic projection software (PROJ.4) Obsoletes: mingw64-%{name}-static < 6.3.2-3 BuildArch: noarch %description -n mingw64-%{name} Proj and invproj perform respective forward and inverse transformation of cartographic data to or from cartesian data with a wide range of selectable projection functions. Proj docs: http://www.remotesensing.org/dl/new_docs/ %{?mingw_debug_package} %endif %prep %autosetup -p1 %build # Native build %cmake -DUSE_EXTERNAL_GTEST=ON %cmake_build %if %{with mingw} # MinGW build %mingw_cmake -DBUILD_TESTING=OFF %mingw_make_build %endif %install %cmake_install %if %{with mingw} %mingw_make_install %endif # Install data mkdir -p %{buildroot}%{_datadir}/%{name} tar -xf %{SOURCE1} --directory %{buildroot}%{_datadir}/%{name} %if %{with mingw} rm -rf %{buildroot}%{mingw32_docdir} rm -rf %{buildroot}%{mingw32_mandir} rm -rf %{buildroot}%{mingw64_docdir} rm -rf %{buildroot}%{mingw64_mandir} %mingw_debug_install_post %endif %check # nkg test requires internet connection %ctest -- -E nkg %files %{_bindir}/cct %{_bindir}/cs2cs %{_bindir}/geod %{_bindir}/gie %{_bindir}/invgeod %{_bindir}/invproj %{_bindir}/proj %{_bindir}/projinfo %{_bindir}/projsync %{_libdir}/libproj.so.25* %files devel %{_includedir}/*.h %{_includedir}/proj/ %{_libdir}/libproj.so %{_libdir}/cmake/proj/ %{_libdir}/cmake/proj4/ %{_libdir}/pkgconfig/%{name}.pc %files data %doc README.md %doc %{_docdir}/%{name}/AUTHORS %doc %{_docdir}/%{name}/NEWS %license %{_docdir}/%{name}/COPYING %dir %{_datadir}/%{name} %{_datadir}/%{name}/CH %{_datadir}/%{name}/GL27 %{_datadir}/%{name}/ITRF2000 %{_datadir}/%{name}/ITRF2008 %{_datadir}/%{name}/ITRF2014 %{_datadir}/%{name}/nad.lst %{_datadir}/%{name}/nad27 %{_datadir}/%{name}/nad83 %{_datadir}/%{name}/other.extra %{_datadir}/%{name}/proj.db %{_datadir}/%{name}/proj.ini %{_datadir}/%{name}/world %{_datadir}/%{name}/README.DATA %{_datadir}/%{name}/copyright_and_licenses.csv %{_datadir}/%{name}/deformation_model.schema.json %{_datadir}/%{name}/projjson.schema.json %{_datadir}/%{name}/triangulation.schema.json %{_mandir}/man1/*.1* %if %{with mingw} %files -n mingw32-%{name} %license COPYING %{mingw32_bindir}/libproj_9_3.dll %{mingw32_bindir}/*.exe %{mingw32_libdir}/libproj.dll.a %{mingw32_libdir}/cmake/proj/ %{mingw32_libdir}/cmake/proj4/ %{mingw32_libdir}/pkgconfig/proj.pc %{mingw32_includedir}/*.h %{mingw32_includedir}/proj/ %{mingw32_datadir}/%{name}/ %files -n mingw64-%{name} %license COPYING %{mingw64_bindir}/libproj_9_3.dll %{mingw64_bindir}/*.exe %{mingw64_libdir}/libproj.dll.a %{mingw64_libdir}/cmake/proj/ %{mingw64_libdir}/cmake/proj4/ %{mingw64_libdir}/pkgconfig/proj.pc %{mingw64_includedir}/*.h %{mingw64_includedir}/proj/ %{mingw64_datadir}/%{name}/ %endif %changelog * Sat Sep 02 2023 Sandro Mani - 9.3.0-1 - Update to 9.3.0 * Fri Jul 21 2023 Fedora Release Engineering - 9.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 02 2023 Sandro Mani - 9.2.1-1 - Update to 9.2.1 * Tue May 09 2023 Markus Neteler - 9.2.0-2 - SPDX migration * Sat Mar 04 2023 Sandro Mani - 9.2.0-1 - Update to 9.2.0 * Fri Jan 20 2023 Fedora Release Engineering - 9.1.1-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Dec 02 2022 Sandro Mani - 9.1.1-1 - Update to 9.1.1 * Sun Sep 04 2022 Sandro Mani - 9.1.0-1 - Update to 9.1.0 * Fri Jul 22 2022 Fedora Release Engineering - 9.0.1-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Sandro Mani - 9.0.1-1 - Update to 9.0.1 * Fri Mar 25 2022 Sandro Mani - 9.0.0-2 - Rebuild with mingw-gcc-12 * Thu Mar 03 2022 Sandro Mani - 9.0.0-1 - Update to 9.0.0 * Thu Feb 24 2022 Sandro Mani - 8.2.1-6 - Make mingw subpackages noarch * Thu Feb 24 2022 Sandro Mani - 8.2.1-5 - Add mingw subpackages * Fri Jan 21 2022 Fedora Release Engineering - 8.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 02 2022 Sandro Mani - 8.2.1-1 - Update to 8.2.1 * Fri Dec 10 2021 Sandro Mani - 8.2.0-2 - Split off -data subpackage (#2030978) * Mon Nov 01 2021 Sandro Mani - 8.2.0-1 - Update to 8.2.0 * Wed Sep 01 2021 Sandro Mani - 8.1.1-1 - Update to 8.1.1 * Fri Jul 23 2021 Fedora Release Engineering - 8.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jul 05 2021 Sandro Mani - 8.1.0-1 - Update to 8.1.0 - Update proj-data to 1.7 * Thu May 06 2021 Sandro Mani - 8.0.1-1 - Update to 8.0.1 * Sat Mar 06 2021 Sandro Mani - 8.0.0-1 - Update to 8.0.0 * Wed Jan 27 2021 Fedora Release Engineering - 7.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 03 2021 Sandro Mani - 7.2.1-1 - Update to 7.2.1 * Thu Nov 12 2020 Sandro Mani - 7.2.0-2 - Add Provides: deprecated() to compat packages * Thu Nov 05 2020 Sandro Mani - 7.2.0-1 - Update to 7.2.0 * Tue Jul 28 2020 Fedora Release Engineering - 6.3.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 12 2020 Markus Neteler - 6.3.2-2 - disable gtest external on EPEL8 due to compilation error * Sat May 02 2020 Sandro Mani - 6.3.2-1 - Update to 6.3.2 * Tue Mar 03 2020 Sandro Mani - 6.3.1-3 - Fix datumgrid require * Tue Mar 03 2020 Sandro Mani - 6.3.1-2 - Fix proj-datumgrid release missing %%{?dist} * Wed Feb 19 2020 Sandro Mani - 6.3.1-1 - Update to 6.3.1 * Thu Jan 30 2020 Fedora Release Engineering - 6.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Sep 1 2019 Devrim Gündüz - 6.2.0-1 - Update to 6.2.0 - Applied https://src.fedoraproject.org/rpms/proj/pull-request/6 by Orion Poplawski. * Fri Jul 26 2019 Fedora Release Engineering - 5.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 16 2019 Dan Horák - 5.2.0-4 - fix condition in cmake config * Tue Apr 16 2019 Dan Horák - 5.2.0-3 - install cmake config * Sat Apr 13 2019 Elliott Sales de Andrade - 5.2.0-2 - Rename proj-nad subpackage as proj-datumgrid - Fold proj-epsg package into main one - Enable full test suite during build - Various spec file cleanups * Mon Feb 04 2019 Devrim Gündüz - 5.2.0-1 - Update to 5.2.0 - Update to new datumgrid (1.8) * Sat Feb 02 2019 Fedora Release Engineering - 4.9.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 4.9.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 4.9.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 4.9.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.9.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 4.9.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 24 2017 Devrim Gündüz 4.9.3-1 - Update to 4.9.3 - Update to new datumgrid (1.6) - Fix rpmlint warnings - Cosmetic cleanup in spec file. * Thu Feb 04 2016 Fedora Release Engineering - 4.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 4 2016 Devrim Gündüz 4.9.2-1 - Update to 4.9.2, per bz # 1294604 - Update URLs. * Thu Jun 18 2015 Fedora Release Engineering - 4.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Mar 11 2015 Rex Dieter - 4.9.1-2 - track soname so bumps are not a suprise - -devel: include .pc file here (left copy in -nad too) - -static: Requires: -devel * Wed Mar 11 2015 Devrim Gündüz 4.9.1-1 - Update to 4.9.1 * Sun Aug 17 2014 Fedora Release Engineering - 4.8.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 4.8.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 4.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 4.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Aug 16 2012 Devrim Gündüz 4.8.0-3 - Install projects.h manually, per #830496. * Sat Jul 21 2012 Fedora Release Engineering - 4.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Apr 20 2012 Devrim Gündüz 4.8.0-1 - Update to 4.8.0, per bz #814851 * Sat Jan 14 2012 Fedora Release Engineering - 4.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 4.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Mar 18 2010 Balint Cristian - 4.7.0-3 - fix for bz#562671 * Thu Mar 18 2010 Balint Cristian - 4.7.0-2 - fix for bz#556091 * Fri Dec 4 2009 Devrim Gündüz 4.7.0-1 - Update to 4.7.0 - Update to new datumgrid (1.5) * Sun Jul 26 2009 Fedora Release Engineering - 4.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 4.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Sep 05 2008 Balint Cristian - 4.6.1-1 - new stable upstream - new nad datumgrids - drop debian license patch - change homepage URLs * Sun Apr 20 2008 Balint Cristian - 4.6.0-1 - new branch * Thu Mar 27 2008 Balint Cristian - 4.5.0-4 - BuildRequire: libtool * Thu Mar 27 2008 Balint Cristian - 4.5.0-3 - enable EPSG dataset to be packed GRASS really needs it - no more license issue over epsg dataset, proj didnt altered EPSG dataset in any way, so its fully EPSG license compliant - add support for tests during buildtime - disable hardcoded r-path from libs - fix shebag for nad scripts * Tue Feb 19 2008 Fedora Release Engineering - 4.5.0-2 - Autorebuild for GCC 4.3 * Tue Jan 2 2007 Shawn McCann - 4.5.0-1 - Updated to proj-4.5.0 and datumgrid-1.3 * Sat Sep 16 2006 Shawn McCann - 4.4.9-4 - Rebuild for Fedora Extras 6 * Sat Mar 4 2006 Shawn McCann - 4.4.9-3 - Rebuild for Fedora Extras 5 * Sat Mar 4 2006 Shawn McCann - 4.4.9-2 - Rebuild for Fedora Extras 5 * Thu Jul 7 2005 Shawn McCann - 4.4.9-1 - Updated to proj-4.4.9 and to fix bugzilla reports 150013 and 161726. Patch2 can be removed once this package is upgraded to the next release of the source. * Sun May 22 2005 Michael Schwendt - 4.4.8-6 - rebuilt * Thu Apr 7 2005 Michael Schwendt - 4.4.8-5 - rebuilt * Wed Dec 29 2004 David Kaplan - 0:4.4.8-4 - Added testvarious to nad distribution * Wed Dec 29 2004 David Kaplan - 0:4.4.8-0.fdr.3 - Added patch for test scripts so that they will work in installed rpm * Wed Dec 29 2004 David Kaplan - 0:4.4.8-0.fdr.2 - Fixed permissions on nad27 and nad83 - Included test27 and test83 in the nad rpm and made them executable * Fri Aug 13 2004 David M. Kaplan 0:4.4.8-0.fdr.1 - Updated to version 4.4.8 of library. - Changed license file so that it agrees with Debian version. - Updated web addresses of packages. * Wed Aug 11 2004 David M. Kaplan 0:4.4.7-0.fdr.3 - Removed the "Requires(post,postun)" * Tue Dec 30 2003 David M. Kaplan 0:4.4.7-0.fdr.2 - proj-nad now owns %%{_datadir}/%%{name} * Wed Oct 29 2003 Steve Arnold - Basically re-wrote previous spec file from scratch so as - to comply with both Fedora and RedHat 9 packaging guidelines. - Split files into proj, proj-devel, and proj-nad (additional grids) - and adjusted the EXE path in the test scripts.