Skip to content

Commit

Permalink
set arch in nfpm config
Browse files Browse the repository at this point in the history
  • Loading branch information
edavidaja committed Jul 2, 2024
1 parent 9a2963f commit ae8f94a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builder/package.centos-8
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ if [[ ! -d /tmp/output/${OS_IDENTIFIER} ]]; then
mkdir -p "/tmp/output/${OS_IDENTIFIER}"
fi

if [ "$(arch)" == "aarch64" ]; then echo arm64; else echo amd64; fi > /tmp/arch

ln -s "/opt/python/${PYTHON_VERSION}/bin/python3" "/opt/python/${PYTHON_VERSION}/bin/python"
ln -s "/opt/python/${PYTHON_VERSION}/bin/pip3" "/opt/python/${PYTHON_VERSION}/bin/pip"

cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(cat /tmp/arch)
release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/python-builds>
vendor: RStudio, PBC
Expand Down
1 change: 1 addition & 0 deletions builder/package.debian-11
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(dpkg --print-architecture)
priority: optional
maintainer: RStudio, PBC <https://github.com/rstudio/python-builds>
description: |
Expand Down
1 change: 1 addition & 0 deletions builder/package.debian-12
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(dpkg --print-architecture)
priority: optional
maintainer: RStudio, PBC <https://github.com/rstudio/python-builds>
description: |
Expand Down
3 changes: 3 additions & 0 deletions builder/package.opensuse-155
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ if [[ ! -d /tmp/output/${OS_IDENTIFIER} ]]; then
mkdir -p "/tmp/output/${OS_IDENTIFIER}"
fi

if [ "$(arch)" == "aarch64" ]; then echo arm64; else echo amd64; fi > /tmp/arch

ln -s "/opt/python/${PYTHON_VERSION}/bin/python3" "/opt/python/${PYTHON_VERSION}/bin/python"
ln -s "/opt/python/${PYTHON_VERSION}/bin/pip3" "/opt/python/${PYTHON_VERSION}/bin/pip"

cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(cat /tmp/arch)
release: 1
maintainer: Posit Software, PBC <https://github.com/rstudio/python-builds>
vendor: Posit Software, PBC
Expand Down
3 changes: 3 additions & 0 deletions builder/package.rhel-9
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ if [[ ! -d /tmp/output/${OS_IDENTIFIER} ]]; then
mkdir -p "/tmp/output/${OS_IDENTIFIER}"
fi

if [ "$(arch)" == "aarch64" ]; then echo arm64; else echo amd64; fi > /tmp/arch

ln -s "/opt/python/${PYTHON_VERSION}/bin/python3" "/opt/python/${PYTHON_VERSION}/bin/python"
ln -s "/opt/python/${PYTHON_VERSION}/bin/pip3" "/opt/python/${PYTHON_VERSION}/bin/pip"

cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(cat /tmp/arch)
release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/python-builds>
vendor: RStudio, PBC
Expand Down
1 change: 1 addition & 0 deletions builder/package.ubuntu-2004
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(dpkg --print-architecture)
priority: optional
maintainer: RStudio, PBC <https://github.com/rstudio/python-builds>
description: |
Expand Down
1 change: 1 addition & 0 deletions builder/package.ubuntu-2204
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(dpkg --print-architecture)
priority: optional
maintainer: RStudio, PBC <https://github.com/rstudio/python-builds>
description: |
Expand Down
1 change: 1 addition & 0 deletions builder/package.ubuntu-2404
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ cat <<EOF > /tmp/nfpm.yml
name: python-${PYTHON_VERSION}
version: 1
version_schema: none
arch: $(dpkg --print-architecture)
priority: optional
maintainer: Posit Software, PBC <https://github.com/rstudio/python-builds>
description: |
Expand Down

0 comments on commit ae8f94a

Please sign in to comment.