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