From 2214d0d754846f44c7df7937d0f14c89af61eda6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 22 May 2026 03:22:29 +0000 Subject: automatic import of zig --- zig.spec | 67 ++++++++++++++++++++++++++++++++++------------------------------ 1 file 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/ (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 - 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 - 0.16.0-1 +- Initial RPM release for Zig 0.16.0 binary -- cgit v1.2.3