]> git.pld-linux.org Git - packages/efi-boot-update.git/blobdiff - efi-boot-update.spec
'kernel' and 'kernel-old' modules added
[packages/efi-boot-update.git] / efi-boot-update.spec
index 9b3fff19014988b78c3a05791a2b3e1c6a86af31..297c7b0c67fd315b2d98a2458ee45fcbaf884ec9 100644 (file)
@@ -1,21 +1,23 @@
 # $Revision: 1.81 $, $Date: 2012/04/20 10:52:52 $
-#
 Summary:       EFI bootloader updater
+Summary(pl.UTF-8):     Skrypt do uaktualniania bootloaderów EFI
 Name:          efi-boot-update
 Version:       0.1
-Release:       0.1
+Release:       2
 License:       GPL v2
-Group:         Applications
+Group:         Applications/System
 Source0:       %{name}
 Source1:       update.conf
-Source2:       shellx64.conf
-Source3:       shellx32.conf
-Source4:       grub.conf
+Source2:       grub.conf
+Source3:       grub-installed.conf
+Source4:       kernel.conf
+Source5:       kernel-old.conf
 Source10:      README
 Source11:      TODO
 URL:           http://www.pld-linux.org/
 BuildRequires: help2man
 Suggests:      efibootmgr
+Suggests:      efi-shell-x64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir /sbin
@@ -23,6 +25,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Script to update EFI bootloaders.
 
+%description -l pl.UTF-8
+Skrypt do uaktualniania bootloaderów EFI.
+
 %prep
 %setup -qcT
 cp %{SOURCE0} .
@@ -35,22 +40,23 @@ help2man --no-info ./%{name} > %{name}.8
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
-install -d $RPM_BUILD_ROOT{%{_prefix}/lib{,64}/efi,%{_sbindir},%{_mandir}/man8}
+install -d $RPM_BUILD_ROOT{/lib/efi/{ia32,x64},%{_sbindir},%{_mandir}/man8}
 
 install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/efi-boot
-install %{SOURCE2} %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/efi-boot/update.d
+install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/etc/efi-boot/update.d
+install %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT/etc/efi-boot/update.d
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 # Most efi-boot-update-managed loaders will use kernel files
-# even if the kernel itself is not build as EFI
+# even if the kernel itself is not built as EFI
 %triggerin -- kernel
-/sbin/efi-boot-update
+/sbin/efi-boot-update --auto || :
 %triggerin -- kernel-longterm
-/sbin/efi-boot-update
+/sbin/efi-boot-update --auto || :
 
 %files
 %defattr(644,root,root,755)
@@ -58,10 +64,12 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_sbindir}/%{name}
 %dir /etc/efi-boot
 %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.conf
-%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/*.conf
 %dir /etc/efi-boot/update.d
-%dir %{_libdir}/efi
-%if "%{_libdir}" != "%{_prefix}/lib"
-%dir %{_prefix}/lib/efi
-%endif
+%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/grub-installed.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/kernel.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/kernel-old.conf
+%dir /lib/efi
+%dir /lib/efi/ia32
+%dir /lib/efi/x64
 %{_mandir}/man8/%{name}.8*
This page took 0.159171 seconds and 4 git commands to generate.