Compare commits
32 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df65638f09 | ||
|
|
f48f0ee61a | ||
|
|
ba0bfd9af5 | ||
|
|
3d5ed19498 | ||
|
|
da1c3e396c | ||
|
|
c6adc844cf | ||
|
|
d478e7cdfe | ||
|
|
1ed7c4ef77 | ||
|
|
69f58c6f33 | ||
|
|
87796edef1 | ||
|
|
a96f474231 | ||
|
|
dbd1e219b7 | ||
|
|
252b893511 | ||
|
|
a1b63342a1 | ||
|
|
cc8811bdf0 | ||
|
|
ad2820f05a | ||
|
|
6ac3a88d93 | ||
|
|
a61cb18465 | ||
|
|
c1a23449a6 | ||
|
|
eb4787cf52 | ||
|
|
537ab83634 | ||
|
|
f7f65a6b93 | ||
|
|
fae5cbc981 | ||
|
|
07e34e7eca |
||
|
|
40022edca2 | ||
|
|
d08392f68b | ||
|
|
b8742936f3 |
||
|
|
75b8f0ef54 | ||
|
|
41f6483a6e | ||
|
|
f8ed1b5762 | ||
|
|
0746bc5379 | ||
|
|
129a7f0b78 |
2 changed files with 115 additions and 23 deletions
15
mactel-boot-c99.patch
Normal file
15
mactel-boot-c99.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Include <unistd.h> for the close function. This prevents a future
|
||||
build failure due to an implicit function declaration.
|
||||
|
||||
diff --git a/bless.c b/bless.c
|
||||
index 4d107feff0c0ece4..60d426e897c37e4d 100644
|
||||
--- a/bless.c
|
||||
+++ b/bless.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <fcntl.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#define HFSPLUS_IOC_BLESS _IO('h', 0x80)
|
||||
|
||||
123
mactel-boot.spec
123
mactel-boot.spec
|
|
@ -1,16 +1,18 @@
|
|||
Name: mactel-boot
|
||||
Version: 0.9
|
||||
Release: 13%{?dist}
|
||||
Release: 36%{?dist}
|
||||
Summary: Intel Mac boot files
|
||||
|
||||
Group: System Environment/Base
|
||||
License: GPLv2+
|
||||
License: GPL-2.0-or-later
|
||||
URL: http://www.codon.org.uk/~mjg59/mactel-boot/
|
||||
Source: http://www.codon.org.uk/~mjg59/mactel-boot/%{name}-%{version}.tar.bz2
|
||||
Source1: mactel-boot-setup
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
Patch0: mactel-boot-c99.patch
|
||||
|
||||
ExclusiveArch: x86_64
|
||||
ExclusiveArch: %{x86_64}
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
|
||||
Requires: coreutils
|
||||
|
||||
|
|
@ -18,39 +20,114 @@ Requires: coreutils
|
|||
Files for booting Fedora on Intel-based Apple hardware using EFI.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
make PRODUCTVERSION="Fedora %{fedora}" %{?_smp_mflags}
|
||||
%make_build PRODUCTVERSION="Fedora %{fedora}"
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
install -D -m 644 SystemVersion.plist $RPM_BUILD_ROOT/boot/efi/System/Library/CoreServices/SystemVersion.plist
|
||||
echo "This file is required for booting" >$RPM_BUILD_ROOT/boot/efi/mach_kernel
|
||||
touch $RPM_BUILD_ROOT/boot/efi/System/Library/CoreServices/boot.efi
|
||||
touch $RPM_BUILD_ROOT/boot/efi/.VolumeIcon.icns
|
||||
install -D %{SOURCE1} $RPM_BUILD_ROOT/usr/libexec/mactel-boot-setup
|
||||
%make_install
|
||||
install -Dpm 644 SystemVersion.plist %{buildroot}/boot/efi/System/Library/CoreServices/SystemVersion.plist
|
||||
echo "This file is required for booting" >%{buildroot}/boot/efi/mach_kernel
|
||||
touch %{buildroot}/boot/efi/System/Library/CoreServices/boot.efi
|
||||
touch %{buildroot}/boot/efi/.VolumeIcon.icns
|
||||
install -D %{SOURCE1} %{buildroot}%{_libexecdir}/mactel-boot-setup
|
||||
|
||||
%if "%{_sbindir}" != "/usr/sbin"
|
||||
# If sbin-bin merge, move everything accordingly
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
mv %{buildroot}%{_prefix}/sbin/* %{buildroot}%{_sbindir}
|
||||
rmdir %{buildroot}%{_prefix}/sbin
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc GPL
|
||||
%doc Copyright
|
||||
/usr/share/man/man1/hfs-bless.1.gz
|
||||
%license GPL
|
||||
%license Copyright
|
||||
%{_mandir}/man1/hfs-bless.1*
|
||||
/boot/efi/mach_kernel
|
||||
%dir /boot/efi/System/
|
||||
%dir /boot/efi/System/Library/
|
||||
%dir /boot/efi/System/Library/CoreServices/
|
||||
/boot/efi/System/Library/CoreServices/SystemVersion.plist
|
||||
/usr/sbin/hfs-bless
|
||||
/usr/libexec/mactel-boot-setup
|
||||
%{_sbindir}/hfs-bless
|
||||
%{_libexecdir}/mactel-boot-setup
|
||||
%attr(0755, root, root) %ghost /boot/efi/System/Library/CoreServices/boot.efi
|
||||
%attr(0644, root, root) %ghost /boot/efi/.VolumeIcon.icns
|
||||
|
||||
%triggerin -- grub-efi grub2-efi fedora-logos generic-logos
|
||||
/usr/libexec/mactel-boot-setup
|
||||
%{_libexecdir}/mactel-boot-setup
|
||||
|
||||
%changelog
|
||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-36
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Fri Mar 21 2025 Neal Gompa <ngompa@fedoraproject.org> - 0.9-35
|
||||
- Modernize spec and handle sbin-bin merge
|
||||
|
||||
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 0.9-34
|
||||
- convert license to SPDX
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-33
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-32
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-31
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Feb 17 2023 Florian Weimer <fweimer@redhat.com> - 0.9-29
|
||||
- Port to C99 (#2170958)
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-28
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-25
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-24
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Wed Mar 13 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.9-20
|
||||
- Own all the directories, use %%license
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue