render / rpms / edk2

Forked from rpms/edk2 2 months ago
Clone

Blame edk2.spec

49ef31
%global SVNDATE   20151127
49ef31
%global SVNREV    18975
Paolo Bonzini 9f191d
49ef31
Name:           edk2
49ef31
Version:        %{SVNDATE}svn%{SVNREV}
50ee76
Release:        3%{?dist}
49ef31
Summary:        EFI Development Kit II
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
# There are no formal releases from upstream.
Paolo Bonzini 9f191d
# Tarballs are created with:
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
# svn export -r ${SVNREV} \
Paolo Bonzini 98fad1
#     https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools edk2-buildtools-r${SVNREV}
Paolo Bonzini 7fb401
# rm -rf edk2-buildtools-r${SVNREV}/Bin
Paolo Bonzini 7fb401
# tar -cv edk2-buildtools-r${SVNREV} | xz -6 > edk2-buildtools-r${SVNREV}.tar.xz
49ef31
Source0:        edk2-buildtools-r%{SVNREV}.tar.xz
49ef31
Patch1:         basetools-arm.patch
7e2328
Patch2:         0001-BaseTools-LzmaCompress-eliminate-_maxMode-and-bogus-.patch
Paolo Bonzini 9f191d
49ef31
License:        BSD
49ef31
Group:          Applications/Emulators
49ef31
URL:            http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EDK2
Paolo Bonzini 9f191d
Paolo Bonzini 517112
# We need to build tools everywhere, but how is still an open question
Kay Sievers bf879e
# https://bugzilla.redhat.com/show_bug.cgi?id=992180
49ef31
ExclusiveArch:  %{ix86} x86_64 %{arm}
Dan Horák 151636
49ef31
BuildRequires:  python2-devel
49ef31
BuildRequires:  libuuid-devel
Paolo Bonzini 9f191d
49ef31
Requires:       edk2-tools%{?_isa} = %{version}-%{release}
49ef31
Requires:       edk2-tools-doc%{?_isa} = %{version}-%{release}
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%description
Kay Sievers bf879e
EDK II is a development code base for creating UEFI drivers, applications
Kay Sievers bf879e
and firmware images.
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%package tools
49ef31
Summary:        EFI Development Kit II Tools
49ef31
Group:          Development/Tools
49ef31
Requires:       edk2-tools-python = %{version}-%{release}
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%description tools
Paolo Bonzini 9f191d
This package provides tools that are needed to
Paolo Bonzini 9f191d
build EFI executables and ROMs using the GNU tools.
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%package tools-python
49ef31
Summary:        EFI Development Kit II Tools
49ef31
Group:          Development/Tools
49ef31
Requires:       python
Paolo Bonzini 9f191d
BuildArch:      noarch
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%description tools-python
Paolo Bonzini 9f191d
This package provides tools that are needed to build EFI executables
Paolo Bonzini 9f191d
and ROMs using the GNU tools.  You do not need to install this package;
Paolo Bonzini 9f191d
you probably want to install edk2-tools only.
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%package tools-doc
49ef31
Summary:        Documentation for EFI Development Kit II Tools
49ef31
Group:          Development/Tools
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%description tools-doc
Paolo Bonzini 9f191d
This package documents the tools that are needed to
Paolo Bonzini 9f191d
build EFI executables and ROMs using the GNU tools.
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%prep
Paolo Bonzini 7fb401
%setup -q -n edk2-buildtools-r%{SVNREV}
Paolo Bonzini 60a9a2
%patch1 -p1
7e2328
%patch2 -p2
7e2328
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%build
Paolo Bonzini 7fb401
export WORKSPACE=`pwd`
Paolo Bonzini 9f191d
2ffbb0
# Build is broken if MAKEFLAGS contains -j option.
2ffbb0
unset MAKEFLAGS
Paolo Bonzini 7fb401
make
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%install
Paolo Bonzini 9f191d
mkdir -p %{buildroot}%{_bindir}
49ef31
install \
49ef31
        Source/C/bin/BootSectImage \
49ef31
        Source/C/bin/EfiLdrImage \
49ef31
        Source/C/bin/EfiRom \
49ef31
        Source/C/bin/GenCrc32 \
49ef31
        Source/C/bin/GenFfs \
49ef31
        Source/C/bin/GenFv \
49ef31
        Source/C/bin/GenFw \
49ef31
        Source/C/bin/GenPage \
49ef31
        Source/C/bin/GenSec \
49ef31
        Source/C/bin/GenVtf \
49ef31
        Source/C/bin/GnuGenBootSector \
49ef31
        Source/C/bin/LzmaCompress \
49ef31
        BinWrappers/PosixLike/LzmaF86Compress \
49ef31
        Source/C/bin/Split \
49ef31
        Source/C/bin/TianoCompress \
49ef31
        Source/C/bin/VfrCompile \
49ef31
        Source/C/bin/VolInfo \
