forked from pool/grub2
Accepting request 93969 from devel:openSUSE:Factory
some efi package cleanup OBS-URL: https://build.opensuse.org/request/show/93969 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=25
This commit is contained in:
parent
e4785648d5
commit
249f29f509
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 28 09:40:44 CET 2011 - jslaby@suse.de
|
||||||
|
|
||||||
|
- remove doubly packaged files
|
||||||
|
- remove INSTALL from docs
|
||||||
|
- handle duplicate bindir files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 31 13:08:21 CET 2011 - meissner@suse.de
|
||||||
|
|
||||||
|
- make efi exclusion more complete
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 27 08:16:58 UTC 2011 - aj@suse.de
|
Thu Oct 27 08:16:58 UTC 2011 - aj@suse.de
|
||||||
|
|
||||||
|
22
grub2.spec
22
grub2.spec
@ -25,7 +25,7 @@ BuildRequires: libncurses5-32bit libusb-1_0-devel-32bit ncurses-devel-32bit
|
|||||||
BuildRequires: freetype2-devel gcc glibc-devel libncurses5 libusb-1_0-devel
|
BuildRequires: freetype2-devel gcc glibc-devel libncurses5 libusb-1_0-devel
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: bison device-mapper-devel flex lzma ruby xz
|
BuildRequires: bison device-mapper-devel fdupes flex lzma ruby xz
|
||||||
|
|
||||||
# Modules always contain just 32-bit code
|
# Modules always contain just 32-bit code
|
||||||
%define _libdir %{_exec_prefix}/lib
|
%define _libdir %{_exec_prefix}/lib
|
||||||
@ -202,6 +202,7 @@ rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*/*.h
|
|||||||
# Defaults
|
# Defaults
|
||||||
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/grub
|
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/grub
|
||||||
%find_lang grub
|
%find_lang grub
|
||||||
|
%fdupes %buildroot%{_bindir}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/install-info %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
/sbin/install-info %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
||||||
@ -226,9 +227,12 @@ if [ -e /boot/%{name}/device.map ]; then
|
|||||||
/sbin/update-bootloader --refresh || true
|
/sbin/update-bootloader --refresh || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%ifarch %{efi}
|
||||||
|
|
||||||
%post efi
|
%post efi
|
||||||
/sbin/install-info %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
/sbin/install-info %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
||||||
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
@ -246,11 +250,14 @@ if [ $1 = 0 ]; then
|
|||||||
rm -f /boot/%{name}/device.map
|
rm -f /boot/%{name}/device.map
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%ifarch %{efi}
|
||||||
|
|
||||||
%preun efi
|
%preun efi
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
/sbin/install-info --delete %{_infodir}/grub-dev.info %{_infodir}/dir || :
|
||||||
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
||||||
fi
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -f grub-%{version}/grub.lang
|
%files -f grub-%{version}/grub.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -270,7 +277,7 @@ fi
|
|||||||
# Actually, this is replaced by update-grub from scriptlets,
|
# Actually, this is replaced by update-grub from scriptlets,
|
||||||
# but it takes care of modified persistent part
|
# but it takes care of modified persistent part
|
||||||
%config(noreplace) /boot/%{name}/grub.cfg
|
%config(noreplace) /boot/%{name}/grub.cfg
|
||||||
%doc grub-%{version}/COPYING grub-%{version}/INSTALL grub-%{version}/NEWS
|
%doc grub-%{version}/COPYING grub-%{version}/NEWS
|
||||||
%doc grub-%{version}/README grub-%{version}/THANKS grub-%{version}/TODO
|
%doc grub-%{version}/README grub-%{version}/THANKS grub-%{version}/TODO
|
||||||
%doc grub-%{version}/ChangeLog grub-%{version}/README.openSUSE
|
%doc grub-%{version}/ChangeLog grub-%{version}/README.openSUSE
|
||||||
%{_infodir}/grub-dev.info*
|
%{_infodir}/grub-dev.info*
|
||||||
@ -278,14 +285,12 @@ fi
|
|||||||
|
|
||||||
%ifarch %{efi}
|
%ifarch %{efi}
|
||||||
|
|
||||||
%files efi -f grub-%{version}/grub.lang
|
%files efi
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir /boot/efi
|
%dir /boot/efi
|
||||||
%dir /boot/efi/EFI
|
%dir /boot/efi/EFI
|
||||||
%attr(0755,root,root)/boot/efi/EFI/opensuse
|
%attr(0755,root,root)/boot/efi/EFI/opensuse
|
||||||
/etc/bash_completion.d/grub
|
|
||||||
%{_libdir}/grub2-efi
|
%{_libdir}/grub2-efi
|
||||||
%{_libdir}/grub/
|
|
||||||
%{_sbindir}/grub2-efi-mkconfig
|
%{_sbindir}/grub2-efi-mkconfig
|
||||||
%{_sbindir}/grub2-efi-mkdevicemap
|
%{_sbindir}/grub2-efi-mkdevicemap
|
||||||
%{_sbindir}/grub2-efi-mknetdir
|
%{_sbindir}/grub2-efi-mknetdir
|
||||||
@ -313,20 +318,15 @@ fi
|
|||||||
%{_sbindir}/grub2-efi-ofpathname
|
%{_sbindir}/grub2-efi-ofpathname
|
||||||
%endif
|
%endif
|
||||||
%{_bindir}/grub2-efi-script-check
|
%{_bindir}/grub2-efi-script-check
|
||||||
%dir %{_sysconfdir}/grub.d
|
|
||||||
%config %{_sysconfdir}/grub.d/??_*
|
|
||||||
%{_sysconfdir}/grub.d/README
|
|
||||||
%{_sysconfdir}/grub2-efi.cfg
|
%{_sysconfdir}/grub2-efi.cfg
|
||||||
%config %{_sysconfdir}/default/grub
|
|
||||||
%dir /boot/grub2-efi
|
%dir /boot/grub2-efi
|
||||||
# Actually, this is replaced by update-grub from scriptlets,
|
# Actually, this is replaced by update-grub from scriptlets,
|
||||||
# but it takes care of modified persistent part
|
# but it takes care of modified persistent part
|
||||||
%config(noreplace) /boot/grub2-efi/grub.cfg
|
%config(noreplace) /boot/grub2-efi/grub.cfg
|
||||||
%doc grub-%{version}/COPYING grub-%{version}/INSTALL grub-%{version}/NEWS
|
%doc grub-%{version}/COPYING grub-%{version}/NEWS
|
||||||
%doc grub-%{version}/README grub-%{version}/THANKS grub-%{version}/TODO
|
%doc grub-%{version}/README grub-%{version}/THANKS grub-%{version}/TODO
|
||||||
%doc grub-%{version}/ChangeLog grub-%{version}/README.openSUSE
|
%doc grub-%{version}/ChangeLog grub-%{version}/README.openSUSE
|
||||||
%exclude %{_mandir}
|
%exclude %{_mandir}
|
||||||
%{_infodir}/grub2*
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user