Commit graph

75 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
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
0a50d1817b
Update to 0.14.0 2025-04-13 20:15:51 +02: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
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
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
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
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
Jan200101
d8a8ae5c93
Rebuild for bootstrapping 2024-02-21 21:50:11 +01:00
8c4bf36257
Update to 0.11.0
Since 0.11.0 includes a prebuilt wasm stage1, we are no longer allowed
to build and tag it directly[1].
Instead, we shall do the following:
 * Obtain an exception from the packaging committee[2]
 * Build initial package completely from stage1 to stage3 with
   `%%bcond bootstrap 1` (this can be done in a side-tag without any
   changes to the spec[3]).
 * Use the bootstrapped package to make a clean source-only build of
   stage3.
 * Discard the ~bootstrap and send the clean build to bodhi.

[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/#_exceptions
[2]: https://pagure.io/packaging-committee/issue/1319
[3]: https://pagure.io/packaging-committee/pull-request/1308#request_diff

Co-authored-by: Jan Drögehoff <sentrycraft123@gmail.com>
2024-01-27 13:21:36 -08:00
39e7a7ca51
Drop %%_zig_version macro
As discussed in https://bugzilla.redhat.com/show_bug.cgi?id=2142363#c5
2024-01-27 13:21:35 -08:00
13becf1d7b
Fix build with --without macro
Skip %%check and test dependencies when tests are disabled
Other minor cleanups
2024-01-27 13:21:33 -08:00
Benson Muite
36f7a7c316
Verify signature 2024-01-27 13:21:09 -08:00
Fedora Release Engineering
92cf9baa1f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 11:06:25 +00:00
Fedora Release Engineering
cb82d9f39e Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 19:41:38 +00:00
Jens Petersen
e8322f0e45 allow building on epel without %fedora 2023-07-03 00:32:56 +08:00