From 6dc38e20d9a7673e76fb3a67fa1f571d50d701852bf9e39a25180f9fbffa441f Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 28 Nov 2011 11:53:25 +0000 Subject: [PATCH] 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 --- grub2.changes | 12 ++++++++++++ grub2.spec | 22 +++++++++++----------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/grub2.changes b/grub2.changes index 4b1c3c7..b080ef0 100644 --- a/grub2.changes +++ b/grub2.changes @@ -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 diff --git a/grub2.spec b/grub2.spec index c658f08..f41a681 100644 --- a/grub2.spec +++ b/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: ncurses-devel %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 %define _libdir %{_exec_prefix}/lib @@ -202,6 +202,7 @@ rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*/*.h # Defaults install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/default/grub %find_lang grub +%fdupes %buildroot%{_bindir} %post /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 fi +%ifarch %{efi} + %post efi /sbin/install-info %{_infodir}/grub-dev.info %{_infodir}/dir || : /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : +%endif %preun if [ $1 = 0 ]; then @@ -246,11 +250,14 @@ if [ $1 = 0 ]; then rm -f /boot/%{name}/device.map fi +%ifarch %{efi} + %preun efi if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/grub-dev.info %{_infodir}/dir || : /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi +%endif %files -f grub-%{version}/grub.lang %defattr(-,root,root,-) @@ -270,7 +277,7 @@ fi # Actually, this is replaced by update-grub from scriptlets, # but it takes care of modified persistent part %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}/ChangeLog grub-%{version}/README.openSUSE %{_infodir}/grub-dev.info* @@ -278,14 +285,12 @@ fi %ifarch %{efi} -%files efi -f grub-%{version}/grub.lang +%files efi %defattr(-,root,root,-) %dir /boot/efi %dir /boot/efi/EFI %attr(0755,root,root)/boot/efi/EFI/opensuse -/etc/bash_completion.d/grub %{_libdir}/grub2-efi -%{_libdir}/grub/ %{_sbindir}/grub2-efi-mkconfig %{_sbindir}/grub2-efi-mkdevicemap %{_sbindir}/grub2-efi-mknetdir @@ -313,20 +318,15 @@ fi %{_sbindir}/grub2-efi-ofpathname %endif %{_bindir}/grub2-efi-script-check -%dir %{_sysconfdir}/grub.d -%config %{_sysconfdir}/grub.d/??_* -%{_sysconfdir}/grub.d/README %{_sysconfdir}/grub2-efi.cfg -%config %{_sysconfdir}/default/grub %dir /boot/grub2-efi # Actually, this is replaced by update-grub from scriptlets, # but it takes care of modified persistent part %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}/ChangeLog grub-%{version}/README.openSUSE %exclude %{_mandir} -%{_infodir}/grub2* %endif %changelog