diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-05-21 09:23:39 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-05-21 09:23:39 +0000 |
| commit | 22a85c3b63a1e6568bae2e12e66ee02a0c28bdc0 (patch) | |
| tree | 01626816fe09d0fbba418924c5c8194ea22ef2de | |
| parent | ba6786af1f4f58740b4129e9d1be1bf85013e9bc (diff) | |
automatic import of zig
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | sources | 1 | ||||
| -rw-r--r-- | zig.spec | 31 |
3 files changed, 33 insertions, 0 deletions
@@ -0,0 +1 @@ +/zig-x86_64-linux-0.16.0.tar.xz @@ -0,0 +1 @@ +d652295866b5d53c6bf8ba4da4d6a0e3 zig-x86_64-linux-0.16.0.tar.xz diff --git a/zig.spec b/zig.spec new file mode 100644 index 0000000..01322c0 --- /dev/null +++ b/zig.spec @@ -0,0 +1,31 @@ +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://gitee.com/vabchang/zig-eur/releases/download/zig-0.16/zig-x86_64-linux-%{version}.tar.xz
+%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
+# Install into /usr/libexec/zig/<version> (private location for binaries)
+mkdir -p %{buildroot}%{_libexecdir}/zig/%{version}
+cp -a lib/* %{buildroot}%{_libexecdir}/zig/%{version}/
+install -m 0755 zig %{buildroot}%{_libexecdir}/zig/%{version}/
+# Create wrapper symlink
+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 |
