2022-01-25 18:05:10 +00:00
|
|
|
# No, please don't break the linker. Thanks.
|
|
|
|
%undefine _auto_set_build_flags
|
|
|
|
|
2004-09-09 05:42:43 +00:00
|
|
|
Name: gnu-efi
|
2019-12-26 05:54:02 +00:00
|
|
|
Epoch: 1
|
2023-03-28 14:23:31 +00:00
|
|
|
Version: 3.0.18
|
|
|
|
Release: 1%{?dist}
|
2019-12-26 05:54:02 +00:00
|
|
|
Summary: Development Libraries and headers for EFI
|
2024-03-28 07:12:14 +00:00
|
|
|
License: BSD-2-Clause AND BSD-2-Clause-Patent AND BSD-3-Clause AND BSD-4-Clause AND GPL-2.0-or-later AND GPL-2.0-only
|
2019-12-26 05:54:02 +00:00
|
|
|
URL: https://sourceforge.net/projects/gnu-efi/
|
|
|
|
|
2023-03-28 14:23:31 +00:00
|
|
|
Source0: https://sourceforge.net/projects/gnu-efi/files/gnu-efi-%{version}.tar.bz2
|
|
|
|
|
|
|
|
# upstream this breaks non-GNU LD, Heinrich Schuchardt asked us not to do this:
|
|
|
|
# "The correct approach is to adjust the loader script to put non-static
|
|
|
|
# data into a different section than the code and to make the .text section RX."
|
|
|
|
#Patch0048: 0048-ld-Don-t-warn-about-RWX-segment-maps.patch
|
2019-12-26 05:54:02 +00:00
|
|
|
|
2018-05-01 17:29:09 +00:00
|
|
|
ExclusiveArch: %{efi}
|
2019-12-26 05:54:02 +00:00
|
|
|
BuildRequires: binutils
|
2021-09-24 22:57:39 +00:00
|
|
|
BuildRequires: efi-srpm-macros >= 5-4
|
2019-12-26 05:54:02 +00:00
|
|
|
BuildRequires: gcc
|
2023-03-28 14:23:31 +00:00
|
|
|
|
2020-01-28 19:24:49 +00:00
|
|
|
# We're explicitly *not* requiring glibc-headers, because it gets us
|
|
|
|
# cross-arch dependency problems in "fedpkg mockbuild" from x86_64.
|
|
|
|
# BuildRequires: glibc-headers
|
2017-03-13 17:46:24 +00:00
|
|
|
%ifarch x86_64
|
2018-03-13 16:01:52 +00:00
|
|
|
# So... in some build environments, glibc32 provides some headers. In
|
2024-01-23 18:20:55 +00:00
|
|
|
# others, glibc-devel.i686 does. They have no provides in common, as
|
|
|
|
# file provides in /usr/include or /usr/lib are not usable with dnf5.
|
|
|
|
BuildRequires: (glibc-devel(x86-32) or glibc32)
|
2017-03-13 17:46:24 +00:00
|
|
|
%endif
|
2021-01-05 05:12:42 +00:00
|
|
|
BuildRequires: make
|
2017-02-02 18:28:41 +00:00
|
|
|
|
2023-03-02 10:27:30 +00:00
|
|
|
# added 2020-01-24, so time is up...
|
|
|
|
Obsoletes: %{name}-compat < 3.0.11-12
|
|
|
|
|
2023-03-28 14:23:31 +00:00
|
|
|
# rpmlint, shut up.
|
2017-06-13 20:24:26 +00:00
|
|
|
%define lib %{nil}lib%{nil}
|
|
|
|
|
2009-05-13 14:21:43 +00:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
2017-06-13 20:24:26 +00:00
|
|
|
# brp-strip-static-archive will senselessly /add/ timestamps and uid/gid
|
|
|
|
# data to our .a and make them not multilib clean if we don't have this.
|
2019-11-15 15:10:37 +00:00
|
|
|
%undefine __brp_strip_static_archive
|
|
|
|
%global __brp_strip_static_archive find '%{buildroot}' -name '*.a' -print -exec %{__strip} -gDp {} \\;
|
2017-06-13 20:24:26 +00:00
|
|
|
|
2004-09-09 05:42:43 +00:00
|
|
|
%description
|
|
|
|
This package contains development headers and libraries for developing
|
|
|
|
applications that run under EFI (Extensible Firmware Interface).
|
|
|
|
|
2013-09-24 15:13:24 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development Libraries and headers for EFI
|
2017-03-13 17:46:24 +00:00
|
|
|
Obsoletes: gnu-efi < 1:3.0.2-1
|
2019-11-14 14:35:45 +00:00
|
|
|
Requires: gnu-efi = %{epoch}:%{version}-%{release}
|
2013-09-24 15:13:24 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains development headers and libraries for developing
|
|
|
|
applications that run under EFI (Extensible Firmware Interface).
|
|
|
|
|
|
|
|
%package utils
|
|
|
|
Summary: Utilities for EFI systems
|
|
|
|
|
|
|
|
%description utils
|
2018-04-30 16:52:05 +00:00
|
|
|
This package contains utilities for debugging and developing EFI systems.
|
2013-09-24 15:13:24 +00:00
|
|
|
|
2004-09-09 05:42:43 +00:00
|
|
|
%prep
|
2023-03-28 14:23:31 +00:00
|
|
|
%autosetup -p1
|
2004-09-09 05:42:43 +00:00
|
|
|
|
|
|
|
%build
|
2023-02-01 21:29:38 +00:00
|
|
|
%undefine _hardened_ldflags
|
2018-05-04 19:56:58 +00:00
|
|
|
# Package cannot build with %%{?_smp_mflags}.
|
2019-11-14 14:35:45 +00:00
|
|
|
make LIBDIR=%{_prefix}/lib
|
2017-03-13 18:34:33 +00:00
|
|
|
make apps
|
2004-09-09 05:42:43 +00:00
|
|
|
|
|
|
|
%install
|
2019-11-14 14:35:45 +00:00
|
|
|
make PREFIX=%{_prefix} LIBDIR=%{_prefix}/lib INSTALLROOT=%{buildroot} install
|
2019-11-14 14:35:45 +00:00
|
|
|
mkdir -p %{buildroot}/%{efi_esp_dir}/%{efi_arch}
|
2023-03-28 14:23:31 +00:00
|
|
|
mv %{buildroot}/usr/lib/gnuefi/apps/*.efi %{buildroot}%{efi_esp_dir}/%{efi_arch}/
|
2017-03-13 18:34:33 +00:00
|
|
|
|
2023-03-28 14:23:31 +00:00
|
|
|
# delete useless file
|
|
|
|
rm %{buildroot}/usr/lib/gnuefi/apps/debughook.efi.debug
|
2019-11-14 14:35:45 +00:00
|
|
|
|
2004-09-09 05:42:43 +00:00
|
|
|
%files
|
2023-03-28 14:23:31 +00:00
|
|
|
%{_prefix}/lib/*.o
|
|
|
|
%{_prefix}/lib/*.lds
|
2013-09-24 15:13:24 +00:00
|
|
|
|
|
|
|
%files devel
|
2019-12-26 05:54:02 +00:00
|
|
|
%doc README.*
|
2007-06-12 16:28:56 +00:00
|
|
|
%{_includedir}/efi
|
2023-03-28 14:23:31 +00:00
|
|
|
%{_prefix}/lib/libefi.a
|
|
|
|
%{_prefix}/lib/libgnuefi.a
|
|
|
|
%{_prefix}/lib/pkgconfig/gnu-efi.pc
|
2013-09-24 15:13:24 +00:00
|
|
|
|
|
|
|
%files utils
|
2018-05-04 19:56:58 +00:00
|
|
|
%dir %attr(0700,root,root) %{efi_esp_dir}/%{efi_arch}/
|
|
|
|
%attr(0700,root,root) %{efi_esp_dir}/%{efi_arch}/*.efi
|
2004-09-09 05:42:43 +00:00
|
|
|
|
|
|
|
%changelog
|
2023-03-28 14:23:31 +00:00
|
|
|
%autochangelog
|