From 46dfa7488fcfb2910efb76c84b0cbe85aab89735 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Thu, 19 Dec 2024 00:13:17 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ asdf.rpmlintrc | 2 ++ asdf.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .abf.yml create mode 100644 asdf.rpmlintrc create mode 100644 asdf.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..f64b972 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + asdf-0.15.0.tar.gz: 4bb47ee314ebee807c8f82514a5d06299ef8e007 diff --git a/asdf.rpmlintrc b/asdf.rpmlintrc new file mode 100644 index 0000000..ea7f91c --- /dev/null +++ b/asdf.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("E: dir-or-file-in-opt") + diff --git a/asdf.spec b/asdf.spec new file mode 100644 index 0000000..dd4d490 --- /dev/null +++ b/asdf.spec @@ -0,0 +1,56 @@ +%define debug %nil +%define debug_package %nil +%define _optdir /opt +%define _asdfdir %{_optdir}/%{name} + + +Name: asdf +Version: 0.15.0 +Release: 1 +Summary: Manage multiple runtime versions +URL: https://asdf-vm.com +Source0: https://github.com/asdf-vm/asdf/archive/v%{version}/%{name}-%{version}.tar.gz +Source1000: %{name}.rpmlintrc +License: MIT +Group: Development/Other +BuildArch: noarch +#BuildRequires: go +#BuildRequires: git-core +#BuildRequires: upx +#BuildRequires: pkgconfig(openssl3.3) + +%description +Manage multiple runtime versions with a single CLI tool, +extendable via plugins - docs at asdf-vm.com + +asdf is a CLI tool that can manage multiple language runtime +versions on a per-project basis. It is like gvm, nvm, rbenv +& pyenv (and more) all in one! Simply install your language's +plugin! + +%prep +%setup -q + +%build +#export GOSUMDB=off +#export GOPROXY=direct +#go build --ldflags='-s -X main.version=%{version}' -o bin/%{name} ./cmd/%{name} + +#upx bin/%{name} + +%install +#install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} + +install -d %{buildroot}%{_asdfdir} %{buildroot}%{_bindir} + +cp -a bin/asdf help.txt version.txt lib %{buildroot}%{_asdfdir} + +pushd %{buildroot}%{_bindir} +ln -s ../..%{_asdfdir}/%{name} %{name} +popd + +%files +%doc README.md LICENSE docs/*.md docs/manage docs/guide docs/more docs/plugins docs/contribute help.txt +%{_bindir}/%{name} +%{_asdfdir}/* +