From 092e386430314ed9596920d05892aaa3fcc1cb1e65f4224b40434e444bee4673 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 8 Dec 2020 08:17:10 +0000 Subject: [PATCH] Accepting request 851913 from home:lnussel:usrmove - prepare usrmerge (boo#1029961) OBS-URL: https://build.opensuse.org/request/show/851913 OBS-URL: https://build.opensuse.org/package/show/filesystems/xfsdump?expand=0&rev=32 --- xfsdump.changes | 5 +++++ xfsdump.spec | 16 +++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/xfsdump.changes b/xfsdump.changes index 331f238..5032112 100644 --- a/xfsdump.changes +++ b/xfsdump.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 26 13:42:57 UTC 2020 - Ludwig Nussel + +- prepare usrmerge (boo#1029961) + ------------------------------------------------------------------- Fri Jan 31 20:38:08 UTC 2020 - Anthony Iliopoulos diff --git a/xfsdump.spec b/xfsdump.spec index f62a10b..1095b65 100644 --- a/xfsdump.spec +++ b/xfsdump.spec @@ -1,7 +1,7 @@ # # spec file for package xfsdump # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,7 +22,7 @@ Release: 0 Summary: Administrative Utilities for the XFS File System License: GPL-2.0-or-later Group: System/Filesystems -Url: https://xfs.wiki.kernel.org/ +URL: https://xfs.wiki.kernel.org/ Source0: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsdump/xfsdump-%{version}.tar.xz Source1: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsdump/xfsdump-%{version}.tar.sign Source2: %{name}.keyring @@ -71,20 +71,18 @@ make %{?_smp_mflags} export DIST_ROOT=%{buildroot} make DESTDIR=%{buildroot} install %{?_smp_mflags} %find_lang xfsdump -# Remove the link created by the make file -rm %{buildroot}/%{_sbindir}/{xfsdump,xfsrestore} mv %{buildroot}/sbin/{xfsdump,xfsrestore} %{buildroot}/%{_sbindir} -#UsrMerge +%if !0%{?usrmerged} ln -s %{_sbindir}/xfsdump %{buildroot}/sbin ln -s %{_sbindir}/xfsrestore %{buildroot}/sbin -#EndUsrMerge +%endif %files -f xfsdump.lang %defattr(-,root,root,755) %{_sbindir}/* -#UsrMerge +%if !0%{?usrmerged} /sbin/* -#EndUsrMerge +%endif %doc %{_defaultdocdir}/%{name} %{_mandir}/man8/* %if 0%{?suse_version} > 1200