|
@@ -4,9 +4,9 @@
|
|
Summary: Utilities for Linux md devices (software RAID arrays)
|
|
Summary: Utilities for Linux md devices (software RAID arrays)
|
|
Summary(ja): Linux の MD デバイス(ソフトウエアRAIDアレイ)用のユーティリティ
|
|
Summary(ja): Linux の MD デバイス(ソフトウエアRAIDアレイ)用のユーティリティ
|
|
Name: mdadm
|
|
Name: mdadm
|
|
-Version: 3.3
|
|
|
|
|
|
+Version: 4.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
|
|
|
|
|
|
+Source: https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
|
|
Source1: mdmonitor.init
|
|
Source1: mdmonitor.init
|
|
Source2: raid-check
|
|
Source2: raid-check
|
|
Source3: mdadm.rules
|
|
Source3: mdadm.rules
|
|
@@ -15,12 +15,10 @@ Source5: mdadm-cron
|
|
Source6: mdmonitor.service
|
|
Source6: mdmonitor.service
|
|
Source7: mdadm.conf
|
|
Source7: mdadm.conf
|
|
Source8: mdadm_event.conf
|
|
Source8: mdadm_event.conf
|
|
-Patch1: mdadm-3.3-Be-consistent-in-return-types-from-byteswap-macros.patch
|
|
|
|
-Patch93: mdadm-3.2.6-Remove-offroot-argument-and-default-to-always-settin.patch
|
|
|
|
-Patch94: mdadm-3.2.6-Add-support-for-launching-mdmon-via-systemctl-instea.patch
|
|
|
|
-Patch95: mdadm-3.2.6-In-case-launching-mdmon-fails-print-an-error-message.patch
|
|
|
|
-Patch96: mdadm-3.2.6-mdmon-add-foreground-option.patch
|
|
|
|
-# Fedora customization patches
|
|
|
|
|
|
+Patch93: add-Wimplicit-fallthrough-0-in-Makefile.patch
|
|
|
|
+Patch94: forced-type-conversion-to-avoid-truncation.patch
|
|
|
|
+Patch95: replace-snprintf-with-strncpy-at-some-places.patch
|
|
|
|
+Patch96: specify-enough-length-when-write-to-buffer.patch
|
|
Patch97: mdadm-3.3-udev.patch
|
|
Patch97: mdadm-3.3-udev.patch
|
|
Patch98: mdadm-2.5.2-static.patch
|
|
Patch98: mdadm-2.5.2-static.patch
|
|
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
|
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
|
@@ -44,13 +42,16 @@ file can be used to help with some common tasks.
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
-%patch1 -p1 -b .types
|
|
|
|
# Fedora customization patches
|
|
# Fedora customization patches
|
|
|
|
+%patch93 -p1 -b .fallthrough
|
|
|
|
+%patch94 -p1 -b .forced
|
|
|
|
+%patch95 -p1 -b .replace
|
|
|
|
+%patch96 -p1 -b .buffer
|
|
%patch97 -p1 -b .udev
|
|
%patch97 -p1 -b .udev
|
|
%patch98 -p1 -b .static
|
|
%patch98 -p1 -b .static
|
|
|
|
|
|
%build
|
|
%build
|
|
-make %{?_smp_mflags} CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" mdadm mdmon
|
|
|
|
|
|
+make %{?_smp_mflags} CXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" SYSCONFDIR="%{_sysconfdir}" mdadm mdmon
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -65,6 +66,7 @@ install -Dp -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/cron.d/raid-check
|
|
# tmpfile
|
|
# tmpfile
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
install -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
install -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
|
|
|
+
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/
|
|
install -d -m 0710 %{buildroot}%{_localstatedir}/run/%{name}/
|
|
install -d -m 0710 %{buildroot}%{_localstatedir}/run/%{name}/
|
|
|
|
|
|
@@ -116,6 +118,9 @@ fi
|
|
%config(noreplace) %{_tmpfilesdir}/%{name}.conf
|
|
%config(noreplace) %{_tmpfilesdir}/%{name}.conf
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Feb 24 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Fri Jan 10 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.3-1
|
|
* Fri Jan 10 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.3-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|