summaryrefslogtreecommitdiff
path: root/zig.spec
diff options
context:
space:
mode:
Diffstat (limited to 'zig.spec')
-rw-r--r--zig.spec67
1 files changed, 36 insertions, 31 deletions
diff --git a/zig.spec b/zig.spec
index 78d3a65..878a23b 100644
--- a/zig.spec
+++ b/zig.spec
@@ -1,31 +1,36 @@
-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
-%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
+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