139 lines
4.0 KiB
RPMSpec
139 lines
4.0 KiB
RPMSpec
Name: mdadm
|
|
Version: 4.1
|
|
Release: rc2.0.8
|
|
Summary: The software RAID arrays user manage tools
|
|
License: GPLv2+
|
|
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
|
|
|
Source0: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}-rc2.tar.xz
|
|
Source1: mdcheck-cron
|
|
Source2: mdmonitor.service
|
|
|
|
Patch6000: 6000-Assemble-free-resources-in-load_devices.patch
|
|
Patch6001: 6001-Assemble-set-devices-to-NULL-when-load_devices-can-t.patch
|
|
Patch6002: 6002-Document-PART-POLICY-lines.patch
|
|
Patch6003: 6003-Grow-avoid-overflow-in-compute_backup_blocks.patch
|
|
Patch6004: 6004-Grow-report-correct-new-chunk-size.patch
|
|
Patch6005: 6005-Fix-spelling-typos.patch
|
|
Patch6006: 6006-Detail.c-do-not-skip-first-character-when-calling-xs.patch
|
|
Patch6007: 6007-Fix-reshape-for-decreasing-data-offset.patch
|
|
Patch6008: 6008-mdmon-don-t-attempt-to-manage-new-arrays-when-termin.patch
|
|
Patch6009: 6009-mdmon-wait-for-previous-mdmon-to-exit-during-takeove.patch
|
|
Patch6010: 6010-Assemble-Fix-starting-array-with-initial-reshape-che.patch
|
|
Patch6011: 6011-add-missing-units-to-examine.patch
|
|
Patch6012: 6012-Create-Block-rounding-size-to-max.patch
|
|
|
|
BuildRequires: systemd gcc binutils
|
|
Requires(post): systemd coreutils
|
|
Requires(preun): systemd
|
|
Requires(postun): systemd coreutils
|
|
|
|
%description
|
|
mdadm is a tool for managing Linux Software RAID arrays.
|
|
It can create, assemble, report on, and monitor arrays.
|
|
It can also move spares between raid arrays when needed.
|
|
|
|
%package help
|
|
Summary: Including man files for mdadm
|
|
Requires: man
|
|
BuildArch: noarch
|
|
|
|
%description help
|
|
This contains man files for the using of mdadm.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}_rc2 -p1
|
|
|
|
%build
|
|
%make_build CXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" SYSCONFDIR="%{_sysconfdir}" mdadm mdmon
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} MANDIR=%{_mandir} BINDIR=%{_sbindir} SYSTEMD_DIR=%{_unitdir} install install-systemd
|
|
install -Dp -m 755 misc/mdcheck %{buildroot}%{_sbindir}/mdcheck
|
|
install -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.d/mdcheck
|
|
|
|
#install mdmonitor.service from local file
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
|
|
|
|
install -d -m 710 %{buildroot}/var/run/mdadm/
|
|
|
|
%post
|
|
%systemd_post mdmonitor.service
|
|
/usr/bin/systemctl disable mdmonitor-takeover.service >/dev/null 2>&1 || :
|
|
|
|
%preun
|
|
%systemd_preun mdmonitor.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart mdmonitor.service
|
|
|
|
%files
|
|
%doc ChangeLog mdadm.conf-example
|
|
%license COPYING
|
|
%{_udevrulesdir}/*
|
|
%{_sbindir}/*
|
|
%{_unitdir}/*
|
|
/usr/lib/systemd/system-shutdown/mdadm.shutdown
|
|
%config(noreplace) %{_sysconfdir}/cron.d/mdcheck
|
|
%dir %{_localstatedir}/run/mdadm/
|
|
|
|
%files help
|
|
%{_mandir}/man*/*
|
|
|
|
%changelog
|
|
* Tue Mar 3 2020 hy <eulerstoragemt@huawei.com> - 4.1-rc2.0.8
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:add ConditionPathExists in mdmonitor.service for resolving service failure during system startup
|
|
|
|
* Sun Jan 19 2020 hy <eulerstoragemt@huawei.com> - 4.1-rc2.0.7
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:add the --syslog option while executing mdadm --scan command in mdmonitor.service
|
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.1-rc2.0.6
|
|
- Type:enhancemnet
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Repackage
|
|
|
|
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.1-rc2.0.5
|
|
- Type:enhancement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:use incremental assembly rules
|
|
|
|
* Wed Aug 28 2019 zhanghaibo <ted.zhang@huawei.com> - 4.1-rc2.0.4
|
|
- Type:enhancemnet
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESCi:openEuler Debranding
|
|
|
|
* Wed Aug 21 2019 zhanghaibo <ted.zhang@huawei.com> - 4.1-rc2.0.3
|
|
- Type:enhancemnet
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESCi:openEuler Debranding
|
|
|
|
* Thu Aug 8 2019 zhanghaibo <ted.zhang@huawei.com> - 4.1-rc2.0.2.h3
|
|
- Type:enhancemnet
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESCi:openEuler Debranding
|
|
|
|
* Sat Jun 22 2019 zhangsaisai<zhangsaisai@huawei.com> - 4.1-rc2.0.2.h2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:backport patch from community
|
|
|
|
* Wed Apr 10 2019 wangjufeng<wangjufeng@huawei.com> - 4.1-rc2.0.2.h1
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:backport patch from community
|
|
|
|
- Package Initialization
|