Accepting request 853682 from Base:System

OBS-URL: https://build.opensuse.org/request/show/853682
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lvm2?expand=0&rev=142
This commit is contained in:
Dominique Leuenberger 2020-12-09 21:11:50 +00:00 committed by Git OBS Bridge
commit 0d1eab5104
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Nov 26 10:28:13 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
- prepare usrmerge (boo#1029961)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 25 03:06:00 UTC 2020 - heming.zhao@suse.com Wed Nov 25 03:06:00 UTC 2020 - heming.zhao@suse.com

View File

@ -224,8 +224,10 @@ rm %{buildroot}%{_unitdir}/lvm2-monitor.service
rm %{buildroot}%{_mandir}/man8/blkdeactivate.8 rm %{buildroot}%{_mandir}/man8/blkdeactivate.8
# compat symlinks in /sbin remove with Leap 43 # compat symlinks in /sbin remove with Leap 43
%if !0%{?usrmerged}
mkdir -p %{buildroot}/sbin mkdir -p %{buildroot}/sbin
ln -s %{_sbindir}/dmsetup %{buildroot}/sbin/dmsetup ln -s %{_sbindir}/dmsetup %{buildroot}/sbin/dmsetup
%endif
%else %else
%if %{with lockd} %if %{with lockd}
make DESTDIR=%{buildroot} \ make DESTDIR=%{buildroot} \
@ -298,6 +300,7 @@ rm %{buildroot}%{_mandir}/man8/dmstats.8
rm %{buildroot}%{_mandir}/man8/dmsetup.8 rm %{buildroot}%{_mandir}/man8/dmsetup.8
rm %{buildroot}%{_mandir}/man8/dmeventd.8 rm %{buildroot}%{_mandir}/man8/dmeventd.8
%if !0%{?usrmerged}
# compat symlinks in /sbin remove with Leap 43 # compat symlinks in /sbin remove with Leap 43
mkdir -p %{buildroot}/sbin mkdir -p %{buildroot}/sbin
pushd %{buildroot}/%{_sbindir} pushd %{buildroot}/%{_sbindir}
@ -307,6 +310,7 @@ done
popd popd
%endif %endif
%endif %endif
%endif
%if %{with devicemapper} %if %{with devicemapper}
%package -n device-mapper %package -n device-mapper
@ -341,7 +345,9 @@ Programs and man pages for configuring and using the device mapper.
%license COPYING COPYING.LIB %license COPYING COPYING.LIB
%doc README %doc README
%doc udev/12-dm-permissions.rules %doc udev/12-dm-permissions.rules
%if !0%{?usrmerged}
/sbin/dmsetup /sbin/dmsetup
%endif
%{_sbindir}/dmsetup %{_sbindir}/dmsetup
%{_sbindir}/dmeventd %{_sbindir}/dmeventd
%{_sbindir}/dmstats %{_sbindir}/dmstats
@ -370,6 +376,8 @@ Device mapper main shared library
%{_libdir}/libdevmapper.so.1.02 %{_libdir}/libdevmapper.so.1.02
%post -n %{libname} %post -n %{libname}
%if !0%{?usrmerged}
# in usrmerged scenario we better don't remove ourselves :-)
if [ -f /%{_lib}/libdevmapper.so.1.03 ]; then if [ -f /%{_lib}/libdevmapper.so.1.03 ]; then
# Special migration - the library is now in %{_libdir}, but up to the point where # Special migration - the library is now in %{_libdir}, but up to the point where
# zypp removes the 'old' device-mapper package, the old library 'wins' the ldloader race # zypp removes the 'old' device-mapper package, the old library 'wins' the ldloader race
@ -378,7 +386,8 @@ if [ -f /%{_lib}/libdevmapper.so.1.03 ]; then
# Remove /%{_lib}/libdevmapper.so.1.02 - and the run ldconfig # Remove /%{_lib}/libdevmapper.so.1.02 - and the run ldconfig
rm /%{_lib}/libdevmapper.so.1.03 rm /%{_lib}/libdevmapper.so.1.03
fi fi
/sbin/ldconfig %endif
/sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
@ -542,6 +551,7 @@ LVM commands use lvmlockd to coordinate access to shared storage.
%{_sbindir}/rclvm2-lvmpolld %{_sbindir}/rclvm2-lvmpolld
%{_sbindir}/rclvm2-monitor %{_sbindir}/rclvm2-monitor
# compat symlinks in /sbin # compat symlinks in /sbin
%if !0%{?usrmerged}
/sbin/lvm /sbin/lvm
/sbin/lvmconfig /sbin/lvmconfig
/sbin/lvmdump /sbin/lvmdump
@ -588,6 +598,7 @@ LVM commands use lvmlockd to coordinate access to shared storage.
/sbin/vgs /sbin/vgs
/sbin/vgscan /sbin/vgscan
/sbin/vgsplit /sbin/vgsplit
%endif
%{_mandir}/man5/lvm.conf.5%{?ext_man} %{_mandir}/man5/lvm.conf.5%{?ext_man}
%{_mandir}/man7/lvmcache.7%{?ext_man} %{_mandir}/man7/lvmcache.7%{?ext_man}
%{_mandir}/man7/lvmraid.7%{?ext_man} %{_mandir}/man7/lvmraid.7%{?ext_man}