diff --git a/rpms/neovim-glibc-2.17/metadata.yaml b/rpms/neovim-glibc-2.17/metadata.yaml new file mode 100644 index 0000000..335e0f5 --- /dev/null +++ b/rpms/neovim-glibc-2.17/metadata.yaml @@ -0,0 +1,20 @@ +--- +name: neovim-glibc-2.17 +github: neovim/neovim-releases +description: Vim-fork focused on extensibility and usability (glibc 2.17 compatible build). +arch: amd64 +platform: linux +maintainer: neovim +homepage: https://neovim.io +license: Apache-2.0 +builds: +- repository: + - almalinux/el8 + image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest + release: 1 + version: 0.12.2 +- repository: + - almalinux/el9 + image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest + release: 1 + version: 0.12.2 diff --git a/rpms/neovim-glibc-2.17/resources/build.sh b/rpms/neovim-glibc-2.17/resources/build.sh new file mode 100755 index 0000000..7110c42 --- /dev/null +++ b/rpms/neovim-glibc-2.17/resources/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +set -e + +wget -O /app/nvim-linux-x86_64.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/neovim/neovim-releases/releases/download/v${PACKAGE_VERSION}/nvim-linux-x86_64.tar.gz +tar xf /app/nvim-linux-x86_64.tar.gz +mv /app/nvim-linux-x86_64/bin/nvim /app/nvim + +envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml + +nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm diff --git a/rpms/neovim-glibc-2.17/resources/nfpm.yaml b/rpms/neovim-glibc-2.17/resources/nfpm.yaml new file mode 100644 index 0000000..ce71b70 --- /dev/null +++ b/rpms/neovim-glibc-2.17/resources/nfpm.yaml @@ -0,0 +1,35 @@ +# nfpm.yaml + +name: ${PACKAGE_NAME} +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: ${PACKAGE_ARCH} +platform: ${PACKAGE_PLATFORM} +section: default +priority: extra +description: "${PACKAGE_DESCRIPTION}" + +maintainer: ${PACKAGE_MAINTAINER} +homepage: ${PACKAGE_HOMEPAGE} +license: ${PACKAGE_LICENSE} + +disable_globbing: false + +replaces: + - neovim-glibc-2.17 + - neovim + +provides: + - neovim-glibc-2.17 + - nvim + +conflicts: + - neovim + +contents: + - src: /app/nvim + dst: /usr/bin/nvim + file_info: + mode: 0755 + owner: root + group: root diff --git a/rpms/neovim/metadata.yaml b/rpms/neovim/metadata.yaml new file mode 100644 index 0000000..85e4669 --- /dev/null +++ b/rpms/neovim/metadata.yaml @@ -0,0 +1,20 @@ +--- +name: neovim +github: neovim/neovim +description: Vim-fork focused on extensibility and usability. +arch: amd64 +platform: linux +maintainer: neovim +homepage: https://neovim.io +license: Apache-2.0 +builds: +- repository: + - almalinux/el8 + image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest + release: 1 + version: 0.12.2 +- repository: + - almalinux/el9 + image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest + release: 1 + version: 0.12.2 diff --git a/rpms/neovim/resources/build.sh b/rpms/neovim/resources/build.sh new file mode 100755 index 0000000..89ec63a --- /dev/null +++ b/rpms/neovim/resources/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +set -e + +wget -O /app/nvim-linux-x86_64.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/neovim/neovim/releases/download/v${PACKAGE_VERSION}/nvim-linux-x86_64.tar.gz +tar xf /app/nvim-linux-x86_64.tar.gz +mv /app/nvim-linux-x86_64/bin/nvim /app/nvim + +envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml + +nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm diff --git a/rpms/neovim/resources/nfpm.yaml b/rpms/neovim/resources/nfpm.yaml new file mode 100644 index 0000000..cc60e6d --- /dev/null +++ b/rpms/neovim/resources/nfpm.yaml @@ -0,0 +1,35 @@ +# nfpm.yaml + +name: ${PACKAGE_NAME} +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: ${PACKAGE_ARCH} +platform: ${PACKAGE_PLATFORM} +section: default +priority: extra +description: "${PACKAGE_DESCRIPTION}" + +maintainer: ${PACKAGE_MAINTAINER} +homepage: ${PACKAGE_HOMEPAGE} +license: ${PACKAGE_LICENSE} + +disable_globbing: false + +replaces: + - neovim + - neovim-glibc-2.17 + +provides: + - neovim + - nvim + +conflicts: + - neovim-glibc-2.17 + +contents: + - src: /app/nvim + dst: /usr/bin/nvim + file_info: + mode: 0755 + owner: root + group: root