import gdal-3.4.3-3.el9

i9ce changed/i9ce/gdal-3.4.3-3.el9
MSVSphere Packaging Team 3 months ago
parent c4568c4c8b
commit 5072fdd1c0
Signed by: sys_gitsync
GPG Key ID: B2B0B9F29E528FE8

@ -31,6 +31,7 @@
%global spatialite "--with-spatialite" %global spatialite "--with-spatialite"
%endif %endif
%bcond_without java
%bcond_without python3 %bcond_without python3
# No ppc64 build for spatialite in EL6 # No ppc64 build for spatialite in EL6
@ -44,7 +45,7 @@
Name: gdal Name: gdal
Version: 3.4.3 Version: 3.4.3
Release: 2%{?dist} Release: 3%{?dist}
Summary: GIS file format library Summary: GIS file format library
License: MIT License: MIT
URL: http://www.gdal.org URL: http://www.gdal.org
@ -101,17 +102,8 @@ BuildRequires: ghostscript
BuildRequires: hdf-devel BuildRequires: hdf-devel
BuildRequires: hdf-static BuildRequires: hdf-static
BuildRequires: hdf5-devel BuildRequires: hdf5-devel
# No complete java yet in EL8
%if 0%{?rhel} < 8
BuildRequires: java-devel >= 1:1.6.0
%endif
BuildRequires: jasper-devel BuildRequires: jasper-devel
BuildRequires: jpackage-utils BuildRequires: jpackage-utils
# No complete java yet in EL8
%if 0%{?rhel} < 8
# For 'mvn_artifact' and 'mvn_install'
BuildRequires: javapackages-local
%endif
BuildRequires: json-c-devel BuildRequires: json-c-devel
BuildRequires: libgeotiff-devel BuildRequires: libgeotiff-devel
BuildRequires: libgta-devel BuildRequires: libgta-devel
@ -207,10 +199,12 @@ Provides: bundled(degrib) = 2.14
This package contains the GDAL file format library. This package contains the GDAL file format library.
# No complete java yet in EL8 %if %{with java}
%if 0%{?rhel} < 8
%package java %package java
Summary: Java modules for the GDAL file format library Summary: Java modules for the GDAL file format library
BuildRequires: java-devel >= 1:1.6.0
# For 'mvn_artifact' and 'mvn_install'
BuildRequires: javapackages-local
Requires: jpackage-utils Requires: jpackage-utils
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release}
@ -322,7 +316,7 @@ autoreconf -ifv
--with-hdf4 \ --with-hdf4 \
--with-hdf5 \ --with-hdf5 \
--with-jasper \ --with-jasper \
%if 0%{?rhel} < 8 %if %{with java}
--with-java \ --with-java \
%endif %endif
--with-jpeg \ --with-jpeg \
@ -361,8 +355,7 @@ make -C frmts/iso8211 all
make man make man
make docs make docs
# No complete java yet in EL8 %if %{with java}
%if 0%{?rhel} < 8
# Make Java module and documentation # Make Java module and documentation
pushd swig/java pushd swig/java
@ -418,8 +411,7 @@ rm %buildroot%_mandir/man1/{pct2rgb,rgb2pct}.1
find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \; find %{buildroot}%{perl_vendorarch} -name "*.so" -exec chmod 755 '{}' \;
find %{buildroot}%{perl_vendorarch} -name "*.pm" -exec chmod 644 '{}' \; find %{buildroot}%{perl_vendorarch} -name "*.pm" -exec chmod 644 '{}' \;
# No complete java yet in EL8 %if %{with java}
%if 0%{?rhel} < 8
# install Java plugin # install Java plugin
%mvn_install -J swig/java/java %mvn_install -J swig/java/java
@ -495,8 +487,7 @@ done
rm %{buildroot}%{_datadir}/%{name}/LICENSE.TXT rm %{buildroot}%{_datadir}/%{name}/LICENSE.TXT
# No complete java yet in EL8 %if %{with java}
%if 0%{?rhel} < 8
%check %check
%if %{run_tests} %if %{run_tests}
for i in -I/usr/lib/jvm/java/include{,/linux}; do for i in -I/usr/lib/jvm/java/include{,/linux}; do
@ -590,8 +581,7 @@ popd
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
# No complete java yet in EL8 %if %{with java}
%if 0%{?rhel} < 8
# Can I even have a separate Java package anymore? # Can I even have a separate Java package anymore?
%files java -f .mfiles %files java -f .mfiles
%doc swig/java/apps %doc swig/java/apps
@ -635,6 +625,9 @@ popd
#Or as before, using ldconfig #Or as before, using ldconfig
%changelog %changelog
* Tue Sep 24 2024 Orion Poplawski <orion@nwra.com> - 3.4.3-3
- Re-enable java
* Wed Jan 10 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.4.3-2 * Wed Jan 10 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 3.4.3-2
- Rebuilt for MSVSphere 9.3 - Rebuilt for MSVSphere 9.3

Loading…
Cancel
Save