From 175fef9d2b42b772c443a7a20491e4c3a19d0a27 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 21 May 2026 11:04:13 +0000 Subject: automatic import of zig --- zig.spec | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'zig.spec') diff --git a/zig.spec b/zig.spec index 5d928d3..78d3a65 100644 --- a/zig.spec +++ b/zig.spec @@ -2,37 +2,30 @@ 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 +# 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 +- Initial package for openEuler EUR -- cgit v1.2.3