LFS-RPM/SPECS/grub.spec

51 lines
1.9 KiB
RPMSpec
Raw Normal View History

2019-05-24 08:27:40 -04:00
# %%define _optflags -march=x86-64 -mtune=generic -O2 -pipe
#TARBALL: http://ftp.gnu.org/gnu/grub/grub-2.02.tar.xz
#MD5SUM: 8a4a2a95aac551fb0fba860ceabfa1d3;SOURCES/grub-2.02.tar.xz
#-----------------------------------------------------------------------------
Summary: The GRUB package contains the GRand Unified Bootloader.
Name: grub
Version: 2.02
Release: 1
License: GPLv3
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source0: http://ftp.gnu.org/gnu/grub/%{name}-%{version}.tar.xz
Requires: filesystem
%description
The GRUB package contains the GRand Unified Bootloader.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
%build
./configure \
--prefix=%{_prefix} \
--sbindir=/sbin \
--sysconfdir=/etc \
--disable-efiemu \
--disable-werror
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
install -vdm 755 %{buildroot}/usr/share/bash-completion/completions
mv -v %{buildroot}/etc/bash_completion.d/grub %{buildroot}/usr/share/bash-completion/completions
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
rm %{buildroot}%{_infodir}/dir
find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
sed -i '/man\/man/d' filelist.rpm
sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
%{_infodir}/*.gz
#-----------------------------------------------------------------------------
%changelog
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.02-1
- Initial build. First version