Commit graph

87 commits

Author SHA1 Message Date
Jan200101
57f3a79ce3
refactor: add changelog file and revert minisign macro
Add the changelog file to preserve historical package changes for
rpmautospec migration, as expected by packaging guidelines.
Revert the minisign macro usage back to plain minisign, as macros should
only refer to files installed by the current spec.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-08-08 18:51:30 +02:00
Rénich Bon Ćirić
99107eeb74
style: remove redundant comment from zig.spec
Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-08-08 18:51:06 +02:00
Rénich Bon Ćirić
dc01a78c50
refactor: migrate to rpmautospec and clean up spec headers
Migrated zig.spec to utilize %autorelease and %autochangelog, removing the
manual changelog section. Restructured and cleaned up the global variable
and macro definitions using minimalist section headers. Replaced hardcoded
/usr/bin/minisign with the guidelines-compliant %{_bindir}/minisign macro.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-08-08 18:51:03 +02:00
Fedora Release Engineering
373fd58fba Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:40:29 +00:00
Jan200101
1ffefc4662
Update to 0.16.0 2026-04-25 14:34:50 +02:00
Fedora Release Engineering
b5b6b37ec0 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 21:08:07 +00:00
Jan200101
38f18f6459
Rebuilt for EPEL 2026-01-04 17:56:04 +01:00
Jan200101
b9abbed4a8
use relative cache dir, put cache into vpath for clean separation
The zig cache dir used to be specified as an absolute path because of an
issue with build processes for local subdependencies changing the
current working directory incorrectly, this has since been fixed.
Additionally %{builddir} is a new construct that is not available under
EPEL, %{_builddir}/%{?buildsubdir} was considered however there is no
need for an absolute path at this time.

The generated objects should never match on different architectures due
to how the cache system is designed however there this may cause
confusion while debugging so its been put under %{_vpath_builddir}.
Specifying a direct cache name would be possible however I think
_vpath_builddir has become pretty well known to maintainers and would
best be suited for this.
2026-01-04 17:26:48 +01:00
Jan200101
393d1df948
limit architectures for EPEL
Zig depends on a C compiler (gcc for EPEL/fedora) during bootstraping
by transpiling itself to C then compiling that.
The C code that is generated runs into edge cases with
older gcc versions that triggers unique errors on more exotic hardware
such as RISC or ARM

