asdf/asdf.spec

58 lines
1.4 KiB
RPMSpec
Raw Normal View History

2024-12-19 00:13:17 +03:00
%define debug %nil
%define debug_package %nil
%define _optdir /opt
%define _asdfdir %{_optdir}/%{name}
Name: asdf
2025-01-30 08:09:05 +00:00
Version: 0.16.0
2024-12-19 00:13:17 +03:00
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
2025-01-30 08:09:05 +00:00
Conflicts: %{name} <= 0.15
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
BuildRequires: pkgconfig(openssl3.3)
2024-12-19 00:13:17 +03:00
%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
2025-01-30 08:09:05 +00:00
export GOSUMDB=off
export GOPROXY=direct
go build --ldflags='-s -w -X main.version=%{version}' -o bin/%{name} ./cmd/%{name}
2024-12-19 00:13:17 +03:00
#upx bin/%{name}
%install
2025-01-30 08:09:05 +00:00
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
2024-12-19 00:13:17 +03:00
2025-01-30 08:09:05 +00:00
#install -d %{buildroot}%{_asdfdir} %{buildroot}%{_bindir}
2024-12-19 00:13:17 +03:00
2025-01-30 08:09:05 +00:00
#cp -a bin/asdf help.txt version.txt lib %{buildroot}%{_asdfdir}
2024-12-19 00:13:17 +03:00
2025-01-30 08:09:05 +00:00
#pushd %{buildroot}%{_bindir}
#ln -s ../..%{_asdfdir}/%{name} %{name}
#popd
2024-12-19 00:13:17 +03:00
%files
%doc README.md LICENSE docs/*.md docs/manage docs/guide docs/more docs/plugins docs/contribute help.txt
%{_bindir}/%{name}
2025-01-30 08:09:05 +00:00
#{_asdfdir}/*
2024-12-19 00:13:17 +03:00