-
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.
- Loading branch information
Showing
6 changed files
with
102 additions
and
12 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
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 4%{?dist} | ||
%global gdal_release 5%{?dist} | ||
|
||
Name: gibs-gdal | ||
Version: %{gdal_version} | ||
|
@@ -15,8 +15,8 @@ Source1: http://download.osgeo.org/gdal/%{gdal_version}/gdal-%{gdal_version}.tar | |
BuildRequires: make | ||
BuildRequires: libtool | ||
BuildRequires: pkgconfig | ||
BuildRequires: python36 | ||
BuildRequires: python36-devel | ||
BuildRequires: python3 | ||
BuildRequires: python3-devel | ||
BuildRequires: libpng-devel | ||
BuildRequires: libjpeg-devel | ||
BuildRequires: libtiff-devel | ||
|
@@ -30,8 +30,11 @@ BuildRequires: doxygen | |
BuildRequires: expat-devel | ||
BuildRequires: geos-devel | ||
BuildRequires: gcc-c++ | ||
BuildRequires: bzip2 | ||
BuildRequires: /usr/bin/pathfix.py | ||
BuildRequires: libstdc++-devel | ||
BuildRequires: bzip2 | ||
BuildRequires: python3-numpy | ||
BuildRequires: /usr/bin/pathfix.py | ||
BuildRequires: openjpeg2 | ||
|
||
Requires: proj | ||
|
||
|
@@ -147,6 +150,9 @@ sed -i 's@\/usr\/libexec\/platform-python -s@\/usr\/bin\/env python3@g' /usr/bin | |
%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 | ||
|
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 |
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