forked from pool/dmraid
Accepting request 850824 from Base:System
- prepare usrmerge (boo#1029961) (forwarded request 849711 from lnussel) OBS-URL: https://build.opensuse.org/request/show/850824 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dmraid?expand=0&rev=61
This commit is contained in:
commit
f2cf52f8ec
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 17 13:59:10 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- prepare usrmerge (boo#1029961)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 17 17:38:43 UTC 2019 - Richard Brown <rbrown@suse.com>
|
||||||
|
|
||||||
|
- Remove obsolete Groups tag (fate#326485)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 27 13:05:45 UTC 2019 - Martin Liška <mliska@suse.cz>
|
Mon May 27 13:05:45 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
29
dmraid.spec
29
dmraid.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package dmraid
|
# spec file for package dmraid
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@ -16,6 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?usrmerged}
|
||||||
|
%define sbindir %_sbindir
|
||||||
|
%else
|
||||||
|
%define sbindir /sbin
|
||||||
|
%endif
|
||||||
|
|
||||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%define _fillupdir /var/adm/fillup-templates
|
%define _fillupdir /var/adm/fillup-templates
|
||||||
@ -34,10 +40,9 @@ Requires: aaa_base
|
|||||||
Requires: kpartx
|
Requires: kpartx
|
||||||
Requires(post): coreutils
|
Requires(post): coreutils
|
||||||
Requires(postun): coreutils
|
Requires(postun): coreutils
|
||||||
Url: http://people.redhat.com/~heinzm/sw/dmraid/src/
|
URL: http://people.redhat.com/~heinzm/sw/dmraid/src/
|
||||||
Summary: A Device-Mapper Software RAID Support Tool
|
Summary: A Device-Mapper Software RAID Support Tool
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: System/Base
|
|
||||||
Version: 1.0.0.rc16
|
Version: 1.0.0.rc16
|
||||||
Release: 0
|
Release: 0
|
||||||
Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2
|
Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2
|
||||||
@ -83,7 +88,6 @@ The following ATARAID types are supported:
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for dmraid
|
Summary: Development files for dmraid
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -116,15 +120,16 @@ cp %{SOURCE3} .
|
|||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
rm -r autom4te.cache
|
rm -r autom4te.cache
|
||||||
%configure \
|
%configure \
|
||||||
--libdir=/%_lib \
|
%if !0%{?usrmerged}
|
||||||
--sbindir=/sbin \
|
--sbindir=%{sbindir} \
|
||||||
|
%endif
|
||||||
--with-user=`id -nu` --with-group=`id -ng` \
|
--with-user=`id -nu` --with-group=`id -ng` \
|
||||||
--enable-libselinux --enable-libsepol
|
--enable-libselinux --enable-libsepol
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
rm -f $RPM_BUILD_ROOT/%_lib/libdmraid.a
|
rm -f $RPM_BUILD_ROOT/%_libdir/libdmraid.a
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_fillupdir}
|
mkdir -p $RPM_BUILD_ROOT%{_fillupdir}
|
||||||
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_fillupdir}/sysconfig.dmraid
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_fillupdir}/sysconfig.dmraid
|
||||||
install -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/dmraid-activation.service
|
install -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/dmraid-activation.service
|
||||||
@ -156,13 +161,13 @@ chmod -x %{buildroot}%{_prefix}/include/dmraid/*h
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
/sbin/dmraid
|
%{sbindir}/dmraid
|
||||||
/sbin/dmevent_tool
|
%{sbindir}/dmevent_tool
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%doc LICENSE LICENSE_GPL LICENSE_LGPL README README.SUSE TODO doc/*
|
%doc LICENSE LICENSE_GPL LICENSE_LGPL README README.SUSE TODO doc/*
|
||||||
%{_fillupdir}/sysconfig.dmraid
|
%{_fillupdir}/sysconfig.dmraid
|
||||||
/%{_lib}/libdmraid-events-isw.so
|
%{_libdir}/libdmraid-events-isw.so
|
||||||
/%{_lib}/libdmraid.so.1.0.0.rc16-3
|
%{_libdir}/libdmraid.so.1.0.0.rc16-3
|
||||||
%dir %{_tmpfilesdir}
|
%dir %{_tmpfilesdir}
|
||||||
%{_tmpfilesdir}/dmraid.conf
|
%{_tmpfilesdir}/dmraid.conf
|
||||||
%{_unitdir}/dmraid-activation.service
|
%{_unitdir}/dmraid-activation.service
|
||||||
@ -171,6 +176,6 @@ chmod -x %{buildroot}%{_prefix}/include/dmraid/*h
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%dir %{_prefix}/include/dmraid
|
%dir %{_prefix}/include/dmraid
|
||||||
%{_prefix}/include/dmraid
|
%{_prefix}/include/dmraid
|
||||||
/%{_lib}/libdmraid.so
|
%{_libdir}/libdmraid.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user