Files
packages/anda/langs/zig/master/zig-master.spec
T
madomado f08edf4eef chore(sync): frawhide -> f43 (#6212)
* bump: python-shibuya

* bump: osu-lazer

* bump: zed-preview

* bump(branch): ffmpeg

* fix(dracut-strip-trigger): make trigger run later than dracut's one (#6046)

Signed-off-by: madomado <madonuko@outlook.com>

* bump: zig-master-bootstrap

* bump(branch): zig-master

* bump: ruffle-nightly

* bump(nightly): legcord-nightly micro-nightly zed-nightly grabnim Carla-nightly scx-scheds-nightly spotx-bash

* bump: rust-mise

* bump: peazip

* bump: copyparty

* bump: copyparty

* bump: zig-master-bootstrap

* bump: copyparty

* bump(branch): zig-master

* bump: zed-preview

* bump: lomiri-system-settings

* bump: rpcs3

* bump: rust-mise

* bump(nightly): mpv-nightly hyprutils.nightly ghostty-nightly zed-nightly scx-scheds-nightly

* bump: ruffle-nightly golang-github-abenz1267-walker zed yt-dlp-git

* bump: xwayland-satellite

* bump: terra-mock-configs

* bump: zig-master-bootstrap

* bump(branch): zig-master

* feat(ci): better build workflows [attempt 2] (#6006)

* feat(ci): better build workflows

* fix(ci/json-build): forgot about the type

* chore: test if autobuild works

* Revert "chore: test if autobuild works"

This reverts commit 73fe8e636f.

* fix(ci/build): delay setup git

* fix(ci/build): need to git add all

* fix(ci/build): compact output from jq

* chore(ci/build): add run-name

* fix(ci/autobuild): inherit secrets

Signed-off-by: madomado <madonuko@outlook.com>

* fix(ci/build): inherit secrets

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>

* bump: rust-mise

* bump: yt-dlp-git

* bump: zed-preview zed

* bump: yt-dlp-git

* bump: zed-preview

* bump: rio

* bump: codium

* bump: yt-dlp-git

* bump: zed-preview

* bump: yt-dlp-git

* bump: ruffle-nightly zig-master-bootstrap tela-icon-theme

* bump(nightly): mpv-nightly winetricks-git ghostty-nightly zed-nightly prismlauncher-nightly libva-nvidia-driver scx-scheds-nightly rpi-utils

* bump(branch): zig-master

* bump: electron

* bump: osu-lazer

* bump: discord-canary-openasar discord-canary

* feat(ci): support f43 (#6088)

* Add: rp-appset (#6083)

* bump: xone

* bump(branch): xone-kmod dkms-xone

* bump: discord-canary-openasar discord-canary

* bump: discord-openasar discord golang-google-grpc.terra

* bump: yt-dlp-git

* bump: yt-dlp-git

* bump: yt-dlp-git

* bump: steam

* bump: steam

* bump: steam yt-dlp-git

* bump: steam yt-dlp-git

* bump: yt-dlp-git

* bump: steam yt-dlp-git

* bump: steam

* bump: steam

* bump(nightly): envision winetricks-git ghostty-nightly micro-nightly zed-nightly tdlib-nightly openbangla-keyboard-nightly scx-scheds-nightly rpi-utils

* bump: discord-canary-openasar discord-canary ruffle-nightly yt-dlp-git

* bump: yt-dlp-git

* bump: steam

* bump: steam

* bump: steam

* bump: steam

* bump: steam

* bump: rpcs3

* bump: steam yt-dlp-git

* bump: steam

* bump: steam

* bump: steam

* bump: steam

* bump: steam

* bump: steam

* bump: dart

* bump: steam

* bump: steam

* bump: steam mesa

* bump: steam rust-mise

* bump: steam

* bump: yt-dlp-git

* bump: steam

* bump: discord-openasar discord

* add: android-studio package (#6097)

* feat: add android-studio package

* chore: add packager metadata to spec file

* chore: add update.rhai and assist feedback

* bump: signal-desktop zig-master-bootstrap

* bump(branch): zig-master

* bump: yt-dlp-git

* bump: rpcs3

* bump: zed-preview zed

* bump: zed-preview

* bump: discord-canary-openasar discord-canary ruffle-nightly rust-mise

* bump(nightly): mpv-nightly hyprgraphics.nightly ghostty-nightly micro-nightly zed-nightly prismlauncher-nightly scx-scheds-nightly

* bump: golang-github-u-root

* bump: fluent-icon-theme

* bump: rpcs3

* bump: zed-preview

* bump: golang-github-abenz1267-walker

* bump: discord-ptb-openasar discord-ptb codium

* bump: bitwarden-cli.bin

* bump(branch): bitwarden-cli

* bump: yt-dlp-git

* bump: copyparty

* bump: yt-dlp-git

* bump(nightly): hyprutils.nightly ghostty-nightly zed-nightly prismlauncher-nightly nim-nightly nvidia-patch scx-scheds-nightly rpi-utils

* bump: flatpost ruffle-nightly

* bump: zig-master-bootstrap yt-dlp-git

* bump(branch): zig-master

* bump: golang-github-abenz1267-walker

* bump: golang-github-abenz1267-walker

* bump(branch): ffmpeg

* bump: rust-mise

* bump: maple-fonts

* bump: rust-mise

* bump: lomiri-system-settings

* fix(zed*): exec correct binary from .desktop (#6077)

Resolve #6056

* bump: zapret

* bump: zed-preview zed

* bump: zed-preview rust-mise

* bump: rust-mise

* bump: zig-master-bootstrap

* bump(branch): zig-master

* bump: discord-canary-openasar discord-canary

* fix(zed): change license path (#6109)

change license path from plex-mono/license.txt to
ibm-plex-sans/license.txt

* fix: micro (#6105)

Signed-off-by: madomado <madonuko@outlook.com>

* add: television (#6051)

* fix: fluent-icon-theme (#6106)

Signed-off-by: madomado <madonuko@outlook.com>

* fix(signal-desktop): build sticker-creator (#6092)

* add: flameshot.qt5 (#6087)

* bump: rust-television

* bump: yt-dlp-git

* bump: ruffle-nightly yt-dlp-git

* bump(nightly): mpv-nightly ghostty-nightly zed-nightly scx-scheds-nightly

* fix(emulationstation-de): Drop patch, update build deps (#6117)

* fix(emulationstation-de): Drop patch

Signed-off-by: Gilver <rockgrub@disroot.org>

* fix: bluez-libs-devel

Signed-off-by: Gilver <rockgrub@disroot.org>

* fix: vulkan-loader-devel

Signed-off-by: Gilver <rockgrub@disroot.org>

---------

Signed-off-by: Gilver <rockgrub@disroot.org>

* bump: golang-github-abenz1267-walker

* bump: lomiri-system-settings

* bump: golang-github-abenz1267-walker

* bump: golang-github-abenz1267-walker

* bump: golang-github-abenz1267-walker

* bump: golang-github-abenz1267-walker

* fix(android-studio): Don't overide libedit library (#6141)

* bump: komikku

* bump: ruffle-nightly yt-dlp-git

* bump(nightly): mpv-nightly ghostty-nightly zed-nightly spotx-bash

* bump: zig-master-bootstrap

* bump(branch): zig-master

* bump: groovy groovy-docs

* bump: golang-github-abenz1267-walker

* bump: rpcs3

* bump: rpcs3

* bump: ruffle-nightly

* bump(nightly): mpv-nightly winetricks-git ghostty-nightly zed-nightly nvidia-patch scx-scheds-nightly

* bump: zig-master-bootstrap

* bump(branch): zig-master

* bump: flatpost

* bump: lomiri-system-settings

* bump: golang-github-abenz1267-walker

* bump: rpcs3

* bump: discord-canary-openasar discord-canary

* bump: flutter

* bump: zed-preview sass

* bump: discord-canary-openasar discord-canary

* bump(nightly): legcord-nightly winetricks-git hyprutils.nightly ghostty-nightly micro-nightly zed-nightly scx-scheds-nightly

* bump: ruffle-nightly

* bump: bun-bin

* bump: tela-icon-theme

* bump: liblsp-dsp

* bump: lomiri-system-settings

* bump: tela-icon-theme

* bump: tela-icon-theme

* bump: chezmoi

* bump: tela-icon-theme

* bump: golang-github-abenz1267-walker

* bump: golang-github-abenz1267-walker

* bump: discord-openasar discord

* bump: unity-session

* feat: Enable D3D12 for WSL in Mesa (#6150) (#6151)

(cherry picked from commit 81a050dcb1)

Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch>

* chore: Split dxil into dxil and dxil-libs, allows both 32-bit and 64-bit support for spir-v to dxil (#6156) (#6158)

* chore: Split dxil into dxil and dxil-libs, allows both 32-bit and 64-bit support for spir-v to dxil



* chore: Increase release



* chore: Make dependency on mesa-dxil arch neutral



---------


(cherry picked from commit 7706984b3b)

Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch>
Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch>

* bump: ruffle-nightly

* bump(nightly): ghostty-nightly zed-nightly intel-ipu6-drivers scx-scheds-nightly

* fix: Make rawhide match f42 (#6164)

Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch>

* bump(branch): intel-ipu6-kmod dkms-intel-ipu6

* fix: stupid typo for large runners (#6163)

* fix: stupid typo for large runners

* fix: use format instead of broken nested variable sub

* bump: readymade-git

* Feat: Switch mesa to large runners (#6157) (#6171)

* Feat: Switch mesa to large runners



* Bump release

* Bump release

---------


(cherry picked from commit cf014e92ce)

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>

* bump: zig-master-bootstrap

* bump(branch): zig-master

* gamescope: rebase to 3.16.3 (#6175)

* bump: rust-mise

* bump: hypridle

* bump: zed-preview zed

* bump: yt-dlp-git

* bump: dart

* bump: golang-github-abenz1267-walker

* bump: zed-preview zed

* bump: discord-canary-openasar discord-canary

* bump: electron

* bump: signal-desktop copyparty yt-dlp-git

* bump: rpcs3

* bump: zig-master-bootstrap

* bump: yt-dlp-git

* bump(branch): zig-master

* bump: yt-dlp-git

* bump: yt-dlp-git

* bump: ruffle-nightly yt-dlp-git

* bump(nightly): ghostty-nightly zed-nightly nim-nightly scx-scheds-nightly rpi-utils

* bump: yt-dlp-git

* fix(komikku): add missing dependency on modern_colorthief (#6148)

* bump: nodejs-backport

* bump: anda-srpm-macros

* bump: arduino-cli

* fix(fluent-icon-theme): manually list out all files? (#6180)

* fix(fluent-icon-theme): manually list out all files?

Signed-off-by: madomado <madonuko@outlook.com>

* bump

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>

* fix(zed): missing rustc dep `libedit(x86-64)` (#6179)

* bump: zig-master-bootstrap

* fix(nodejs-backport): files (#6185) (#6186)

(cherry picked from commit 2e14d081bb)

Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: madomado <madonuko@outlook.com>

* bump(branch): zig-master

* bump: android-studio

* feat: remove %go_prep_online from all specs (#6194) (#6195)

* feat: remove %go_prep_online from all specs

* packager



* fix: GO111MODULE=on

* a

* aa

* aaa

* hah?

* feat: walker got rusted real?

* fedora moment

* /etc/xdg/walker/



---------


(cherry picked from commit aacc02e713)

Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: madomado <madonuko@outlook.com>

* bump: copyparty

* bump: zed-preview zed

* bump: ruffle-nightly

* bump(nightly): mpv-nightly ghostty-nightly zed-nightly nim-nightly scx-scheds-nightly

* bump: zig-master-bootstrap

* bump(branch): zig-master

* bump: walker

* bump: discord-ptb-openasar discord-ptb

* bump: zed-preview zed

* bump: dwarfs

* bump: switcheroo-control wine-dev yt-dlp-git

* bump: rpcs3

* bump: yt-dlp-git

* bump: zed-preview zed

* bump: ruffle-nightly wine-staging

* bump(nightly): mpv-nightly ghostty-nightly zed-nightly astal scx-scheds-nightly

* bump(branch): astal-gtk

* bump: zig-master-bootstrap

* bump(branch): zig-master

* perf(ci): use arm runners (#6202)

* bump: wine-dxvk

* bump: walker

* fix(astal-gtk): add commit (#6204)

Signed-off-by: madomado <madonuko@outlook.com>

* feat(bootstrap): also init madoguchi?

* feat(release): bump to 43

---------

Signed-off-by: madomado <madonuko@outlook.com>
Signed-off-by: Gilver <rockgrub@disroot.org>
Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Raboneko <raboneko@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Engels Tercero <75184282+like-engels@users.noreply.github.com>
Co-authored-by: Eason <30045503+Eason0729@users.noreply.github.com>
Co-authored-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Raboneko <119771935+raboneko@users.noreply.github.com>
Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch>
Co-authored-by: lea <lleyton@fyralabs.com>
Co-authored-by: Pornpipat Popum <cappy@cappuchino.xyz>
Co-authored-by: Lélahel <lelahx@proton.me>
2025-09-01 00:28:05 +08:00

221 lines
7.2 KiB
RPMSpec

# https://ziglang.org/download/VERSION/release-notes.html#Support-Table
%global zig_arches x86_64 aarch64 riscv64 %{mips64}
# Signing key from https://ziglang.org/download/
%global public_key RWSGOq2NVecA2UPNdBUZykf1CCb147pkmdtYxgb3Ti+JO/wCYvhbAb/U
# Not needed yet
%if 0%{?fedora} >= 42 || 0%{?rhel} >= 9
%define llvm_compat 20
%endif
%global llvm_version 20.0.0
%bcond bootstrap 0
%bcond docs %{without bootstrap}
%bcond test 1
%global zig_cache_dir %{builddir}/zig-cache
%global zig_mirrors ("https://pkg.machengine.org/zig" "https://zigmirror.hryx.net/zig" "https://zig.linus.dev/zig" "https://zig.squirl.dev" "https://zig.florent.dev")
%global mirror_url %(mirrors=%{zig_mirrors}; index=$(( RANDOM % ${#mirrors[@]} )); echo ${mirrors[$index]})
Name: zig-master
Version: 0.16.0~dev.70+73a0b5441
Release: 1%?dist
Summary: Master builds of the Zig language
License: MIT AND NCSA AND LGPL-2.1-or-later AND LGPL-2.1-or-later WITH GCC-exception-2.0 AND GPL-2.0-or-later AND GPL-2.0-or-later WITH GCC-exception-2.0 AND BSD-3-Clause AND Inner-Net-2.0 AND ISC AND LicenseRef-Fedora-Public-Domain AND GFDL-1.1-or-later AND ZPL-2.1
URL: https://ziglang.org
Source0: %{mirror_url}/zig-%{version_no_tilde}.tar.xz
Source1: %{mirror_url}/zig-%{version_no_tilde}.tar.xz.minisig
Patch0: 0000-remove-native-lib-directories-from-rpath.patch
Patch3: 0005-link.Elf-add-root-directory-of-libraries-to-linker-p.patch
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libxml2-devel
BuildRequires: llvm-devel
BuildRequires: clang-devel
BuildRequires: lld-devel
BuildRequires: zlib-devel
# for man page generation
BuildRequires: help2man
# for signature verification
BuildRequires: minisign
%if %{without bootstrap}
BuildRequires: %{name}-bootstrap = %{version}
%endif
%if %{with test}
BuildRequires: elfutils-libelf-devel
BuildRequires: libstdc++-static
%endif
# For the version_no_tilde macro
BuildRequires: rust-srpm-macros
Requires: %{name}-libs = %{version}
# Apache-2.0 WITH LLVM-exception OR NCSA OR MIT
Provides: bundled(compiler-rt) = %{llvm_version}
# LGPL-2.1-or-later AND SunPro AND LGPL-2.1-or-later WITH GCC-exception-2.0 AND BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later WITH GNU-compiler-exception AND GPL-2.0-only AND ISC AND LicenseRef-Fedora-Public-Domain AND HPND AND CMU-Mach AND LGPL-2.0-or-later AND Unicode-3.0 AND GFDL-1.1-or-later AND GPL-1.0-or-later AND FSFUL AND MIT AND Inner-Net-2.0 AND X11 AND GPL-2.0-or-later WITH GCC-exception-2.0 AND GFDL-1.3-only AND GFDL-1.1-only
Provides: bundled(glibc) = 2.41
# Apache-2.0 WITH LLVM-exception OR MIT OR NCSA
Provides: bundled(libcxx) = %{llvm_version}
# Apache-2.0 WITH LLVM-exception OR MIT OR NCSA
Provides: bundled(libcxxabi) = %{llvm_version}
# NCSA
Provides: bundled(libunwind) = %{llvm_version}
# BSD, LGPG, ZPL
Provides: bundled(mingw) = 3839e21b08807479a31d5a9764666f82ae2f0356
# MIT
Provides: bundled(musl) = 1.2.5
# Apache-2.0 WITH LLVM-exception AND Apache-2.0 AND MIT AND BSD-2-Clause
Provides: bundled(wasi-libc) = d03829489904d38c624f6de9983190f1e5e7c9c5
Conflicts: zig
ExclusiveArch: %{zig_arches}
Packager: Gilver E. <rockgrub@disroot.org>
# Must be defined AFTER the version is
%global zig_build_options %{shrink: \
--verbose \
--release=fast \
--summary all \
\
-Dtarget=native \
-Dcpu=baseline \
--zig-lib-dir lib \
--build-id=sha1 \
\
--cache-dir "%{zig_cache_dir}" \
--global-cache-dir "%{zig_cache_dir}" \
\
-Dversion-string="%(v=%{version_no_tilde}; echo ${v:0:6})" \
-Dstatic-llvm=false \
-Denable-llvm=true \
-Dno-langref=true \
-Dstd-docs=false \
-Dpie \
-Dconfig_h="%{__cmake_builddir}/config.h" \
}
%global zig_install_options %zig_build_options %{shrink: \
--prefix "%{_prefix}" \
}
%description
Zig is an open source alternative to C.
This package provides the master/"prerelease" builds of the Zig compiler and the associated runtime.
Please note these are not stable releases and should only be used for Zig projects that use these or Git versions of Zig.
# The Zig stdlib only contains uncompiled code
%package libs
Summary: Zig Standard Library
Conflicts: zig-libs
BuildArch: noarch
%description libs
Zig Standard Library
%if %{with docs}
%package doc
Summary: Documentation for Zig
Conflicts: zig-doc
BuildArch: noarch
Requires: %{name} = %{version}
%description doc
Documentation for Zig. For more information, visit %{url}
%endif
%prep
/usr/bin/minisign -V -m %{SOURCE0} -x %{SOURCE1} -P %{public_key}
%autosetup -p1 -n zig-%{version_no_tilde}
%if %{without bootstrap}
# Ensure that the pre-build stage1 binary is not used
rm -f stage1/zig1.wasm
%endif
%build
# zig doesn't know how to dynamically link llvm on its own so we need cmake to generate a header ahead of time
# if we provide the header we need to also build zigcpp
# C_FLAGS: wasm2c output generates a lot of noise with -Wunused.
# EXTRA_BUILD_ARGS: explicitly specify a build-id
%cmake \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-DNDEBUG -Wno-unused" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-DNDEBUG -Wno-unused" \
\
-DZIG_EXTRA_BUILD_ARGS:STRING="--verbose;--build-id=sha1" \
-DZIG_SHARED_LLVM:BOOL=true \
-DZIG_PIE:BOOL=true \
\
-DZIG_TARGET_MCPU:STRING=baseline \
-DZIG_TARGET_TRIPLE:STRING=native \
\
-DZIG_VERSION:STRING="%(v=%{version_no_tilde}; echo ${v:0:6})"
%if %{with bootstrap}
%cmake_build --target stage3
%else
%cmake_build --target zigcpp
zig build %{zig_build_options}
# Zig has no official manpage
# https://github.com/ziglang/zig/issues/715
help2man --no-discard-stderr --no-info "./zig-out/bin/zig" --version-option=version --output=zig.1
%endif
%if %{with docs}
# Use the newly made stage 3 compiler to generate docs
# Zig has an extremely annoying issue with transitive failures when trying to build the docs, retry until it succeeds
max=3
attempt=1
while ./zig-out/bin/zig build docs \
--verbose \
--global-cache-dir "%{zig_cache_dir}" \
-Dversion-string="%(v=%{version_no_tilde}; echo ${v:0:6})"; [[ $? -ne 0 ]];
do
echo "Transitive failure. Trying again."
if [[ $attempt -eq $max ]]
then
break
fi
sleep 1
((attempt++))
done
%endif
%install
%if %{with bootstrap}
%cmake_install
%else
DESTDIR="%{buildroot}" zig build install %{zig_install_options}
install -Dpm644 zig.1 -t %{buildroot}%{_mandir}/man1/
%endif
%if %{with test}
%check
# Run reduced set of tests, based on the Zig CI
"%{buildroot}%{_bindir}/zig" test test/behavior.zig -Itest
%endif
%files
%license LICENSE
%{_bindir}/zig
%if %{without bootstrap}
%{_mandir}/man1/zig.1.*
%endif
%files libs
%{_prefix}/lib/zig
%if %{with docs}
%files doc
%doc README.md
%doc zig-out/doc/langref.html
%doc zig-out/doc/std
%endif
%changelog
* Sat May 10 2025 Gilver E. <rockgrub@disroot.org> - 0.15.0~dev.482+2c241b263-2
- Added GCC runtime dependency to pass system information to Zig
* Fri Apr 25 2025 Gilver E. <rockgrub@disroot.org> - 0.15.0~dev.384+c06fecd46-2
- Ported Fedora Zig patches
* Wed Apr 23 2025 Gilver E. <rockgrub@disroot.org>
- Initial package