-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.4.4-5' of github.com:nasa-gibs/mrf into develop
- Loading branch information
Showing
9 changed files
with
227 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if ! ls dist/gibs-gdal-*.el8.*.rpm >/dev/null 2>&1; then | ||
echo "No RPMs found in ./dist/" >&2 | ||
exit 1 | ||
fi | ||
|
||
TAG="$1" | ||
|
||
mkdir -p docker/el8/rpms | ||
cp dist/gibs-gdal-*.el8.*.rpm docker/el8/rpms/ | ||
rm -f docker/el8/rpms/gibs-gdal-*.src.rpm | ||
rm -f docker/el8/rpms/gibs-gdal-*debuginfo-*.rpm | ||
|
||
( | ||
set -e | ||
cd docker/el8 | ||
|
||
if [ -z "$TAG" ]; then | ||
docker build --no-cache . | ||
else | ||
docker build --no-cache -t "$TAG" . | ||
fi | ||
) | ||
|
||
rm -rf docker/el8/rpms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh | ||
|
||
set -evx | ||
|
||
DOCKER_UID=$(id -u) | ||
DOCKER_GID=$(id -g) | ||
mkdir -p dist | ||
cat > dist/build_rpms.sh <<EOS | ||
#!/bin/sh | ||
set -evx | ||
yum install -y epel-release | ||
dnf install -y 'dnf-command(config-manager)' | ||
dnf config-manager --set-enabled powertools | ||
dnf install -y python3 | ||
yum install -y \ | ||
ccache \ | ||
wget \ | ||
rpmdevtools \ | ||
mock \ | ||
rsync | ||
mkdir -p /build | ||
rsync -av --exclude .git /source/ /build/ | ||
chown -R root:root /build | ||
( | ||
set -evx | ||
cd /build | ||
dnf builddep -y deploy/gibs-gdal/gibs-gdal.spec | ||
make download gdal-rpm | ||
) | ||
cp /build/dist/gibs-gdal-*.rpm /dist/ | ||
EOS | ||
chmod +x dist/build_rpms.sh | ||
|
||
docker run \ | ||
--rm \ | ||
--volume "$(pwd):/source:ro" \ | ||
--volume "$(pwd)/dist:/dist" \ | ||
centos:8 /dist/build_rpms.sh | ||
|
||
rm dist/build_rpms.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if ! ls dist/gibs-gdal-*.el9.*.rpm >/dev/null 2>&1; then | ||
echo "No RPMs found in ./dist/" >&2 | ||
exit 1 | ||
fi | ||
|
||
TAG="$1" | ||
|
||
mkdir -p docker/el9/rpms | ||
cp dist/gibs-gdal-*.el9.*.rpm docker/el9/rpms/ | ||
rm -f docker/el9/rpms/gibs-gdal-*.src.rpm | ||
rm -f docker/el9/rpms/gibs-gdal-*debuginfo-*.rpm | ||
|
||
( | ||
set -e | ||
cd docker/el9 | ||
|
||
if [ -z "$TAG" ]; then | ||
docker build --no-cache . | ||
else | ||
docker build --no-cache -t "$TAG" . | ||
fi | ||
) | ||
|
||
rm -rf docker/el9/rpms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
|
||
set -evx | ||
|
||
DOCKER_UID=$(id -u) | ||
DOCKER_GID=$(id -g) | ||
mkdir -p dist | ||
cat > dist/build_rpms.sh <<EOS | ||
#!/bin/sh | ||
set -evx | ||
yum install -y epel-release | ||
dnf install -y 'dnf-command(config-manager)' | ||
dnf config-manager --set-enabled crb | ||
yum install -y \ | ||
ccache \ | ||
wget \ | ||
rpmdevtools \ | ||
mock \ | ||
rsync | ||
mkdir -p /build | ||
rsync -av --exclude .git /source/ /build/ | ||
chown -R root:root /build | ||
( | ||
set -evx | ||
cd /build | ||
dnf builddep -y deploy/gibs-gdal/gibs-gdal.spec | ||
make download gdal-rpm | ||
) | ||
cp /build/dist/gibs-gdal-*.rpm /dist/ | ||
EOS | ||
chmod +x dist/build_rpms.sh | ||
|
||
docker run \ | ||
--rm \ | ||
--volume "$(pwd):/source:ro" \ | ||
--volume "$(pwd)/dist:/dist" \ | ||
rockylinux:9.1 /dist/build_rpms.sh | ||
|
||
rm dist/build_rpms.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
%global gdal_version 2.4.4 | ||
%global gdal_release 1%{?dist} | ||
%global gdal_release 5%{?dist} | ||
|
||
Name: gibs-gdal | ||
Version: %{gdal_version} | ||
|
@@ -13,26 +13,32 @@ Source0: gibs-gdal-%{gdal_version}.tar.bz2 | |
Source1: http://download.osgeo.org/gdal/%{gdal_version}/gdal-%{gdal_version}.tar.gz | ||
|
||
BuildRequires: make | ||
BuildRequires: libtool | ||
BuildRequires: libtool | ||
BuildRequires: pkgconfig | ||
BuildRequires: python-devel | ||
BuildRequires: libpng-devel | ||
BuildRequires: libungif-devel | ||
BuildRequires: libjpeg-devel | ||
BuildRequires: libtiff-devel | ||
BuildRequires: jpackage-utils | ||
BuildRequires: python3 | ||
BuildRequires: python3-devel | ||
BuildRequires: libpng-devel | ||
BuildRequires: libjpeg-devel | ||
BuildRequires: libtiff-devel | ||
BuildRequires: jpackage-utils | ||
BuildRequires: jasper-devel | ||
BuildRequires: zlib-devel | ||
BuildRequires: curl-devel | ||
BuildRequires: chrpath | ||
BuildRequires: swig | ||
BuildRequires: zlib-devel | ||
BuildRequires: curl-devel | ||
BuildRequires: chrpath | ||
BuildRequires: swig | ||
BuildRequires: doxygen | ||
BuildRequires: expat-devel | ||
BuildRequires: numpy | ||
BuildRequires: geos-devel >= 3.3.2 | ||
Requires: gcc-c++ | ||
Requires: geos >= 3.3.2 | ||
|
||
BuildRequires: expat-devel | ||
BuildRequires: geos-devel | ||
BuildRequires: gcc-c++ | ||
BuildRequires: libstdc++-devel | ||
BuildRequires: bzip2 | ||
BuildRequires: python3-numpy | ||
BuildRequires: /usr/bin/pathfix.py | ||
BuildRequires: openjpeg2 | ||
|
||
Requires: proj | ||
|
||
|
||
%description | ||
The GDAL library provides support to handle multiple GIS file formats. | ||
|
||
|
@@ -86,11 +92,12 @@ rm -rf swig/python/samples | |
rm -rf %{buildroot}/usr/etc/bash_completion.d/gdal-bash-completion.sh | ||
%endif | ||
|
||
# Fix python shebangs | ||
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitearch} %{buildroot}%{_bindir}/*.py | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{_bindir}/* | ||
|
@@ -99,11 +106,12 @@ rm -rf %{buildroot} | |
%{_libdir}/*.so.* | ||
%{_datadir}/gdal | ||
%{_mandir}/man1/*.1* | ||
%{python_sitearch}/*.egg-info | ||
%{python_sitearch}/gdal* | ||
%{python_sitearch}/ogr* | ||
%{python_sitearch}/osr* | ||
%{python_sitearch}/osgeo | ||
%{python3_sitearch}/*.egg-info | ||
%{python3_sitearch}/gdal* | ||
%{python3_sitearch}/ogr* | ||
%{python3_sitearch}/osr* | ||
%{python3_sitearch}/osgeo | ||
%{python3_sitearch}/__pycache__/* | ||
%{_libdir}/pkgconfig/gdal.pc | ||
|
||
%files devel | ||
|
@@ -116,6 +124,7 @@ rm -rf %{buildroot} | |
|
||
%files apps | ||
%defattr(-,root,root,-) | ||
%{_bindir}/can | ||
%{_bindir}/mrf_insert | ||
%{_bindir}/mrf_clean.py | ||
%{_bindir}/mrf_join.py | ||
|
@@ -127,10 +136,33 @@ rm -rf %{buildroot} | |
|
||
%post | ||
/sbin/ldconfig | ||
# Fix python shebangs post install | ||
sed -i 's@\/usr\/libexec\/platform-python -s@\/usr\/bin\/env python3@g' /usr/bin/gdal*.py /usr/bin/gcps2wld.py /usr/bin/mkgraticule.py /usr/bin/pct2rgb.py /usr/bin/epsg_tr.py /usr/bin/gcps2vec.py /usr/bin/rgb2pct.py /usr/bin/esri2wkt.py /usr/bin/ogrmerge.py | ||
|
||
# Link /usr/lib64/libproj.so to /usr/lib64/libproj.so.## | ||
ln -s $(ls /usr/lib64/libproj.so.[0-9]?) /usr/lib64/libproj.so | ||
|
||
%post apps | ||
# Fix python shebangs post install apps | ||
sed -i 's@\/usr\/libexec\/platform-python -s@\/usr\/bin\/env python3@g' /usr/bin/mrf*.py /usr/bin/tiles2mrf.py | ||
|
||
|
||
%postun -p /sbin/ldconfig | ||
|
||
%changelog | ||
* Wed Jan 18 2023 Joe T. Roberts <[email protected]> - 2.4.4-5 | ||
- Support for el9 builds | ||
|
||
* Wed Jul 7 2021 Matthew Cechini <[email protected]> - 2.4.4-4 | ||
- Adding install requirement for proj.4 | ||
- Updating linking of /usr/lib64/libproj.so | ||
|
||
* Mon Apr 19 2021 Joe T. Roberts <[email protected]> - 2.4.4-3 | ||
- Support for CentOS 8 builds | ||
|
||
* Wed Dec 16 2020 Joe T. Roberts <[email protected]> - 2.4.4-2 | ||
- Use Python3 apps, include can, and moved gcc-c++ to BuildRequires | ||
|
||
* Thu Mar 19 2020 Joe T. Roberts <[email protected]> - 2.4.4-1 | ||
- Update to GDAL 2.4.4 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM centos:8 | ||
|
||
COPY rpms/gibs-gdal-*.el8.*.rpm /rpms/ | ||
|
||
RUN yum install -y epel-release python36 && yum clean all | ||
RUN yum install -y /rpms/gibs-gdal-*.el8.*.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM rockylinux:9.1 | ||
|
||
COPY rpms/gibs-gdal-*.el9.*.rpm /rpms/ | ||
|
||
RUN yum install -y epel-release && yum clean all | ||
RUN yum install -y /rpms/gibs-gdal-*.el9.*.rpm |