summaryrefslogtreecommitdiff
path: root/zig.spec
blob: 5d928d39af7d5dffabcf3d4b5b598f5e4c307eea (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
37
38
Name:           zig
Version:        0.16.0
Release:        1%{?dist}
Summary:        General-purpose programming language and build system

License:        MIT
URL:            https://ziglang.org/
Source0:        https://ziglang.org/download/%{version}/zig-x86_64-linux-%{version}.tar.xz

BuildArch:      x86_64

%description
Zig is a general-purpose programming language and build system designed
to be a robust, optimal, and clear replacement for C.
- No hidden control flow, no hidden memory allocations
- Cross-compilation out of the box
- Compile-time code execution

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

%install
mkdir -p %{buildroot}%{_libexecdir}/zig/%{version}
cp -a lib/* %{buildroot}%{_libexecdir}/zig/%{version}/
install -m 0755 zig %{buildroot}%{_libexecdir}/zig/%{version}/

mkdir -p %{buildroot}%{_bindir}
ln -s %{_libexecdir}/zig/%{version}/zig %{buildroot}%{_bindir}/zig

%files
%license LICENSE
%doc README.md
%{_bindir}/zig
%{_libexecdir}/zig/%{version}/

%changelog
* Thu May 21 2026 Packager <packager@example.com> - 0.16.0-1
- Initial package for openEuler EUR