Replace %define with %global, drop hard tabs

This commit is contained in:
Cole Robinson 2015-12-29 12:03:01 -05:00
parent ac38c1f2c2
commit 49ef3160ba

View File

@ -1,10 +1,10 @@
%define SVNDATE 20151127 %global SVNDATE 20151127
%define SVNREV 18975 %global SVNREV 18975
Name: edk2 Name: edk2
Version: %{SVNDATE}svn%{SVNREV} Version: %{SVNDATE}svn%{SVNREV}
Release: 1%{?dist} Release: 1%{?dist}
Summary: EFI Development Kit II Summary: EFI Development Kit II
# There are no formal releases from upstream. # There are no formal releases from upstream.
# Tarballs are created with: # Tarballs are created with:
@ -13,40 +13,40 @@ Summary: EFI Development Kit II
# https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools edk2-buildtools-r${SVNREV} # https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools edk2-buildtools-r${SVNREV}
# rm -rf edk2-buildtools-r${SVNREV}/Bin # rm -rf edk2-buildtools-r${SVNREV}/Bin
# tar -cv edk2-buildtools-r${SVNREV} | xz -6 > edk2-buildtools-r${SVNREV}.tar.xz # tar -cv edk2-buildtools-r${SVNREV} | xz -6 > edk2-buildtools-r${SVNREV}.tar.xz
Source0: edk2-buildtools-r%{SVNREV}.tar.xz Source0: edk2-buildtools-r%{SVNREV}.tar.xz
Patch1: basetools-arm.patch Patch1: basetools-arm.patch
License: BSD License: BSD
Group: Applications/Emulators Group: Applications/Emulators
URL: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EDK2 URL: http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EDK2
# We need to build tools everywhere, but how is still an open question # We need to build tools everywhere, but how is still an open question
# https://bugzilla.redhat.com/show_bug.cgi?id=992180 # https://bugzilla.redhat.com/show_bug.cgi?id=992180
ExclusiveArch: %{ix86} x86_64 %{arm} ExclusiveArch: %{ix86} x86_64 %{arm}
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: libuuid-devel BuildRequires: libuuid-devel
Requires: edk2-tools%{?_isa} = %{version}-%{release} Requires: edk2-tools%{?_isa} = %{version}-%{release}
Requires: edk2-tools-doc%{?_isa} = %{version}-%{release} Requires: edk2-tools-doc%{?_isa} = %{version}-%{release}
%description %description
EDK II is a development code base for creating UEFI drivers, applications EDK II is a development code base for creating UEFI drivers, applications
and firmware images. and firmware images.
%package tools %package tools
Summary: EFI Development Kit II Tools Summary: EFI Development Kit II Tools
Group: Development/Tools Group: Development/Tools
Requires: edk2-tools-python = %{version}-%{release} Requires: edk2-tools-python = %{version}-%{release}
%description tools %description tools
This package provides tools that are needed to This package provides tools that are needed to
build EFI executables and ROMs using the GNU tools. build EFI executables and ROMs using the GNU tools.
%package tools-python %package tools-python
Summary: EFI Development Kit II Tools Summary: EFI Development Kit II Tools
Group: Development/Tools Group: Development/Tools
Requires: python Requires: python
BuildArch: noarch BuildArch: noarch
%description tools-python %description tools-python
@ -55,8 +55,8 @@ and ROMs using the GNU tools. You do not need to install this package;
you probably want to install edk2-tools only. you probably want to install edk2-tools only.
%package tools-doc %package tools-doc
Summary: Documentation for EFI Development Kit II Tools Summary: Documentation for EFI Development Kit II Tools
Group: Development/Tools Group: Development/Tools
%description tools-doc %description tools-doc
This package documents the tools that are needed to This package documents the tools that are needed to
@ -75,28 +75,28 @@ make
%install %install
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
install \ install \
Source/C/bin/BootSectImage \ Source/C/bin/BootSectImage \
Source/C/bin/EfiLdrImage \ Source/C/bin/EfiLdrImage \
Source/C/bin/EfiRom \ Source/C/bin/EfiRom \
Source/C/bin/GenCrc32 \ Source/C/bin/GenCrc32 \
Source/C/bin/GenFfs \ Source/C/bin/GenFfs \
Source/C/bin/GenFv \ Source/C/bin/GenFv \
Source/C/bin/GenFw \ Source/C/bin/GenFw \
Source/C/bin/GenPage \ Source/C/bin/GenPage \
Source/C/bin/GenSec \ Source/C/bin/GenSec \
Source/C/bin/GenVtf \ Source/C/bin/GenVtf \
Source/C/bin/GnuGenBootSector \ Source/C/bin/GnuGenBootSector \
Source/C/bin/LzmaCompress \ Source/C/bin/LzmaCompress \
BinWrappers/PosixLike/LzmaF86Compress \ BinWrappers/PosixLike/LzmaF86Compress \
Source/C/bin/Split \ Source/C/bin/Split \
Source/C/bin/TianoCompress \ Source/C/bin/TianoCompress \
Source/C/bin/VfrCompile \ Source/C/bin/VfrCompile \
Source/C/bin/VolInfo \ Source/C/bin/VolInfo \
%{buildroot}%{_bindir} %{buildroot}%{_bindir}
ln -f %{buildroot}%{_bindir}/GnuGenBootSector \ ln -f %{buildroot}%{_bindir}/GnuGenBootSector \
%{buildroot}%{_bindir}/GenBootSector %{buildroot}%{_bindir}/GenBootSector
mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_datadir}/%{name}
install \ install \