[packages/zig] Up to 0.17.0
arekm
arekm at pld-linux.org
Sat Oct 3 22:26:03 CEST 2026
commit b25157d79d9213ce719a4254ff39ff5c1108e8e6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Oct 3 22:15:59 2026 +0200
Up to 0.17.0
zig.spec | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/zig.spec b/zig.spec
index 45fd475..1744ae3 100644
--- a/zig.spec
+++ b/zig.spec
@@ -1,22 +1,18 @@
%bcond_with bootstrap # build with the precompiled compiler from upstream
-%define gitref ab30a0b9a
-%define snap 20260905
-%define zigver 0.17.0-dev.2018+%{gitref}
-
-%define prebuilt_dir %{name}-x86_64-linux-%{zigver}
+%define prebuilt_dir %{name}-x86_64-linux-%{version}
#
Summary: Programming language for maintaining robust, optimal and reusable software
Summary(pl.UTF-8): Język programowania do tworzenia niezawodnego, optymalnego oprogramowania wielokrotnego użytku
Name: zig
Version: 0.17.0
-Release: 0.%{snap}.1
+Release: 1
License: MIT (compiler), MIT/BSD/LGPL v2.1+ and others (bundled libc sources)
Group: Development/Languages
-Source0: https://ziglang.org/builds/%{name}-%{zigver}.tar.xz
-# Source0-md5: f44255f821df694f0cb32946f3878076
-Source1: https://ziglang.org/builds/%{name}-x86_64-linux-%{zigver}.tar.xz
-# Source1-md5: b3b96a6d9f38474651c228ef7c1a0ae4
+Source0: https://ziglang.org/download/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: ae1221f86ff4258aff2749244b2d6d0c
+Source1: https://ziglang.org/download/%{version}/%{name}-x86_64-linux-%{version}.tar.xz
+# Source1-md5: 90b5c084eed581b388dfdd2aca0c3cae
URL: https://ziglang.org/
# cmake/Findllvm.cmake accepts one LLVM major only and errors out on anything
# else, so this tracks whichever zig snapshot matches the LLVM PLD ships.
@@ -67,7 +63,7 @@ potrzebnymi kompilatorowi do budowania i kompilacji skrośnej
programów.
%prep
-%setup -q -n %{name}-%{zigver}
+%setup -q
%if %{with bootstrap}
tar xJf %{SOURCE1}
%endif
@@ -79,7 +75,7 @@ cd build
-DZIG_PIE=ON \
-DZIG_SHARED_LLVM=ON \
-DZIG_TARGET_TRIPLE=native \
- -DZIG_VERSION=%{zigver}
+ -DZIG_VERSION=%{version}
# build.zig links zigcpp and reads config.h, both produced by the cmake run above
%{__make} zigcpp
@@ -103,7 +99,7 @@ $ZIG build \
-Doptimize=ReleaseFast \
-Dpie \
-Dtarget=native \
- -Dversion-string=%{zigver}
+ -Dversion-string=%{version}
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/zig.git/commitdiff/b25157d79d9213ce719a4254ff39ff5c1108e8e6
More information about the pld-cvs-commit
mailing list