changes to this need to be copied into zig-srpm-macros
2026-01-04 15:56:12 +01:00
Jan200101
61f511df21
add patch to strip out LLVM targets for EPEL support 2026-01-04 15:56:12 +01:00
Jan200101
0c4d9963b5
force minisign check to be plaintext 2026-01-04 15:56:00 +01:00
Jan200101
28b9e0c24c
verify filename in minisig signed comment
this is an additional layer to protect against the
wrong archive version being downloaded.
2025-12-14 13:34:27 +01:00
Jan200101
55a3e42937
Update to 0.15.2 2025-10-12 10:34:29 +02:00
Fedora Release Engineering
638b1b872e Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 21:18:12 +00:00
Jan200101
a298b2a8fb
Update to 0.14.1 2025-06-09 18:31:46 +02:00
Jan200101
5466b3ff26
add patch to add library directories 2025-05-27 16:16:32 +02:00
Jan200101
3f9c4abd5e
add gcc to runtime dependencies
zig invokes the C compiler to figure out system info like where system
2025-05-10 01:36:39 +02:00
Jan200101
098a032507
fix and re-enable documentation 2025-04-24 18:31:29 +02:00
Jan200101
9dbb6c1d28
disable docs
docs fail to generate because the build runner is unable to find the zig lib directory, despite it being present.
it will be skipped for the initial build and included again once its figured out
2025-04-22 10:32:26 +02:00
Jan200101
e2e82e488a
reuse same build options when building docs 2025-04-22 10:01:52 +02:00
Jan200101
0ec1977ad7
add default build-id to macro, correctly handle undefined macro
thanks alebastr for pointing this out, unsure why I hadn't run into this myself
2025-04-22 09:26:41 +02:00
Jan200101
f60ca2269e
fix patch name 2025-04-22 00:01:00 +02:00
Jan200101
21b8f7dff6
add patch to bump memory limits
this should fix an issue not previously observed with aarch64 builds
2025-04-21 23:40:41 +02:00
Jan200101
0c6022a563
set fedora llvm compat version to 42
this flew past me
2025-04-21 21:30:25 +02:00
Jan200101
c7d17d37d7
upload new sources 2025-04-21 21:14:52 +02:00
Jan200101
0a50d1817b
Update to 0.14.0 2025-04-13 20:15:51 +02:00
Jan200101
284dc4f1a3
add user provided test and fetch options 2025-02-01 19:21:24 +01:00
Jan200101
d0f0b383da
bump release 2025-01-27 16:35:42 +01:00
Jan200101
901fbb9f17
specify to build against local zig stdlib directory 2025-01-27 16:34:37 +01:00
Jan200101
fecba593ad
use release fast instead of release safe
this doesn't match how how we build other zig projects but it matches how stage3 is build using cmake.
I hope this brings the aarch64 memory usage down far enough for it to compile
2025-01-27 15:46:08 +01:00
Jan200101
3220db0cdf
enable position independent executable for the zig build 2025-01-27 15:21:36 +01:00
Jan200101
3f349af1df
bump release 2025-01-27 13:59:56 +01:00
Jan200101
8cc224672e
build stage 3 using zig build system 2025-01-27 13:59:52 +01:00
Jan200101
a70f739094
add user provided options to the end of the build and install options 2025-01-27 11:03:01 +01:00
Jan200101
e48280957a
drop unused patch
the patch was originally introduced to fix some hash related issues where the artifacts created by zig may influence the hash creation.
This is only an issue when the build.zig.zon of a project specifies "" as a path, which means "include the whole project foler" including any sort of output or build cache.
While this hasn't caused any issues for anyone this is undesired behavior and changes how zig operates
its best to start a discussion with upstream how this best be dealt with
2025-01-27 10:05:12 +01:00
Jan200101
2bbfea5a46
separate package dir from cache dir, add prepare macro
`zig build --system` fails if the given path does not exist
this hasn't been an issue for river or ghostty since they pull in dependencies which makes zig create the given path, but ncdu doesn't have any dependencies.
2025-01-27 10:05:12 +01:00
Jan200101
6150a6d460
rebuild against fixed llvm 2025-01-23 18:36:02 +01:00
Fedora Release Engineering
72e170e8d6 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:46:02 +00:00
Jan200101
ceb0aad27a
quote paths to prevent any accidents 2025-01-01 14:37:31 +01:00
Jan200101
f0f8c54d66
update baseline list, add summary flag to general options
the summary flag outputs a complete build summary of the whole build tree output in an orderly tree structure, very useful for inspecting what the build system actually did
2025-01-01 13:20:03 +01:00
Jan200101
5087b7f0b0
bump release 2024-12-30 12:08:21 +01:00
Jan200101
c61f4bb7e8
set llvm_compat for Fedora 41
Fedora 41 now ships llvm19 by default
2024-12-30 11:50:27 +01:00
Jan200101
c8cfc2b53d
correct macro variables
- zig does not handle relative paths passed to the first process so we need to specify an absolute path
- system integration was accidentally broken by an extra % sign
- system flag was used on cache instead of package directory
2024-12-30 11:49:48 +01:00
Jan200101
b72f379bfd
update callaway licenses to follow SPDX 2024-12-30 11:46:35 +01:00
Miroslav Suchý
cf62d59e74 convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-09-04 23:02:26 +02:00
Fedora Release Engineering
8a08922842 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:52:01 +00:00
Jan200101
8736cbd905
bump release 2024-06-11 22:47:27 +02:00
Jan200101
7a78a337a5
Update to 0.13.0 2024-06-11 14:03:34 +02:00
Jan200101
932de196c3
Update to 0.12.1 2024-06-11 10:57:05 +02:00
Jan200101
7048d61867
Update to 0.12.0 2024-06-11 10:57:05 +02:00