Rebuild for new efi-rpm-macros, now that it has settled down a bit.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
8e03d4aabe
commit
4e9dca82ba
26
gnu-efi.spec
26
gnu-efi.spec
@ -2,13 +2,13 @@ Summary: Development Libraries and headers for EFI
|
|||||||
Name: gnu-efi
|
Name: gnu-efi
|
||||||
Version: 3.0.8
|
Version: 3.0.8
|
||||||
%global tarball_version 3.0.6
|
%global tarball_version 3.0.6
|
||||||
Release: 3%{?dist}%{?buildid}
|
Release: 4%{?dist}%{?buildid}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Group: Development/System
|
Group: Development/System
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: ftp://ftp.hpl.hp.com/pub/linux-ia64
|
URL: ftp://ftp.hpl.hp.com/pub/linux-ia64
|
||||||
ExclusiveArch: %{efi}
|
ExclusiveArch: %{efi}
|
||||||
BuildRequires: efi-rpm-macros
|
BuildRequires: efi-srpm-macros >= 3-2
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
# So... in some build environments, glibc32 provides some headers. In
|
# So... in some build environments, glibc32 provides some headers. In
|
||||||
@ -98,13 +98,13 @@ git config --unset user.email
|
|||||||
git config --unset user.name
|
git config --unset user.name
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Package cannot build with %{?_smp_mflags}.
|
# Package cannot build with %%{?_smp_mflags}.
|
||||||
make
|
make
|
||||||
make apps
|
make apps
|
||||||
if [[ -n "%{efi_alt_arch}" ]] ; then
|
%if %{efi_has_alt_arch}
|
||||||
setarch linux32 -B make ARCH=%{efi_alt_arch} PREFIX=%{_prefix} LIBDIR=%{_prefix}/%{lib}
|
setarch linux32 -B make ARCH=%{efi_alt_arch} PREFIX=%{_prefix} LIBDIR=%{_prefix}/%{lib}
|
||||||
setarch linux32 -B make ARCH=%{efi_alt_arch} PREFIX=%{_prefix} LIBDIR=%{_prefix}/%{lib} apps
|
setarch linux32 -B make ARCH=%{efi_alt_arch} PREFIX=%{_prefix} LIBDIR=%{_prefix}/%{lib} apps
|
||||||
fi
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -115,14 +115,14 @@ make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} install
|
|||||||
mv %{buildroot}/%{_libdir}/*.lds %{buildroot}/%{_libdir}/*.o %{buildroot}/%{_libdir}/gnuefi
|
mv %{buildroot}/%{_libdir}/*.lds %{buildroot}/%{_libdir}/*.o %{buildroot}/%{_libdir}/gnuefi
|
||||||
mv %{efi_arch}/apps/{route80h.efi,modelist.efi} %{buildroot}%{efi_esp_dir}/%{efi_arch}/
|
mv %{efi_arch}/apps/{route80h.efi,modelist.efi} %{buildroot}%{efi_esp_dir}/%{efi_arch}/
|
||||||
|
|
||||||
if [[ -n "%{efi_alt_arch}" ]] ; then
|
%if %{efi_has_alt_arch}
|
||||||
mkdir -p %{buildroot}/%{_prefix}/%{lib}/gnuefi
|
mkdir -p %{buildroot}/%{_prefix}/%{lib}/gnuefi
|
||||||
mkdir -p %{buildroot}%{efi_esp_dir}/%{efi_alt_arch}
|
mkdir -p %{buildroot}%{efi_esp_dir}/%{efi_alt_arch}
|
||||||
|
|
||||||
setarch linux32 -B make PREFIX=%{_prefix} LIBDIR=%{_prefix}/%{lib} INSTALLROOT=%{buildroot} ARCH=%{efi_alt_arch} install
|
setarch linux32 -B make PREFIX=%{_prefix} LIBDIR=%{_prefix}/%{lib} INSTALLROOT=%{buildroot} ARCH=%{efi_alt_arch} install
|
||||||
mv %{buildroot}/%{_prefix}/%{lib}/*.{lds,o} %{buildroot}/%{_prefix}/%{lib}/gnuefi/
|
mv %{buildroot}/%{_prefix}/%{lib}/*.{lds,o} %{buildroot}/%{_prefix}/%{lib}/gnuefi/
|
||||||
mv %{efi_alt_arch}/apps/{route80h.efi,modelist.efi} %{buildroot}%{efi_esp_dir}/%{efi_alt_arch}/
|
mv %{efi_alt_arch}/apps/{route80h.efi,modelist.efi} %{buildroot}%{efi_esp_dir}/%{efi_alt_arch}/
|
||||||
fi
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_prefix}/%{lib}*/*
|
%{_prefix}/%{lib}*/*
|
||||||
@ -133,11 +133,17 @@ fi
|
|||||||
%{_includedir}/efi
|
%{_includedir}/efi
|
||||||
|
|
||||||
%files utils
|
%files utils
|
||||||
%dir %attr(0700,root,root) %{efi_esp_dir}/
|
%dir %attr(0700,root,root) %{efi_esp_dir}/%{efi_arch}/
|
||||||
%dir %attr(0700,root,root) %{efi_esp_dir}/*/
|
%attr(0700,root,root) %{efi_esp_dir}/%{efi_arch}/*.efi
|
||||||
%attr(0700,root,root) %{efi_esp_dir}/*/*.efi
|
%if %{efi_has_alt_arch}
|
||||||
|
%dir %attr(0700,root,root) %{efi_esp_dir}/%{efi_alt_arch}/
|
||||||
|
%attr(0700,root,root) %{efi_esp_dir}/%{efi_alt_arch}/*.efi
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 04 2018 Peter Jones <pjones@redhat.com> - 3.0.8-4
|
||||||
|
- Rebuild for new efi-rpm-macros, now that it has settled down a bit.
|
||||||
|
|
||||||
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 3.0.8-3
|
* Tue May 01 2018 Peter Jones <pjones@redhat.com> - 3.0.8-3
|
||||||
- Use efi-rpm-macros instead of defining all the efi directory and arch
|
- Use efi-rpm-macros instead of defining all the efi directory and arch
|
||||||
stuff ourselves.
|
stuff ourselves.
|
||||||
|
Loading…
Reference in New Issue
Block a user