commit 1584c1e54adcd5ce5c0bbffff73a8b6c4ce23d4a33c2a2ed255e12acf3bb4235 Author: Martin Pluskal Date: Mon Jul 29 08:55:04 2024 +0000 - Update to version 1.7.3: * CMake: fix typo in CMAKE_INSTALL_BINDIR install target that affects location of geotiff.dll - Changes for version 1.7.2: * GTIFGetDatumInfoEx(): handle dynamic datums * CMake: adopt GNUInstallDirs * CMake: export TIFF as a public dependency * Add XTIFFClientOpenExt() with re-entrant error callbacks * listgeo: add a -no_corners option to avoid printing corner * coordinates which might be PROJ version sensitive (refs #81) * Fix test failures with PROJ 9.1.1 and 9.3 * Remove trailing spaces from many files. * Localize variables and add const when possible in a number of files * geo_normalize.c: sprintf --> snprintf * Add missing includes * Fix -Werror=calloc-transposed-args with gcc 14 * FindPROJ.cmake: proj_experimental;h -> proj_experimental.h * CMake: add a BUILD_SHARED_LIBS option, and make it default to ON * autoconf/CMake: add generation of libgeotiff.pc * Remove INSTALL and install-sh autoconf-generated files OBS-URL: https://build.opensuse.org/package/show/Application:Geo/geotiff?expand=0&rev=34 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/geotiff.changes b/geotiff.changes new file mode 100644 index 0000000..136d0b4 --- /dev/null +++ b/geotiff.changes @@ -0,0 +1,260 @@ +------------------------------------------------------------------- +Mon Jul 29 08:50:05 UTC 2024 - Martin Pluskal + +- Update to version 1.7.3: + * CMake: fix typo in CMAKE_INSTALL_BINDIR install target that affects location of geotiff.dll +- Changes for version 1.7.2: + * GTIFGetDatumInfoEx(): handle dynamic datums + * CMake: adopt GNUInstallDirs + * CMake: export TIFF as a public dependency + * Add XTIFFClientOpenExt() with re-entrant error callbacks + * listgeo: add a -no_corners option to avoid printing corner + * coordinates which might be PROJ version sensitive (refs #81) + * Fix test failures with PROJ 9.1.1 and 9.3 + * Remove trailing spaces from many files. + * Localize variables and add const when possible in a number of files + * geo_normalize.c: sprintf --> snprintf + * Add missing includes + * Fix -Werror=calloc-transposed-args with gcc 14 + * FindPROJ.cmake: proj_experimental;h -> proj_experimental.h + * CMake: add a BUILD_SHARED_LIBS option, and make it default to ON + * autoconf/CMake: add generation of libgeotiff.pc + * Remove INSTALL and install-sh autoconf-generated files + +------------------------------------------------------------------- +Fri Mar 17 12:47:40 UTC 2023 - Martin Pluskal + +- Update spec file + +------------------------------------------------------------------- +Thu May 5 10:40:54 UTC 2022 - Christophe Giboudeaux + +- Update to 1.7.1 + * geotiff.h: more precise signature for GTIFDirectoryInfo() + * applygeo.c/geotifcp.c: use uint16/32_t instead of old libtiff + non _t custom types + * Bump CMake min to 3.0.0 and remove apparently unneeded + cmake_policy() declarations + * CMake: remove libjpeg and libz from linking of libgeotiff + itself. + * geo_config.h: prefix HAVE_xxx and restrict it to + GEOTIFF_HAVE_STRINGS_H + * GTIFPrintDefn(): avoid potential nullptr deref. (CID 1469240) + * CMake: use variable for installation subdirectories, and make + sure INTERFACE_INCLUDE_DIRECTORIES is exported + * ReadKey(): only allow reading a key with TIFFTagLocation=0 + that has a count of 1 to avoid reading an illegal address (and + crashing) when using GTIFKeyGet() or PrintKey() + * ReadKey(): add extra warning messages + * CMake: avoid INTERFACE_LINK_LIBRARIES vs + LINK_INTERFACE_LIBRARIES_DEBUG warning about TIFF + * CMake: Fix dllexport + * CMake: Revise exported cmake config wrt BUILD_SHARED_LIBS + * CMake: Revise exported cmake config wrt dependencies + * CMake: Respect _FIND_QUIETLY + +------------------------------------------------------------------- +Sat Jul 17 08:53:16 UTC 2021 - Dirk Müller + +- update to 1.7.0: + * Add CoordinateEpochGeoKey = 5120 of type DOUBLE to store coordinate epoch of + tie points / geotransform matrix for dynamic CRS. + * geo_normalize.h/c: rename variables to please codespell + * GTIFGetGCSInfoEx(): use proj_crs_get_datum_forced() for PROJ >= 8 to avoid + issues with datum ensembles + * GTIFGetGCSInfoEx(): remove dead code + * geo_normalize.c: follow-up to e06625c4e5bcce9f9217d1d5a43dc6af73156283 to + avoid look up of user-defined GeogGeodeticDatumGeoKey that cause PROJ warnings + +------------------------------------------------------------------- +Tue Aug 25 12:07:37 UTC 2020 - Dirk Mueller + +- update to 1.6.0: + * Add support for OGC GeoTIFF 1.1 + * Expose GTIFGetPCSInfoEx(), GTIFGetProjTRFInfoEx(), GTIFGetGCSInfoEx(), GTIFGetDatumInfoEx(), GTIFGetEllipsoidInfoEx(), GTIFGetPMInfoEx(), GTIFGetUOMLengthInfoEx() and GTIFGetUOMAngleInfoEx() so that users can specify their own PROJ context + * Add GTIFKeyGetASCII(), GTIFKeyGetSHORT() and GTIFKeyGetDOUBLE() as safer variants of GTIFKeyGet() with type checking + * autotools build: enable build in a separate tree from source (#37) (fixes #28) + * Use pkg-config for libtiff detection + * GTIFDecToDMS(): fix rounding issue (refs #16) + * geo_names.c: Silence warning in GetNameFromDatabase + * cpl_serv.h: add parenthesis in macro definitions + * Fix spelling errors + * geo_normalize.c: set UOMLength from GeogLinearUnits (for geocentic CRS) (GDAL #1595) + * testlistgeo: remove hardcoded path in test output (fixes https://github.com/OSGeo/libgeotiff/issues/16#issuecomment-502267406) + * Adapt test script for PROJ 6.2 EPSG database (fixes #22) + * Use unix EOL for cmake related files (fixes #14) + * configure.ac: drop dead code + * geo_normalize.c: avoid look up of user-defined geokeys that cause PROJ warnings (fixes GDAL #2321) + * listgeo: fix corner coordinates for images with RasterPixelIsPoint (#36) + +------------------------------------------------------------------- +Sun Jul 21 18:34:29 UTC 2019 - Dirk Stoecker + +- Require proj 6.0 also for devel package so it matches the + build requirements + +------------------------------------------------------------------- +Tue Apr 2 11:27:36 UTC 2019 - Bruno Friedmann + +- Update to version 1.5.1 (support gdal 2.4.1) +- Remove merged upstream patch f4956251.patch + +------------------------------------------------------------------- +Mon Mar 25 18:42:34 UTC 2019 - Bruno Friedmann + +- Add upstream patch f4956251.patch to make it useable with gdal + 2.4.1 +- Upstream issue https://github.com/OSGeo/libgeotiff/issues/14 + Simplify fixing file (all are utf-8 ok) just CRLF + +------------------------------------------------------------------- +Sun Mar 24 10:14:03 UTC 2019 - Bruno Friedmann + +- Update to version 1.5. + + Require PROJ >= 6 dependency + + Remove all CSV files used by geo_normalize API, libgeotiff now + relies on PROJ database for EPSG CRS definitions. + + geo_normalize.c: SetGTParmIds(): use + ProjStraightVertPoleLongGeoKey for CT_PolarStereographic + + geo_normalize.c: report StdParallel1 for Mercator_2SP when a + PCS code is used + + geo_normalize.c: fix support for Laborde Oblique Mercator + + listgeo: use PROJ database to display non-hardcoded values of + a number of keys +- Packaging + + Remove unneeded patches e5cf016.patch 7425a7f.patch + + Move URL & source to https + +------------------------------------------------------------------- +Fri Mar 15 19:58:50 UTC 2019 - Bruno Friedmann + +- Update to bugfix version 1.4.3 +- Add upstream patches (proj6 support and build fix) + + e5cf016.patch + + 7425a7f.patch +- Packaging: spec-cleaner minimal + +------------------------------------------------------------------- +Tue May 29 08:51:01 UTC 2018 - mpluskal@suse.com + +- Fix incorrect library (boo#1094802) + +------------------------------------------------------------------- +Sun Mar 12 12:42:35 UTC 2017 - mpluskal@suse.com + +- Small packaging cleanup +- Prepare version update for Leap and backports (boo#1029595) + +------------------------------------------------------------------- +Sat Oct 1 09:00:00 UTC 2016 - tzotsos@opensuse.org + +- Update to 1.4.2 + * update to EPSG v8.9 database + * cleanups and security fixes + +------------------------------------------------------------------- +Fri Sep 30 21:00:00 UTC 2016 - tzotsos@opensuse.org + +- Switched download link to OSGeo server + +------------------------------------------------------------------- +Tue Jul 5 20:35:48 UTC 2016 - toddrme2178@gmail.com + +- Fix Group tag. + +------------------------------------------------------------------- +Sat May 9 09:05:53 UTC 2015 - mpluskal@suse.com + +- Do not build or ship static libraries and .la files +- Remove useless conditions + +------------------------------------------------------------------- +Sat Jan 31 17:38:30 UTC 2015 - mpluskal@suse.com + +- Cleanup spec file using spec-cleaner +- Remove commented out patch +- Add build dependency on graphviz to enable images in + documentation +- Add build dependency on pkg-config to enable dependency generation + of .pc file +- Update to 1.4.1 + * CMake: Fix up SONAME and VERSION to better + match configure.ac + * csv/datum_shift_pref.csv: revert change in preferred datum shift + for Pulkovo 1942(58) related to ticket #1851 - not appropriate. + * Preparing 1.4.1 release. + * csv/datum_shift_pref.csv: Update Pulkova 1942(58) to use a + particular transformation (#52). + * bin/geotifcp.c: added B, L, C and M flags from tiffcp (#68)" + * geo_print.c: clarify that the buffer passed to read methods is only + guaranteed to be 1024 bytes long (#62). + * CMake: Support for INCODE build. If you need INCODE support, + with the definitions compiled into headers, use CMake as your + configuration/build platform. + * csv: Override three Brazilian datum shifts on behalf of Daniel + Miranda and the OSGeo Brazilian Chapter. + * csv: Upgrade to EPSG 8.5 + * INCODE: Adapt Ben Adler's patch in #66 to add INCODE support to the + CMake configuration + * geo_normalize.c: #59, better Mercator_2SP support + * geotifcp: Do not segfault when a TIFF file has WhitePoint set #65 + * geo_names.c: fix #67 -- add VerticalUnitsGeoKey + * add_esri_column.py: manually replace D_SIRGAS-Chile by D_Peru96 for GCS_Peru96. Likely an error in the FileGDB SDK db (#63) + * csv: Upgrade to EPSG 8.4 + * tiffcp: Add bigtiff output support with the -8 flag like tiffcp. Contributed by + Mohannad Al-Durgham (nwgeo.com). + * csv: Upgrade to EPSG 8.2 + * csv/datum_shift_pref.csv: Force OSGB 1936 preferred datum shift. + (http://trac.osgeo.org/gdal/ticket/4597) + +------------------------------------------------------------------- +Fri Jun 15 21:29:10 UTC 2012 - Angelos Tzotsos + +- Fix in pkgconfig file + +------------------------------------------------------------------- +Sat May 26 14:02:02 UTC 2012 - Angelos Tzotsos + +- Updated to 1.4.0 + +------------------------------------------------------------------- +Thu Mar 22 10:29:24 UTC 2012 - Michael Behrisch + +- added gcc build dependency +- removed unneeded data dir fix for non-Suse + +------------------------------------------------------------------- +Mon Apr 11 11:23:00 UTC 2011 - Rene van Paassen + +- removed now superfluous "%exclude %{_libdir}/debug" for i586 + +------------------------------------------------------------------- +Sat Apr 9 14:49:32 CEST 2011 - Hans-Peter Jansen + +- fix 64 bit issues, enable debug + +------------------------------------------------------------------- +Thu Jul 8 12:00:00 UTC 2010 - Dirk Stöcker 1.3.0 + +- Updated to 1.3.0 + +------------------------------------------------------------------- +Fri Jun 26 12:00:00 UTC 2009 - Dirk Stöcker 1.2.5 + +- Updated to 1.2.5 +- Using parts of spec file from PackMan for improved quality + +------------------------------------------------------------------- +Mon Jun 9 12:00:00 UTC 2008 - Dirk Stöcker 1.2.4 + +- SPEC file created for openSUSE build service + +------------------------------------------------------------------- +Sat Jul 14 10:48:52 UTC 2007 - judas_iscariote@shorewall.net + +- spec file cleanup + +------------------------------------------------------------------- +Mon Jun 19 12:00:00 UTC 2006 - Tim Fischer + +- SPEC file created for SUSE 10.1 diff --git a/geotiff.spec b/geotiff.spec new file mode 100644 index 0000000..4b5aa83 --- /dev/null +++ b/geotiff.spec @@ -0,0 +1,130 @@ +# +# spec file for package geotiff +# +# Copyright (c) 2024 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 sover 5 +%define libname lib%{name}%{sover} +Name: geotiff +Version: 1.7.3 +Release: 0 +Summary: Library to handle georeferenced TIFF +License: MIT AND SUSE-Public-Domain +URL: https://github.com/OSGeo/libgeotiff +Source0: https://github.com/OSGeo/libgeotiff/releases/download/%{version}/libgeotiff-%{version}.tar.gz +BuildRequires: gcc-c++ +BuildRequires: libjpeg-devel +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libtiff-4) +BuildRequires: pkgconfig(proj) >= 6.0 +BuildRequires: pkgconfig(zlib) + +%description +This library is designed to permit the extraction and parsing of the +"GeoTIFF" Key directories, as well as definition and installation of +GeoTIFF keys in new files. + +%package devel +Summary: GeoTIFF header files +Requires: %{libname} = %{version} +Requires: pkgconfig(libtiff-4) +Requires: pkgconfig(proj) >= 6.0 +Provides: lib%{name}-devel = %{version} + +%description devel +Header files for GeoTIFF library. + +This library is designed to permit the extraction and parsing of the +"GeoTIFF" Key directories, as well as definition and installation of +GeoTIFF keys in new files. + +%package -n %{libname} +Summary: Shared libraries for GeoTIFF library + +%description -n %{libname} +Shared libraries for GeoTIFF library. + +This library is designed to permit the extraction and parsing of the +"GeoTIFF" Key directories, as well as definition and installation of +GeoTIFF keys in new files. + +%prep +%autosetup -n lib%{name}-%{version} + +%build +export CFLAGS="%{optflags} $CFLAGS -g -fstack-protector -fno-strict-aliasing -D _BSD_SOURCE" +export CXXFLAGS="%{optflags} $CXXFLAGS -g -fstack-protector -fno-strict-aliasing" +%configure \ + --prefix=%{_prefix} \ + --includedir=%{_includedir}/lib%{name} \ + --with-proj \ + --with-jpeg \ + --with-zip \ + --with-pic \ + --enable-static=no \ + --enable-debug=yes +%make_build + +%install +%make_install + +# install pkgconfig file +cat > libgeotiff.pc <