Accepting request 215029 from home:hreinecke:branches:Base:System

- Fixup build issues

- Update to official version 0.5.0
  - remove: multipath-tools-0.4.9.tar.bz2
  - remove: multipath-tools-0.4.9-opensuse-12.3.diff.bz2
  - add: multipath-tools-0.5.0.tar.bz2
  - add: multipath-tools-0.5.0-sles12.diff.bz2
- Merge:
  - multipath-tools-make-flexible-install-of-systemd-and-udev-files.patch

- Add Source URL, see https://en.opensuse.org/SourceUrls
  add: multipath-tools-make-flexible-install-of-systemd-and-udev-files.patch
- Systemd: fix spec pre/post scripts.
- Fix the installation of multipath.rules file.
  We need this to make sure initrd reflects the updates.

OBS-URL: https://build.opensuse.org/request/show/215029
OBS-URL: https://build.opensuse.org/package/show/Base:System/multipath-tools?expand=0&rev=50
This commit is contained in:
Marcus Meissner 2014-01-29 10:09:28 +00:00 committed by Git OBS Bridge
parent 2ffe66a911
commit 43243a3a4e
7 changed files with 42 additions and 66 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:45315c952d9405872a12d5100907855f49561b365bdaab9eea85ab893e4575a8
size 128651

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d44c8815144b5589cc3e604cb3fc16c76a028aef08aa1bec334ff70bf9ac712
size 169180

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e6605ceaaf02ffb4384acefe6240cf579d8ae61968cd908e719fa8a14d0d785
size 14123

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0521c2a9d48411f725a4ed62f72c61ac7bcd557f438a7364ae8b764eb3215436
size 185499

View File

