diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-05-22 03:22:29 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-05-22 03:22:29 +0000 |
| commit | 2214d0d754846f44c7df7937d0f14c89af61eda6 (patch) | |
| tree | 298f09b74330ca53ae575d7f6987a1cf43aa3aee | |
| parent | 175fef9d2b42b772c443a7a20491e4c3a19d0a27 (diff) | |
automatic import of zigopeneuler24.09openeuler24.03_LTS_SP2openeuler24.03_LTS_SP1openeuler24.03_LTS
| -rw-r--r-- | zig.spec | 67 |
1 files changed, 36 insertions, 31 deletions
@@ -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 |
