d2/d2.spec
Your Name 6ef3ea7100
All checks were successful
Run CI/CD... / main (push) Successful in 9m41s
0.6.9
2025-02-05 07:37:05 +00:00

36 lines
733 B
RPMSpec

%define debug %nil
%define debug_package %nil
Name: d2
Version: 0.6.9
Release: 1
Summary: D2 is a modern diagram scripting language
URL: https://d2lang.com
Source0: https://github.com/terrastruct/d2/archive/v%{version}/%{name}-%{version}.tar.gz
License: MPL 2.0
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
BuildRequires: pkgconfig(openssl3.3)
%description
A modern diagram scripting language that turns text to
diagrams.
%prep
%setup -q
%build
export GOPROXY=https://proxy.golang.org/cached-only
go build --ldflags="-s -w" -o bin/%{name} .
upx bin/%{name}
%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%doc README.md LICENSE.txt
%{_bindir}/%{name}