mirror of
https://abf.rosa.ru/djam/d2.git
synced 2025-02-23 15:52:58 +00:00
36 lines
733 B
RPMSpec
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}
|
|
|