public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Davide Cavalca <dcavalca@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/asahi-installer] rawhide: Unconditionally build the installer package and make it noarch
Date: Mon, 15 Jun 2026 10:02:31 GMT	[thread overview]
Message-ID: <178151775154.1.13610493700131928323.rpms-asahi-installer-8382480a9c1a@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-06-15 10:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178151775154.1.13610493700131928323.rpms-asahi-installer-8382480a9c1a@fedoraproject.org \
    --to=dcavalca@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox