From 51744831821e41282c3ab7c00262a77fdd34dc26 Mon Sep 17 00:00:00 2001 From: OBS User dirkmueller Date: Mon, 25 Jul 2016 11:02:06 +0000 Subject: [PATCH] - Rebuild the initrd if this package changes (and we are not building the -mini version) Rev filesystems/71 Md5 3a7ec38eaa7828e236031627b3abefb7 2016-07-25 11:02:06 dirkmueller 414763 --- e2fsprogs.changes | 6 ++++++ e2fsprogs.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/e2fsprogs.changes b/e2fsprogs.changes index 0f04b98..d063cdc 100644 --- a/e2fsprogs.changes +++ b/e2fsprogs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jul 23 18:24:39 UTC 2016 - crrodriguez@opensuse.org + +- Rebuild the initrd if this package changes (and we are not + building the -mini version) + ------------------------------------------------------------------- Mon Jun 20 14:58:12 UTC 2016 - jack@suse.cz diff --git a/e2fsprogs.spec b/e2fsprogs.spec index 12bd5fa..b7da9f9 100644 --- a/e2fsprogs.spec +++ b/e2fsprogs.spec @@ -32,6 +32,9 @@ BuildRequires: pkg-config %if 0%{?suse_version} > 1220 BuildRequires: makeinfo %endif +%if 0%{?suse_version} >= 1310 +BuildRequires: suse-module-tools +%endif # Define info macros if missing (for Fedora builds) %if 0%{!?%install_info_prereq:1} %define install_info_prereq info @@ -285,12 +288,19 @@ done /sbin/ldconfig %if ! %{build_mini} %install_info --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz +%{?regenerate_initrd_post} %endif %postun /sbin/ldconfig %if ! %{build_mini} %install_info_delete --info-dir=%{_infodir} %{_infodir}/libext2fs.info.gz +%{?regenerate_initrd_post} +%endif + +%if ! %{build_mini} +%posttrans +%{?regenerate_initrd_posttrans} %endif %if %{build_mini}