rebuilt with libjxl 0.8.1; force c++17 as required by current abseil-cpp [release 3.6.2-2mamba;Sun Feb 12 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 22:39:06 +01:00
parent 40f3a1f14b
commit 709460c509

116
gdal.spec
View File

@ -1,5 +1,5 @@
Name: gdal
Version: 3.5.3
Version: 3.6.2
Release: 2mamba
Summary: A translator library for raster geospatial data formats
Group: System/Tools
@ -12,6 +12,7 @@ Patch0: gdal-1.11.0-json-c-0.12.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbsd-devel
BuildRequires: libcfitsio-devel
BuildRequires: libcryptopp-devel
BuildRequires: libcurl-devel
@ -26,23 +27,33 @@ BuildRequires: libjpeg-devel
BuildRequires: libjson-c-devel
BuildRequires: libkml-devel
BuildRequires: liblz4-devel
BuildRequires: liblzma-devel
BuildRequires: libmariadb-devel
BuildRequires: libminizip1-devel
BuildRequires: libodbc-devel
BuildRequires: libopenexr-devel
BuildRequires: libopenjpeg-devel
BuildRequires: libopenssl-devel
BuildRequires: libpcre2-devel
BuildRequires: libpng-devel
BuildRequires: libpodofo-devel
BuildRequires: libpoppler-devel
BuildRequires: libpostgresql-devel
BuildRequires: libproj-devel
BuildRequires: libpython310-devel
BuildRequires: libqhull-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: liburiparser-devel
BuildRequires: libwebp-devel
BuildRequires: libxerces-c-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
BuildRequires: mono-devel
## AUTOBUILDREQ-END
BuildRequires: libjxl-devel >= 0.8.1
BuildRequires: libqhull-devel >= 2015-1mamba
BuildRequires: libopenjpeg-devel >= 2.1.0-1mamba
BuildRequires: libproj-devel >= 9.1.1
@ -68,6 +79,30 @@ Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n python-%{name}
Group: System/Libraries/Python
Summary: Python bindings to %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}
This package contains the Python bindings to %{name}.
%package -n java-%{name}
Group: System/Libraries/Java
Summary: Java bindings to %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n java-%{name}
This package contains the Java bindings to %{name}.
%package mono
Group: System/Libraries
Summary: C-sharp bindings to %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description mono
This package contains the C-sharp bindings to %{name}.
%debug_package
%prep
@ -75,15 +110,18 @@ This package contains libraries and header files for developing applications tha
#%patch0 -p1
%build
%configure \
--datadir=%{_datadir}/gdal \
--includedir=%{_includedir}/gdal
%cmake -d build \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_FLAGS="%{optflags} -std=c++17" \
%ifarch %{ix86}
-DGDAL_ENABLE_DRIVER_FITS=OFF
%endif
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%makeinstall -C build
#mv %{buildroot}%{_prefix}/etc %{buildroot}/
@ -95,35 +133,9 @@ This package contains libraries and header files for developing applications tha
%files
%defattr(-,root,root)
#%{_sysconfdir}/bash_completion.d/gdal-bash-completion.sh
%{_bindir}/gdal_create
%{_bindir}/gdal_contour
%{_bindir}/gdal_grid
%{_bindir}/gdal_rasterize
%{_bindir}/gdal_translate
%{_bindir}/gdal_viewshed
%{_bindir}/gdaladdo
%{_bindir}/gdalbuildvrt
%{_bindir}/gdaldem
%{_bindir}/gdalenhance
%{_bindir}/gdalinfo
%{_bindir}/gdallocationinfo
%{_bindir}/gdalmanage
%{_bindir}/gdalmdiminfo
%{_bindir}/gdalmdimtranslate
#%{_bindir}/gdalserver
%{_bindir}/gdalsrsinfo
%{_bindir}/gdaltindex
%{_bindir}/gdaltransform
%{_bindir}/gdalwarp
%{_bindir}/gnmanalyse
%{_bindir}/gnmmanage
%{_bindir}/nearblack
%{_bindir}/ogr2ogr
%{_bindir}/ogrinfo
%{_bindir}/ogrlineref
%{_bindir}/ogrtindex
#%{_bindir}/testepsg
%{_bindir}/*
%{_datadir}/bash-completion/completions/*
%{_mandir}/man1/*.1*
%files -n lib%{name}
%defattr(-,root,root)
@ -135,14 +147,44 @@ This package contains libraries and header files for developing applications tha
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_bindir}/%{name}-config
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libgdal.a
%{_includedir}/*.h
#%{_libdir}/libgdal.a
%{_libdir}/libgdal.so
%{_libdir}/pkgconfig/gdal.pc
%dir %{_libdir}/cmake/gdal
%{_libdir}/cmake/gdal/GDAL*.cmake
#%doc NEWS
%ifnarch aarch64
%files -n python-%{name}
%defattr(-,root,root)
%dir %{python310_sitearch}/GDAL-%{version}-py*.egg-info
%{python310_sitearch}/GDAL-%{version}-py*.egg-info/*
%dir %{python310_sitearch}/osgeo
%{python310_sitearch}/osgeo/*
%dir %{python310_sitearch}/osgeo_utils
%{python310_sitearch}/osgeo_utils/*
%endif
%files mono
%defattr(-,root,root)
%{_datadir}/csharp/*
%files -n java-%{name}
%defattr(-,root,root)
%{_datadir}/java/gdal*
%{_datadir}/java/libgdalalljni.so
%changelog
* Sun Feb 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6.2-2mamba
- rebuilt with libjxl 0.8.1; force c++17 as required by current abseil-cpp
* Thu Jan 05 2023 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
- automatic version update by autodist
* Sat Dec 24 2022 Automatic Build System <autodist@mambasoft.it> 3.6.1-1mamba
- automatic version update by autodist
* Tue Dec 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.3-2mamba
- rebuilt with libproj 9.1.1