@ -1,29 +0,0 @@
Index: multipath-tools-0.4.9/Makefile.inc
===================================================================
--- multipath-tools-0.4.9.orig/Makefile.inc
+++ multipath-tools-0.4.9/Makefile.inc
@@ -21,10 +21,14 @@ ifndef LIB
endif
endif
+ifndef SYSDPATH
+ SYSDPATH=lib
+endif
+
prefix =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/sbin
-libudevdir = ${prefix}/lib/udev
+libudevdir = ${prefix}/$(SYSDPATH)/udev
multipathdir = $(TOPDIR)/libmultipath
mandir = $(prefix)/usr/share/man/man8
man5dir = $(prefix)/usr/share/man/man5
@@ -32,7 +36,7 @@ man3dir = $(prefix)/usr/share/man/m
rcdir = $(prefix)/etc/init.d
syslibdir = $(prefix)/$(LIB)
libdir = $(prefix)/$(LIB)/multipath
-unitdir = $(prefix)/lib/systemd/system
+unitdir = $(prefix)/$(SYSDPATH)/systemd/system
mpathpersistdir = $(TOPDIR)/libmpathpersist
GZIP = /bin/gzip -9 -c

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Jan 21 16:32:33 CET 2014 - hare@suse.de
- Fixup build issues
-------------------------------------------------------------------
Tue Jan 21 13:58:15 CET 2014 - hare@suse.de
- Update to official version 0.5.0
- remove: multipath-tools-0.4.9.tar.bz2
- remove: multipath-tools-0.4.9-opensuse-12.3.diff.bz2
- add: multipath-tools-0.5.0.tar.bz2
- add: multipath-tools-0.5.0-sles12.diff.bz2
- Merge:
- multipath-tools-make-flexible-install-of-systemd-and-udev-files.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 16 10:08:18 UTC 2013 - idonmez@suse.com Tue Apr 16 10:08:18 UTC 2013 - idonmez@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package multipath-tools # spec file for package multipath-tools
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -21,12 +21,12 @@ BuildRequires: device-mapper-devel
BuildRequires: libaio-devel BuildRequires: libaio-devel
BuildRequires: libudev-devel BuildRequires: libudev-devel
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: systemd BuildRequires: systemd-devel
Url: http://christophe.varoqui.free.fr/ Url: http://christophe.varoqui.free.fr/
Requires: device-mapper Requires: device-mapper
Requires: kpartx Requires: kpartx
PreReq: %insserv_prereq %fillup_prereq coreutils grep PreReq: %insserv_prereq %fillup_prereq coreutils grep
Version: 0.4.9 Version: 0.5.0
Release: 0 Release: 0
Summary: Tools to Manage Multipathed Devices with the device-mapper Summary: Tools to Manage Multipathed Devices with the device-mapper
License: GPL-2.0 License: GPL-2.0
@ -35,8 +35,7 @@ Group: System/Base
%define has_systemd 1 %define has_systemd 1
Source: http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-%{version}.tar.bz2 Source: http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch0: %{name}-%{version}-opensuse-12.3.diff.bz2 Patch0: %{name}-%{version}-sles12.diff.bz2
Patch1: multipath-tools-make-flexible-install-of-systemd-and-udev-files.patch
%if %suse_version > 1220 %if %suse_version > 1220
%define _sysdir usr/lib %define _sysdir usr/lib
%else %else
@ -94,17 +93,18 @@ Authors:
Christophe Varoqui <christophe.varoqui@free.fr> Christophe Varoqui <christophe.varoqui@free.fr>
%prep %prep
%setup -q -c -n multipath-tools-%{version} %setup -q -n multipath-tools-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %build
make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%{_lib} SYSDPATH=%{_sysdir} make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%{_lib} SYSTEMDPATH=%{_sysdir}
%install %install
make DESTDIR=$RPM_BUILD_ROOT LIB=%{_lib} SYSDPATH=%{_sysdir} install make DESTDIR=$RPM_BUILD_ROOT LIB=%{_lib} SYSTEMDPATH=%{_sysdir} install
# Compability with older versions # Compability with older versions
mv $RPM_BUILD_ROOT/etc/udev/rules.d/kpartx.rules $RPM_BUILD_ROOT/etc/udev/rules.d/70-kpartx.rules mkdir -p $RPM_BUILD_ROOT/%{_sysdir}/udev/rules.d
mv $RPM_BUILD_ROOT/etc/udev/rules.d/kpartx.rules $RPM_BUILD_ROOT/%{_sysdir}/udev/rules.d/70-kpartx.rules
mv $RPM_BUILD_ROOT/etc/udev/rules.d/kpartx-compat.rules $RPM_BUILD_ROOT/%{_sysdir}/udev/rules.d/71-kpartx-compat.rules
mkdir -p $RPM_BUILD_ROOT/var/cache/multipath/ mkdir -p $RPM_BUILD_ROOT/var/cache/multipath/
rm $RPM_BUILD_ROOT/%_lib/libmpathpersist.so rm $RPM_BUILD_ROOT/%_lib/libmpathpersist.so
@ -151,8 +151,7 @@ fi
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHOR COPYING README ChangeLog %doc AUTHOR COPYING README ChangeLog
%doc multipath.conf* %doc multipath.conf*
%dir /etc/udev %dir /%{_sysdir}/udev/rules.d
%dir /etc/udev/rules.d
/%{_lib}/libmultipath.so.0 /%{_lib}/libmultipath.so.0
/%{_lib}/libmpathpersist.so.0 /%{_lib}/libmpathpersist.so.0
/%{_lib}/multipath /%{_lib}/multipath
@ -160,14 +159,9 @@ fi
/sbin/multipathd /sbin/multipathd
/sbin/mpathpersist /sbin/mpathpersist
%attr (0700, root, root) /var/cache/multipath %attr (0700, root, root) /var/cache/multipath
%dir /lib/mkinitrd
%dir /lib/mkinitrd/scripts
/lib/mkinitrd/scripts/boot-multipath.sh
/lib/mkinitrd/scripts/setup-multipath.sh
/lib/mkinitrd/scripts/boot-multipathd.sh
/lib/mkinitrd/scripts/boot-killmultipathd.sh
%dir /%{_sysdir}/systemd/system %dir /%{_sysdir}/systemd/system
/%{_sysdir}/systemd/system/multipathd.service /%{_sysdir}/systemd/system/multipathd.service
/%{_sysdir}/systemd/system/multipathd.socket
%{_mandir}/man8/multipath.8* %{_mandir}/man8/multipath.8*
%{_mandir}/man5/multipath.conf.5* %{_mandir}/man5/multipath.conf.5*
%{_mandir}/man8/multipathd.8* %{_mandir}/man8/multipathd.8*
@ -180,16 +174,11 @@ fi
%files -n kpartx %files -n kpartx
%defattr(-,root,root) %defattr(-,root,root)
%dir /etc/udev
%dir /etc/udev/rules.d
%config /etc/udev/rules.d/70-kpartx.rules
/sbin/kpartx /sbin/kpartx
%dir /%{_sysdir}/udev %dir /%{_sysdir}/udev
%config /%{_sysdir}/udev/rules.d/70-kpartx.rules
%config /%{_sysdir}/udev/rules.d/71-kpartx-compat.rules
/%{_sysdir}/udev/kpartx_id /%{_sysdir}/udev/kpartx_id
%dir /lib/mkinitrd
%dir /lib/mkinitrd/scripts
/lib/mkinitrd/scripts/boot-kpartx.sh
/lib/mkinitrd/scripts/setup-kpartx.sh
%{_mandir}/man8/kpartx.8* %{_mandir}/man8/kpartx.8*
%changelog %changelog