From 9533022f9886bacaafbb81c9d91201e2c54ba0de Mon Sep 17 00:00:00 2001 From: Jade Abraham Date: Fri, 28 Jun 2024 10:28:06 -0700 Subject: [PATCH] add more multi-locale packages Signed-off-by: Jade Abraham --- .../debian11-gasnet-udp/Dockerfile.template | 26 ++++++++++ .../apt/debian11-gasnet-udp/control.template | 6 +++ .../ubuntu24-gasnet-udp/Dockerfile.template | 25 ++++++++++ .../apt/ubuntu24-gasnet-udp/control.template | 6 +++ .../ubuntu24-ofi-slurm/Dockerfile.template | 26 ++++++++++ .../apt/ubuntu24-ofi-slurm/control.template | 6 +++ .../rpm/fc37-gasnet-udp/Dockerfile.template | 25 ++++++++++ .../rpm/fc37-gasnet-udp/spec.template | 49 +++++++++++++++++++ .../rpm/fc38-gasnet-udp/Dockerfile.template | 25 ++++++++++ .../rpm/fc38-gasnet-udp/spec.template | 49 +++++++++++++++++++ .../rpm/fc39-gasnet-udp/Dockerfile.template | 25 ++++++++++ .../rpm/fc39-gasnet-udp/spec.template | 49 +++++++++++++++++++ .../rpm/fc40-gasnet-udp/Dockerfile.template | 25 ++++++++++ .../rpm/fc40-gasnet-udp/spec.template | 49 +++++++++++++++++++ 14 files changed, 391 insertions(+) create mode 100644 util/packaging/apt/debian11-gasnet-udp/Dockerfile.template create mode 100644 util/packaging/apt/debian11-gasnet-udp/control.template create mode 100644 util/packaging/apt/ubuntu24-gasnet-udp/Dockerfile.template create mode 100644 util/packaging/apt/ubuntu24-gasnet-udp/control.template create mode 100644 util/packaging/apt/ubuntu24-ofi-slurm/Dockerfile.template create mode 100644 util/packaging/apt/ubuntu24-ofi-slurm/control.template create mode 100644 util/packaging/rpm/fc37-gasnet-udp/Dockerfile.template create mode 100644 util/packaging/rpm/fc37-gasnet-udp/spec.template create mode 100644 util/packaging/rpm/fc38-gasnet-udp/Dockerfile.template create mode 100644 util/packaging/rpm/fc38-gasnet-udp/spec.template create mode 100644 util/packaging/rpm/fc39-gasnet-udp/Dockerfile.template create mode 100644 util/packaging/rpm/fc39-gasnet-udp/spec.template create mode 100644 util/packaging/rpm/fc40-gasnet-udp/Dockerfile.template create mode 100644 util/packaging/rpm/fc40-gasnet-udp/spec.template diff --git a/util/packaging/apt/debian11-gasnet-udp/Dockerfile.template b/util/packaging/apt/debian11-gasnet-udp/Dockerfile.template new file mode 100644 index 000000000000..c25c60a499e2 --- /dev/null +++ b/util/packaging/apt/debian11-gasnet-udp/Dockerfile.template @@ -0,0 +1,26 @@ +FROM debian:bullseye AS build + +@@{ARGUMENTS} + +@@{INJECT_BEFORE_DEPS} + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y \ + curl wget vim sudo gcc g++ m4 perl chrpath \ + python3 python3-dev python3-venv bash make mawk git pkg-config cmake \ + llvm-dev llvm clang libclang-dev libclang-cpp-dev libedit-dev + +@@{USER_CREATION} + +@@{GET_CHAPEL} + +@@{BUILD_DEFAULT} +@@{BUILD_GASNET_UDP} + +@@{INSTALL} + +@@{PACKAGE_SETUP} + +@@{PACKAGE_BUILD} + diff --git a/util/packaging/apt/debian11-gasnet-udp/control.template b/util/packaging/apt/debian11-gasnet-udp/control.template new file mode 100644 index 000000000000..cd2f48bbde63 --- /dev/null +++ b/util/packaging/apt/debian11-gasnet-udp/control.template @@ -0,0 +1,6 @@ +Package: @@{DEB_NAME} +Version: @@{CHAPEL_VERSION} +Maintainer: chapel-lang +Architecture: @@{TARGETARCH} +Description: Chapel Programming Language +Depends: git,gcc,llvm-dev,llvm,clang,libclang-dev,libclang-cpp-dev,python3,python3-dev,python3-venv,make diff --git a/util/packaging/apt/ubuntu24-gasnet-udp/Dockerfile.template b/util/packaging/apt/ubuntu24-gasnet-udp/Dockerfile.template new file mode 100644 index 000000000000..95a033df7698 --- /dev/null +++ b/util/packaging/apt/ubuntu24-gasnet-udp/Dockerfile.template @@ -0,0 +1,25 @@ +FROM ubuntu:24.04 AS build + +@@{ARGUMENTS} +ARG DEBIAN_FRONTEND=noninteractive +@@{INJECT_BEFORE_DEPS} + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y \ + curl wget vim sudo gcc g++ m4 perl chrpath \ + python3 python3-dev python3-venv bash make mawk git pkg-config cmake \ + llvm-dev llvm clang libclang-dev libclang-cpp-dev libedit-dev + +@@{USER_CREATION} + +@@{GET_CHAPEL} + +@@{BUILD_DEFAULT} +@@{BUILD_GASNET_UDP} + +@@{INSTALL} + +@@{PACKAGE_SETUP} + +@@{PACKAGE_BUILD} diff --git a/util/packaging/apt/ubuntu24-gasnet-udp/control.template b/util/packaging/apt/ubuntu24-gasnet-udp/control.template new file mode 100644 index 000000000000..cd2f48bbde63 --- /dev/null +++ b/util/packaging/apt/ubuntu24-gasnet-udp/control.template @@ -0,0 +1,6 @@ +Package: @@{DEB_NAME} +Version: @@{CHAPEL_VERSION} +Maintainer: chapel-lang +Architecture: @@{TARGETARCH} +Description: Chapel Programming Language +Depends: git,gcc,llvm-dev,llvm,clang,libclang-dev,libclang-cpp-dev,python3,python3-dev,python3-venv,make diff --git a/util/packaging/apt/ubuntu24-ofi-slurm/Dockerfile.template b/util/packaging/apt/ubuntu24-ofi-slurm/Dockerfile.template new file mode 100644 index 000000000000..2feccba5c4db --- /dev/null +++ b/util/packaging/apt/ubuntu24-ofi-slurm/Dockerfile.template @@ -0,0 +1,26 @@ +FROM ubuntu:24.04 AS build + +@@{ARGUMENTS} +ARG DEBIAN_FRONTEND=noninteractive +@@{INJECT_BEFORE_DEPS} + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y \ + curl wget vim sudo gcc g++ m4 perl chrpath \ + python3 python3-dev python3-venv bash make mawk git pkg-config cmake \ + llvm-dev llvm clang libclang-dev libclang-cpp-dev libedit-dev \ + libpmi2-0-dev libslurm-dev + +@@{USER_CREATION} + +@@{GET_CHAPEL} + +@@{BUILD_DEFAULT} +@@{BUILD_OFI_SLURM} + +@@{INSTALL} + +@@{PACKAGE_SETUP} + +@@{PACKAGE_BUILD} diff --git a/util/packaging/apt/ubuntu24-ofi-slurm/control.template b/util/packaging/apt/ubuntu24-ofi-slurm/control.template new file mode 100644 index 000000000000..dc56d49006f6 --- /dev/null +++ b/util/packaging/apt/ubuntu24-ofi-slurm/control.template @@ -0,0 +1,6 @@ +Package: @@{DEB_NAME} +Version: @@{CHAPEL_VERSION} +Maintainer: chapel-lang +Architecture: @@{TARGETARCH} +Description: Chapel Programming Language +Depends: git,gcc,llvm-dev,llvm,clang,libclang-dev,libclang-cpp-dev,python3,python3-dev,python3-venv,make,libpmi2-0-dev,libslurm-dev diff --git a/util/packaging/rpm/fc37-gasnet-udp/Dockerfile.template b/util/packaging/rpm/fc37-gasnet-udp/Dockerfile.template new file mode 100644 index 000000000000..c7a3313e976c --- /dev/null +++ b/util/packaging/rpm/fc37-gasnet-udp/Dockerfile.template @@ -0,0 +1,25 @@ +FROM fedora:37 AS build + +@@{ARGUMENTS} + +@@{INJECT_BEFORE_DEPS} + +RUN dnf upgrade -y && \ + dnf install -y \ + gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \ + which diffutils wget vim \ + llvm-devel clang clang-devel \ + rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath + +@@{USER_CREATION} + +@@{GET_CHAPEL} + +@@{BUILD_DEFAULT} +@@{BUILD_GASNET_UDP} + +@@{INSTALL} + +@@{PACKAGE_SETUP} + +@@{PACKAGE_BUILD} diff --git a/util/packaging/rpm/fc37-gasnet-udp/spec.template b/util/packaging/rpm/fc37-gasnet-udp/spec.template new file mode 100644 index 000000000000..3f490cf8a1c8 --- /dev/null +++ b/util/packaging/rpm/fc37-gasnet-udp/spec.template @@ -0,0 +1,49 @@ +Name: @@{BASENAME} +Version: @@{CHAPEL_VERSION} +Release: @@{PACKAGE_VERSION}%{?dist} +ExclusiveArch: %{_arch} +Summary: Chapel + +License: Apache-2.0 +Source0: chapel-%{version}.tar.gz + +Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make + +%description +Chapel Programming Language + +%global debug_package %{nil} + +%prep +%setup -q -n chapel-%{version} + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/%{_prefix} +mkdir -p %{buildroot}/%{_prefix}/bin +mkdir -p %{buildroot}/%{_prefix}/lib +mkdir -p %{buildroot}/%{_prefix}/share + +# Binaries +cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl +cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc +cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason +cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck +cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server +# Libraries +cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel +# CHPL_HOME +cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel + +%files +%{_prefix}/bin/chpl +%{_prefix}/bin/chpldoc +%{_prefix}/bin/mason +%{_prefix}/bin/chplcheck +%{_prefix}/bin/chpl-language-server +%{_prefix}/lib/chapel/* +%{_prefix}/share/chapel/* + +%changelog diff --git a/util/packaging/rpm/fc38-gasnet-udp/Dockerfile.template b/util/packaging/rpm/fc38-gasnet-udp/Dockerfile.template new file mode 100644 index 000000000000..67f00f9893b1 --- /dev/null +++ b/util/packaging/rpm/fc38-gasnet-udp/Dockerfile.template @@ -0,0 +1,25 @@ +FROM fedora:38 AS build + +@@{ARGUMENTS} + +@@{INJECT_BEFORE_DEPS} + +RUN dnf upgrade -y && \ + dnf install -y \ + gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \ + which diffutils wget vim \ + llvm-devel clang clang-devel \ + rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath + +@@{USER_CREATION} + +@@{GET_CHAPEL} + +@@{BUILD_DEFAULT} +@@{BUILD_GASNET_UDP} + +@@{INSTALL} + +@@{PACKAGE_SETUP} + +@@{PACKAGE_BUILD} diff --git a/util/packaging/rpm/fc38-gasnet-udp/spec.template b/util/packaging/rpm/fc38-gasnet-udp/spec.template new file mode 100644 index 000000000000..3f490cf8a1c8 --- /dev/null +++ b/util/packaging/rpm/fc38-gasnet-udp/spec.template @@ -0,0 +1,49 @@ +Name: @@{BASENAME} +Version: @@{CHAPEL_VERSION} +Release: @@{PACKAGE_VERSION}%{?dist} +ExclusiveArch: %{_arch} +Summary: Chapel + +License: Apache-2.0 +Source0: chapel-%{version}.tar.gz + +Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make + +%description +Chapel Programming Language + +%global debug_package %{nil} + +%prep +%setup -q -n chapel-%{version} + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/%{_prefix} +mkdir -p %{buildroot}/%{_prefix}/bin +mkdir -p %{buildroot}/%{_prefix}/lib +mkdir -p %{buildroot}/%{_prefix}/share + +# Binaries +cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl +cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc +cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason +cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck +cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server +# Libraries +cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel +# CHPL_HOME +cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel + +%files +%{_prefix}/bin/chpl +%{_prefix}/bin/chpldoc +%{_prefix}/bin/mason +%{_prefix}/bin/chplcheck +%{_prefix}/bin/chpl-language-server +%{_prefix}/lib/chapel/* +%{_prefix}/share/chapel/* + +%changelog diff --git a/util/packaging/rpm/fc39-gasnet-udp/Dockerfile.template b/util/packaging/rpm/fc39-gasnet-udp/Dockerfile.template new file mode 100644 index 000000000000..2ceb413771a2 --- /dev/null +++ b/util/packaging/rpm/fc39-gasnet-udp/Dockerfile.template @@ -0,0 +1,25 @@ +FROM fedora:39 AS build + +@@{ARGUMENTS} + +@@{INJECT_BEFORE_DEPS} + +RUN dnf upgrade -y && \ + dnf install -y \ + gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \ + which diffutils wget vim \ + llvm-devel clang clang-devel \ + rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath + +@@{USER_CREATION} + +@@{GET_CHAPEL} + +@@{BUILD_DEFAULT} +@@{BUILD_GASNET_UDP} + +@@{INSTALL} + +@@{PACKAGE_SETUP} + +@@{PACKAGE_BUILD} diff --git a/util/packaging/rpm/fc39-gasnet-udp/spec.template b/util/packaging/rpm/fc39-gasnet-udp/spec.template new file mode 100644 index 000000000000..3f490cf8a1c8 --- /dev/null +++ b/util/packaging/rpm/fc39-gasnet-udp/spec.template @@ -0,0 +1,49 @@ +Name: @@{BASENAME} +Version: @@{CHAPEL_VERSION} +Release: @@{PACKAGE_VERSION}%{?dist} +ExclusiveArch: %{_arch} +Summary: Chapel + +License: Apache-2.0 +Source0: chapel-%{version}.tar.gz + +Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make + +%description +Chapel Programming Language + +%global debug_package %{nil} + +%prep +%setup -q -n chapel-%{version} + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/%{_prefix} +mkdir -p %{buildroot}/%{_prefix}/bin +mkdir -p %{buildroot}/%{_prefix}/lib +mkdir -p %{buildroot}/%{_prefix}/share + +# Binaries +cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl +cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc +cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason +cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck +cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server +# Libraries +cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel +# CHPL_HOME +cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel + +%files +%{_prefix}/bin/chpl +%{_prefix}/bin/chpldoc +%{_prefix}/bin/mason +%{_prefix}/bin/chplcheck +%{_prefix}/bin/chpl-language-server +%{_prefix}/lib/chapel/* +%{_prefix}/share/chapel/* + +%changelog diff --git a/util/packaging/rpm/fc40-gasnet-udp/Dockerfile.template b/util/packaging/rpm/fc40-gasnet-udp/Dockerfile.template new file mode 100644 index 000000000000..441e88d1bc9f --- /dev/null +++ b/util/packaging/rpm/fc40-gasnet-udp/Dockerfile.template @@ -0,0 +1,25 @@ +FROM fedora:40 AS build + +@@{ARGUMENTS} + +@@{INJECT_BEFORE_DEPS} + +RUN dnf upgrade -y && \ + dnf install -y \ + gcc gcc-c++ m4 perl python3 python3-devel bash make gawk git cmake \ + which diffutils wget vim \ + llvm-devel clang clang-devel \ + rpm-build rpm-devel rpmlint coreutils patch rpmdevtools chrpath + +@@{USER_CREATION} + +@@{GET_CHAPEL} + +@@{BUILD_DEFAULT} +@@{BUILD_GASNET_UDP} + +@@{INSTALL} + +@@{PACKAGE_SETUP} + +@@{PACKAGE_BUILD} diff --git a/util/packaging/rpm/fc40-gasnet-udp/spec.template b/util/packaging/rpm/fc40-gasnet-udp/spec.template new file mode 100644 index 000000000000..3f490cf8a1c8 --- /dev/null +++ b/util/packaging/rpm/fc40-gasnet-udp/spec.template @@ -0,0 +1,49 @@ +Name: @@{BASENAME} +Version: @@{CHAPEL_VERSION} +Release: @@{PACKAGE_VERSION}%{?dist} +ExclusiveArch: %{_arch} +Summary: Chapel + +License: Apache-2.0 +Source0: chapel-%{version}.tar.gz + +Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make + +%description +Chapel Programming Language + +%global debug_package %{nil} + +%prep +%setup -q -n chapel-%{version} + +%build + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/%{_prefix} +mkdir -p %{buildroot}/%{_prefix}/bin +mkdir -p %{buildroot}/%{_prefix}/lib +mkdir -p %{buildroot}/%{_prefix}/share + +# Binaries +cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl +cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc +cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason +cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck +cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server +# Libraries +cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel +# CHPL_HOME +cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel + +%files +%{_prefix}/bin/chpl +%{_prefix}/bin/chpldoc +%{_prefix}/bin/mason +%{_prefix}/bin/chplcheck +%{_prefix}/bin/chpl-language-server +%{_prefix}/lib/chapel/* +%{_prefix}/share/chapel/* + +%changelog