public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/asahi-installer] rawhide: Unconditionally build the installer package and make it noarch
@ 2026-06-15 10:02 Davide Cavalca
0 siblings, 0 replies; only message in thread
From: Davide Cavalca @ 2026-06-15 10:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/asahi-installer
Branch : rawhide
Commit : 8382480a9c1a28acb5b558a85721148a59acc1ab
Author : Davide Cavalca <dcavalca@fedoraproject.org>
Date : 2026-06-15T11:52:39+02:00
Stats : +8/-22 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/asahi-installer/c/8382480a9c1a28acb5b558a85721148a59acc1ab?branch=rawhide
Log:
Unconditionally build the installer package and make it noarch
---
diff --git a/asahi-installer.spec b/asahi-installer.spec
index 9744fce..3b0ddd8 100644
--- a/asahi-installer.spec
+++ b/asahi-installer.spec
@@ -4,14 +4,6 @@
# it doesn't ship any binary objects itself
%global debug_package %{nil}
-# The installer package for macOS depends on m1n1-stage1, which is only
-# available on aarch64
-%ifarch aarch64
-%bcond installer_package 1
-%else
-%bcond installer_package 0
-%endif
-
# For the generated library symbol suffix
%if 0%{?__isa_bits} == 32
%global libsymbolsuffix %{nil}
@@ -58,18 +50,16 @@ BuildRequires: gnupg2
BuildRequires: python3-devel
BuildRequires: python3dist(asn1)
-%if %{with installer_package}
BuildRequires: bash
BuildRequires: cpio
BuildRequires: coreutils
BuildRequires: gzip
-BuildRequires: m1n1-stage1
+BuildRequires: m1n1-stage1 >= 1.6.0~rc1
BuildRequires: p7zip-plugins
BuildRequires: python3
BuildRequires: python3dist(certifi)
BuildRequires: system-logos
BuildRequires: tar
-%endif
# LZFSE isn't supported on big-endian architectures
# https://github.com/lzfse/lzfse/issues/23
@@ -78,7 +68,6 @@ ExcludeArch: s390x
%description
Asahi Linux installer
-%if %{with installer_package}
%package package
Summary: Asahi Linux Installer macOS package
# The installer itself is MIT, and so are the vendored libffi and python-asn1.
@@ -90,9 +79,12 @@ Provides: bundled(libffi) = %{installer_libffi_version}
Provides: bundled(python) = %{installer_python_version}
Provides: bundled(python-asn1) = %{installer_python_asn1_version}
+BuildArch: noarch
+# Drop once f45 is EOL
+Obsoletes: asahi-installer-package < 0.8.0-3
+
%description package
macOS package for the Asahi Linux installer
-%endif
%package -n python3-%{pypi_name}
Summary: Asahi Linux firmware tools
@@ -120,11 +112,9 @@ ln -s %SOURCE1 %SOURCE2 dl/
%pyproject_buildrequires -r
%build
-%if %{with installer_package}
-M1N1_STAGE1="%{_libdir}/m1n1-stage1/m1n1.bin" \
+M1N1_STAGE1="%{_prefix}/lib/m1n1-stage1/m1n1.bin" \
LOGO="%{_datadir}/pixmaps/bootloader/fedora.icns" \
./build.sh
-%endif
# Drop bundled asn1 module in favor of the system one; we do this here because
# the macOS package needs it.
@@ -136,19 +126,15 @@ rm asahi_firmware/asn1.py
%pyproject_install
%pyproject_save_files %{pypi_name}
-%if %{with installer_package}
-install -Dpm0644 -t %{buildroot}%{_libdir}/%{name}/releases releases/*
-%endif
+install -Dpm0644 -t %{buildroot}%{_prefix}/lib/%{name}/releases releases/*
%check
%pyproject_check_import
-%if %{with installer_package}
%files package
%license LICENSE
%doc README.md
-%{_libdir}/%{name}/
-%endif
+%{_prefix}/lib/%{name}/
%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-15 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 10:02 [rpms/asahi-installer] rawhide: Unconditionally build the installer package and make it noarch Davide Cavalca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox