From a370b42d82dfce7a251514c6655c1cac99e2c01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Neftal=C3=AD=20Yagua?= Date: Fri, 30 Jun 2023 01:31:03 -0500 Subject: [PATCH] Create semaphore.spec Fedora 38 package arch x86_64 https://copr.fedorainfracloud.org/coprs/neftaliyagua/semaphore/ sudo dnf copr enable neftaliyagua/semaphore sudo dnf install semaphore sudo semaphore-setup Note: Don't forget to put the configuration path to /etc/semaphore sudo systemctl enable --now ansible-semaphore Browser http://localhost:3000 --- deployment/semaphore.spec | 85 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 deployment/semaphore.spec diff --git a/deployment/semaphore.spec b/deployment/semaphore.spec new file mode 100644 index 00000000..789f0d6c --- /dev/null +++ b/deployment/semaphore.spec @@ -0,0 +1,85 @@ +%global debug_package %{nil} +%global _missing_build_ids_terminate_build 0 +%global _dwz_low_mem_die_limit 0 + +Name: semaphore +Version: 2.8.90 +Release: 1%{?dist} +Summary: Ansible Semaphore is a modern UI for Ansible. It lets you easily run Ansible playbooks, get notifications about fails, control access to deployment system. + +License: MIT +URL: https://github.com/ansible-semaphore/semaphore +Source: https://github.com/ansible-semaphore/semaphore/archive/refs/tags/v2.8.90.zip + +BuildRequires: golang +BuildRequires: nodejs +BuildRequires: nodejs-npm +BuildRequires: go-task +BuildRequires: git +BuildRequires: systemd-rpm-macros + +Requires: ansible + +%description +Ansible Semaphore is a modern UI for Ansible. It lets you easily run Ansible playbooks, get notifications about fails, control access to deployment system. + +%prep +%setup -q + +%build +export SEMAPHORE_VERSION="development" +export SEMAPHORE_ARCH="linux_amd64" +export SEMAPHORE_CONFIG_PATH="./etc/semaphore" +export APP_ROOT="./ansible-semaphore/" + +if ! [[ "$PATH" =~ "$HOME/go/bin:" ]] +then + PATH="$HOME/go/bin:$PATH" +fi +export PATH +##go install github.com/gobuffalo/packr/v2@latest +go-task all + +cat > ansible-semaphore.service < semaphore-setup <