summaryrefslogtreecommitdiff
path: root/zig.spec
blob: 878a23b360347456ed58c6cb207957ec9b9fcdab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Name:           zig
Version:        0.16.0
Release:        1%{?dist}
Summary:        Zig programming language toolchain (binary release)

License:        MIT
URL:            https://ziglang.org/
Source0:        https://atomgit.com/qq_53767768/zig-bin/releases/download/zig0.16/zig-x86_64-linux-0.16.0.tar.xz

Requires:       glibc

%description
Zig is a general-purpose programming language and toolchain for maintaining
robust, optimal, and reusable software. This package provides the pre-built
static binary for x86_64 Linux.

%prep
%setup -q -n %{name}-x86_64-linux-%{version}

%install
install -d %{buildroot}%{_prefix}/lib/zig
cp -a zig lib doc %{buildroot}%{_prefix}/lib/zig/
install -d %{buildroot}%{_bindir}
ln -s ../lib/zig/zig %{buildroot}%{_bindir}/zig

%files
%license LICENSE
%doc README.md
%{_bindir}/zig
%{_prefix}/lib/zig/zig
%{_prefix}/lib/zig/lib
%{_prefix}/lib/zig/doc

%changelog
* Fri May 22 2026 Your Name <you@example.com> - 0.16.0-1
- Initial RPM release for Zig 0.16.0 binary