49ef31
        %{buildroot}%{_bindir}
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
ln -f %{buildroot}%{_bindir}/GnuGenBootSector \
49ef31
        %{buildroot}%{_bindir}/GenBootSector
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
mkdir -p %{buildroot}%{_datadir}/%{name}
Paolo Bonzini 0655ef
install \
Paolo Bonzini 7fb401
        BuildEnv \
Paolo Bonzini 0655ef
        %{buildroot}%{_datadir}/%{name}
Paolo Bonzini d282ae
Paolo Bonzini d282ae
mkdir -p %{buildroot}%{_datadir}/%{name}/Conf
Paolo Bonzini d282ae
install \
Paolo Bonzini 7fb401
        Conf/build_rule.template \
Paolo Bonzini 7fb401
        Conf/tools_def.template \
Paolo Bonzini 7fb401
        Conf/target.template \
Paolo Bonzini d282ae
        %{buildroot}%{_datadir}/%{name}/Conf
Paolo Bonzini d282ae
Paolo Bonzini d282ae
mkdir -p %{buildroot}%{_datadir}/%{name}/Scripts
Paolo Bonzini d282ae
install \
Paolo Bonzini ac38c1
        Scripts/GccBase.lds \
Paolo Bonzini d282ae
        %{buildroot}%{_datadir}/%{name}/Scripts
Paolo Bonzini d282ae
Paolo Bonzini 7fb401
cp -R Source/Python %{buildroot}%{_datadir}/%{name}/Python
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
find %{buildroot}%{_datadir}/%{name}/Python -name "*.pyd" | xargs rm
Paolo Bonzini 9f191d
Paolo Bonzini d282ae
for i in build BPDG Ecc GenDepex GenFds GenPatchPcdTable PatchPcdValue TargetTool Trim UPT; do
Paolo Bonzini 9f191d
  echo '#!/bin/sh
Paolo Bonzini 9f191d
PYTHONPATH=%{_datadir}/%{name}/Python
Paolo Bonzini 9f191d
export PYTHONPATH
Paolo Bonzini 9f191d
exec python '%{_datadir}/%{name}/Python/$i/$i.py' "$@"' > %{buildroot}%{_bindir}/$i
Paolo Bonzini 9f191d
  chmod +x %{buildroot}%{_bindir}/$i
Paolo Bonzini 9f191d
done
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%files tools
Paolo Bonzini 9f191d
%{_bindir}/BootSectImage
Paolo Bonzini 9f191d
%{_bindir}/EfiLdrImage
Paolo Bonzini 9f191d
%{_bindir}/EfiRom
Paolo Bonzini 9f191d
%{_bindir}/GenBootSector
Paolo Bonzini 9f191d
%{_bindir}/GenCrc32
Paolo Bonzini 9f191d
%{_bindir}/GenFfs
Paolo Bonzini 9f191d
%{_bindir}/GenFv
Paolo Bonzini 9f191d
%{_bindir}/GenFw
Paolo Bonzini 9f191d
%{_bindir}/GenPage
Paolo Bonzini 9f191d
%{_bindir}/GenSec
Paolo Bonzini 9f191d
%{_bindir}/GenVtf
Paolo Bonzini 9f191d
%{_bindir}/GnuGenBootSector
Paolo Bonzini 9f191d
%{_bindir}/LzmaCompress
Paolo Bonzini d282ae
%{_bindir}/LzmaF86Compress
Paolo Bonzini 9f191d
%{_bindir}/Split
Paolo Bonzini d282ae
%{_bindir}/TianoCompress
Paolo Bonzini 9f191d
%{_bindir}/VfrCompile
Paolo Bonzini 9f191d
%{_bindir}/VolInfo
Paolo Bonzini 0655ef
%{_datadir}/%{name}/BuildEnv
Paolo Bonzini d282ae
%{_datadir}/%{name}/Conf/
Paolo Bonzini d282ae
%{_datadir}/%{name}/Scripts/
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%files tools-python
Paolo Bonzini d282ae
%{_bindir}/build
Paolo Bonzini 9f191d
%{_bindir}/BPDG
Paolo Bonzini d282ae
%{_bindir}/Ecc
Paolo Bonzini 9f191d
%{_bindir}/GenDepex
Paolo Bonzini 9f191d
%{_bindir}/GenFds
Paolo Bonzini 9f191d
%{_bindir}/GenPatchPcdTable
Paolo Bonzini 9f191d
%{_bindir}/PatchPcdValue
Paolo Bonzini 9f191d
%{_bindir}/TargetTool
Paolo Bonzini 9f191d
%{_bindir}/Trim
Paolo Bonzini 9f191d
%{_bindir}/UPT
Paolo Bonzini 9f191d
%{_datadir}/%{name}/Python/
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%files tools-doc
Paolo Bonzini 7fb401
%doc UserManuals/BootSectImage_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/Build_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/EfiLdrImage_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/EfiRom_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenBootSector_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenCrc32_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenDepex_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenFds_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenFfs_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenFv_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenFw_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenPage_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenPatchPcdTable_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenSec_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/GenVtf_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/LzmaCompress_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/PatchPcdValue_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/SplitFile_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/TargetTool_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/TianoCompress_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/Trim_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/VfrCompiler_Utility_Man_Page.rtf
Paolo Bonzini 7fb401
%doc UserManuals/VolInfo_Utility_Man_Page.rtf
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
%changelog
7e2328
* Mon Feb 15 2016 Cole Robinson <crobinso@redhat.com> 20151127svn18975-3
7e2328
- Fix FTBFS gcc warning (bz 1307439)
7e2328
f62d42
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20151127svn18975-2
f62d42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f62d42
7e2328
* Fri Nov 27 2015 Paolo Bonzini <pbonzini@redhat.com> - 20151127svn18975-1
Paolo Bonzini ac38c1
- Rebase to 20151127svn18975-1
Paolo Bonzini ac38c1
- Linker script renamed to GccBase.lds
Paolo Bonzini ac38c1
2478ec
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20150519svn17469-2
2478ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2478ec
Paolo Bonzini ac38c1
* Tue May 19 2015 Paolo Bonzini <pbonzini@redhat.com> - 20150519svn17469-1
Paolo Bonzini 98fad1
- Rebase to 20150519svn17469-1
Paolo Bonzini 98fad1
- edk2-remove-tree-check.patch now upstream
Paolo Bonzini 98fad1
Kalev Lember e9a765
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 20140724svn2670-6
Kalev Lember e9a765
- Rebuilt for GCC 5 C++11 ABI change
Kalev Lember e9a765
Peter Robinson c83d14
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20140724svn2670-5
Peter Robinson c83d14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Peter Robinson c83d14
Paolo Bonzini d2839d
* Thu Jul 24 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140724svn2670-1
Paolo Bonzini d2839d
- Rebase to 20140724svn2670-1
Paolo Bonzini d2839d
Paolo Bonzini 7fb401
* Tue Jun 24 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140624svn2649-1
Paolo Bonzini 7fb401
- Use standalone .tar.xz from buildtools repo
Paolo Bonzini 7fb401
Paolo Bonzini 0655ef
* Tue Jun 24 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140328svn15376-4
Paolo Bonzini 0655ef
- Install BuildTools/BaseEnv
Paolo Bonzini 0655ef
Paolo Bonzini d282ae
* Mon Jun 23 2014 Paolo Bonzini <pbonzini@redhat.com> - 20140328svn15376-3
Paolo Bonzini d282ae
- Rebase to get GCC48 configuration
Paolo Bonzini d282ae
- Package EDK_TOOLS_PATH as /usr/share/edk2
Paolo Bonzini d282ae
- Package "build" and LzmaF86Compress too, as well as the new
Paolo Bonzini d282ae
  tools Ecc and TianoCompress.
