Hello community, here is the log from the commit of package update-bootloader-rpm-macros for openSUSE:Factory checked in at 2017-01-19 10:38:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/update-bootloader-rpm-macros (Old) and /work/SRC/openSUSE:Factory/.update-bootloader-rpm-macros.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "update-bootloader-rpm-macros" Changes: -------- New Changes file: --- /dev/null 2016-12-08 12:47:06.134691974 +0100 +++ /work/SRC/openSUSE:Factory/.update-bootloader-rpm-macros.new/update-bootloader-rpm-macros.changes 2017-01-19 10:38:34.785687346 +0100 @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Dec 28 09:45:49 UTC 2016 - mch...@suse.com + +- New package with rpm macros to support bootloader update in %posttrans to + improve the efficiency. (bsc#997317) + New: ---- macros.update-bootloader update-bootloader-rpm-macros.changes update-bootloader-rpm-macros.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ update-bootloader-rpm-macros.spec ++++++ # # spec file for package update-bootloader-rpm-macros # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: update-bootloader-rpm-macros Version: 0 Release: 0 Summary: RPM macros for update-bootloader License: GPL-3.0+ Group: System/Base Url: https://en.opensuse.org/openSUSE:Update_Bootloader_RPM_Macros Source0: macros.update-bootloader BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description This package provides rpm macros for bootloader update in rpm scripts %prep %build %install mkdir -p %{buildroot}%{_sysconfdir}/rpm install -m644 %{S:0} %{buildroot}%{_sysconfdir}/rpm %files %defattr(-,root,root) %config %{_sysconfdir}/rpm/macros.update-bootloader %changelog ++++++ macros.update-bootloader ++++++ %update_bootloader_requires Requires(posttrans): perl-Bootloader %update_bootloader_refresh_post() \ mkdir -p %{_rundir}/update-bootloader/ \ touch %{_rundir}/update-bootloader/refresh \ %nil %update_bootloader_reinit_post() \ mkdir -p %{_rundir}/update-bootloader/ \ touch %{_rundir}/update-bootloader/reinit \ %nil %update_bootloader_check_type_refresh_post() \ loader_type=`sed -n \\\ "/^[^#]*LOADER_TYPE=/{s@.*=\\(.*\\)@\\1@;s@^[\\"']@@;s@[\\"']\\\\$@@;p;q}" \\\ %{_sysconfdir}/sysconfig/bootloader \\\ 2>/dev/null || :` \ for bl in %{?*}; do \ if test "x${bl}" == "x$loader_type"; then \ mkdir -p %{_rundir}/update-bootloader/ \ touch %{_rundir}/update-bootloader/refresh \ break \ fi \ done \ %nil %update_bootloader_check_type_reinit_post() \ loader_type=`sed -n \\\ "/^[^#]*LOADER_TYPE=/{s@.*=\\(.*\\)@\\1@;s@^[\\"']@@;s@[\\"']\\\\$@@;p;q}" \\\ %{_sysconfdir}/sysconfig/bootloader \\\ 2>/dev/null || :` \ for bl in %{?*}; do \ if test "x${bl}" == "x$loader_type"; then \ mkdir -p %{_rundir}/update-bootloader/ \ touch %{_rundir}/update-bootloader/reinit \ break \ fi \ done \ %nil %update_bootloader_posttrans \ if test -f %{_rundir}/update-bootloader/reinit; then \ rm -f %{_rundir}/update-bootloader/{reinit,refresh} \ /sbin/update-bootloader --reinit || : \ elif test -f %{_rundir}/update-bootloader/refresh; then \ rm -f %{_rundir}/update-bootloader/refresh \ /sbin/update-bootloader --refresh || : \ fi \ %nil