17 |
%global efi_arch i386-efi |
%global efi_arch i386-efi |
18 |
%endif |
%endif |
19 |
|
|
20 |
%define tarver 2.02~beta2 |
%global tarversion 2.02~beta2 |
21 |
%global pc_arch i386-pc |
%global pc_arch i386-pc |
22 |
%define git 10270 |
%define git 10270 |
23 |
%define rel 2 |
%define rel 2 |
30 |
License: GPLv3+ and GPLv2 |
License: GPLv3+ and GPLv2 |
31 |
# unicode font is GPLv2 |
# unicode font is GPLv2 |
32 |
URL: http://www.gnu.org/software/grub/ |
URL: http://www.gnu.org/software/grub/ |
33 |
Source0: ftp://ftp.gnu.org/gnu/grub/grub-%{tarver}.tar.xz |
Source0: ftp://ftp.gnu.org/gnu/grub/grub-%{tarversion}.tar.xz |
34 |
Source1: 90_persistent |
Source1: 90_persistent |
35 |
Source2: grub.default |
Source2: grub.default |
36 |
Source3: README.Mageia |
Source3: README.Mageia |
190 |
minimal installations where a graphical theme is not required. |
minimal installations where a graphical theme is not required. |
191 |
|
|
192 |
%prep |
%prep |
193 |
%setup -q -n grub-%{tarver} |
%setup -q -n grub-%{tarversion} |
194 |
|
|
195 |
cp %{SOURCE16} .gitignore |
cp %{SOURCE16} .gitignore |
196 |
%autopatch -p1 |
%autopatch -p1 |
204 |
cp %{SOURCE4} . |
cp %{SOURCE4} . |
205 |
|
|
206 |
cd .. |
cd .. |
207 |
rm -rf grub-efi-%{tarver} |
rm -rf grub-efi-%{tarversion} |
208 |
mv grub-%{tarver} grub-efi-%{tarver} |
mv grub-%{tarversion} grub-efi-%{tarversion} |
209 |
%endif |
%endif |
210 |
|
|
211 |
%setup -q -n grub-%{tarver} |
%setup -q -n grub-%{tarversion} |
212 |
|
|
213 |
cp %{SOURCE16} .gitignore |
cp %{SOURCE16} .gitignore |
214 |
%autopatch -p1 |
%autopatch -p1 |
221 |
|
|
222 |
%build |
%build |
223 |
cd .. |
cd .. |
224 |
pushd grub-%{tarver} |
pushd grub-%{tarversion} |
225 |
./autogen.sh |
./autogen.sh |
226 |
%configure2_5x TARGET_LDFLAGS=-static \ |
%configure2_5x TARGET_LDFLAGS=-static \ |
227 |
%ifarch %arm |
%ifarch %arm |
240 |
popd |
popd |
241 |
|
|
242 |
%ifnarch %arm |
%ifnarch %arm |
243 |
pushd grub-efi-%{tarver} |
pushd grub-efi-%{tarversion} |
244 |
./autogen.sh |
./autogen.sh |
245 |
%configure2_5x TARGET_LDFLAGS=-static \ |
%configure2_5x TARGET_LDFLAGS=-static \ |
246 |
--with-platform=efi \ |
--with-platform=efi \ |
261 |
%install |
%install |
262 |
cd .. |
cd .. |
263 |
%ifnarch %arm |
%ifnarch %arm |
264 |
pushd grub-efi-%{tarver} |
pushd grub-efi-%{tarversion} |
265 |
%makeinstall_std |
%makeinstall_std |
266 |
popd |
popd |
267 |
%endif |
%endif |
268 |
|
|
269 |
pushd grub-%{tarver} |
pushd grub-%{tarversion} |
270 |
%makeinstall_std |
%makeinstall_std |
271 |
|
|
272 |
# (bor) grub.info is harcoded in sources |
# (bor) grub.info is harcoded in sources |