Paolo Bonzini d282ae
4d0780
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20131114svn14844-2
4d0780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4d0780
Paolo Bonzini f8ed42
* Thu Nov 14 2013 Paolo Bonzini <pbonzini@redhat.com> - 20131114svn14844-1
Paolo Bonzini f8ed42
- Upgrade to r14844.
Paolo Bonzini 60a9a2
- Remove upstreamed parts of patch 1.
Paolo Bonzini f8ed42
Paolo Bonzini 79e160
* Fri Nov 8 2013 Paolo Bonzini <pbonzini@redhat.com> - 20130515svn14365-7
Paolo Bonzini 79e160
- Make BaseTools compile on ARM.
Paolo Bonzini 79e160
Paolo Bonzini 517112
* Fri Aug 30 2013 Paolo Bonzini <pbonzini@redhat.com> - 20130515svn14365-6
Paolo Bonzini 517112
- Revert previous change; firmware packages should be noarch, and building
Paolo Bonzini 517112
  BaseTools twice is simply wrong.
Paolo Bonzini 517112
Kay Sievers a1a88e
* Mon Aug 19 2013 Kay Sievers <kay@redhat.com> - 20130515svn14365-5
Kay Sievers a1a88e
- Add sub-package with EFI shell
Kay Sievers a1a88e
e144da
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130515svn14365-4
e144da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e144da
Dan Horák 151636
* Thu May 23 2013 Dan Horák <dan[at]danny.cz> 20130515svn14365-3
Dan Horák 151636
- set ExclusiveArch
Dan Horák 151636
Paolo Bonzini 9f191d
* Thu May 16 2013 Paolo Bonzini <pbonzini@redhat.com> 20130515svn14365-2
Paolo Bonzini 9f191d
- Fix edk2-tools-python Requires
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
* Wed May 15 2013 Paolo Bonzini <pbonzini@redhat.com> 20130515svn14365-1
Paolo Bonzini 9f191d
- Split edk2-tools-doc and edk2-tools-python
Paolo Bonzini 9f191d
- Fix Python BuildRequires
Paolo Bonzini 9f191d
- Remove FatBinPkg at package creation time.
Paolo Bonzini 9f191d
- Use fully versioned dependency.
Paolo Bonzini 9f191d
- Add comment on how to generate the sources.
Paolo Bonzini 9f191d
Paolo Bonzini 9f191d
* Thu May 2 2013 Paolo Bonzini <pbonzini@redhat.com> 20130502.g732d199-1
Paolo Bonzini 9f191d
- Create.