Browse Source

mdadm-4.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11538 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
9665e793ba
1 changed files with 15 additions and 10 deletions
  1. 15 10
      m/mdadm/mdadm-vl.spec

+ 15 - 10
m/mdadm/mdadm-vl.spec

@@ -4,9 +4,9 @@
 Summary:     Utilities for Linux md devices (software RAID arrays)
 Summary(ja): Linux の MD デバイス(ソフトウエアRAIDアレイ)用のユーティリティ
 Name:        mdadm
-Version:     3.3
+Version:     4.0
 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
 Source2:     raid-check
 Source3:     mdadm.rules
@@ -15,12 +15,10 @@ Source5:     mdadm-cron
 Source6:     mdmonitor.service
 Source7:     mdadm.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
 Patch98:     mdadm-2.5.2-static.patch
 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
 %setup -q
 
-%patch1 -p1 -b .types
 # Fedora customization patches
+%patch93 -p1 -b .fallthrough
+%patch94 -p1 -b .forced
+%patch95 -p1 -b .replace
+%patch96 -p1 -b .buffer
 %patch97 -p1 -b .udev
 %patch98 -p1 -b .static
 
 %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
 rm -rf %{buildroot}
@@ -65,6 +66,7 @@ install -Dp -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/cron.d/raid-check
 # tmpfile
 mkdir -p %{buildroot}%{_tmpfilesdir}
 install -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf
+
 mkdir -p %{buildroot}%{_localstatedir}/run/
 install -d -m 0710 %{buildroot}%{_localstatedir}/run/%{name}/
 
@@ -116,6 +118,9 @@ fi
 %config(noreplace) %{_tmpfilesdir}/%{name}.conf
 
 %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
 - new upstream release.