Accepting request 317623 from Base:System
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/317623 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/multipath-tools?expand=0&rev=75
This commit is contained in:
commit
3f9d9e6757
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 13 10:54:56 UTC 2015 - werner@suse.de
|
||||
|
||||
- Make it build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 8 11:00:43 CEST 2015 - hare@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package multipath-tools
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 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
|
||||
@ -23,6 +23,8 @@ BuildRequires: libudev-devel
|
||||
BuildRequires: readline-devel
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: udev
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(udev)
|
||||
Url: http://christophe.varoqui.free.fr/
|
||||
Requires: device-mapper >= 1.2.78
|
||||
Requires: kpartx
|
||||
@ -37,11 +39,7 @@ Group: System/Base
|
||||
Source: http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch0: %{name}-%{version}-sles12.diff.bz2
|
||||
%if %suse_version > 1220
|
||||
%define _sysdir usr/lib
|
||||
%else
|
||||
%define _sysdir lib
|
||||
%endif
|
||||
%global _sysdir %(pkg-config --variable=systemdutildir systemd | sed -r 's@/systemd$@@')
|
||||
|
||||
%description
|
||||
This package provides the tools to manage multipathed devices by
|
||||
@ -96,12 +94,14 @@ Authors:
|
||||
%prep
|
||||
%setup -q -n multipath-tools-%{version}
|
||||
%patch0 -p1
|
||||
echo %{_udevrulesdir}
|
||||
echo %{_sysdir}
|
||||
|
||||
%build
|
||||
make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%{_lib} SYSTEMDPATH=%{_sysdir}
|
||||
make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%{_lib} SYSTEMDPATH=%{_sysdir} SYSTEMD=yes
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIB=%{_lib} SYSTEMDPATH=%{_sysdir} install
|
||||
make DESTDIR=$RPM_BUILD_ROOT LIB=%{_lib} SYSTEMDPATH=%{_sysdir} install SYSTEMD=yes
|
||||
mkdir -p $RPM_BUILD_ROOT/var/cache/multipath/
|
||||
rm $RPM_BUILD_ROOT/%_lib/libmpathpersist.so
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
||||
|
Loading…
x
Reference in New Issue
Block a user