[mdadm/f17: 3/4] Reorder patches to allow for udev query patch to apply on Fedora 17
Jes Sorensen
jsorensen at fedoraproject.org
Tue Apr 23 07:33:07 UTC 2013
commit 2f8071afbcb366994eb873cff7d817002794fc78
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date: Tue Apr 23 08:52:18 2013 +0200
Reorder patches to allow for udev query patch to apply on Fedora 17
Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
...-for-launching-mdmon-via-systemctl-instea.patch | 2 +-
mdadm-3.2.6-query-udev-dir-via-pkg-config.patch | 4 ++--
mdadm.spec | 16 +++++++++++-----
3 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/mdadm-3.2.6-Add-support-for-launching-mdmon-via-systemctl-instea.patch b/mdadm-3.2.6-Add-support-for-launching-mdmon-via-systemctl-instea.patch
index 6b69353..b7b6dfa 100644
--- a/mdadm-3.2.6-Add-support-for-launching-mdmon-via-systemctl-instea.patch
+++ b/mdadm-3.2.6-Add-support-for-launching-mdmon-via-systemctl-instea.patch
@@ -32,7 +32,7 @@ index b9787d6..b6edb23 100644
DIRFLAGS += -DFAILED_SLOTS_DIR=\"$(FAILED_SLOTS_DIR)\"
@@ -264,6 +265,9 @@ install-man: mdadm.8 md.4 mdadm.conf.5 mdmon.8
install-udev: udev-md-raid.rules
- $(INSTALL) -D -m 644 udev-md-raid.rules $(DESTDIR)/lib/udev/rules.d/64-md-raid.rules
+ $(INSTALL) -D -m 644 udev-md-raid.rules $(DESTDIR)$(UDEVDIR)/rules.d/64-md-raid.rules
+install-systemd: systemd/mdmon at .service
+ $(INSTALL) -D -m 644 systemd/mdmon at .service $(DESTDIR)$(SYSTEMD_DIR)/mdmon at .service
diff --git a/mdadm-3.2.6-query-udev-dir-via-pkg-config.patch b/mdadm-3.2.6-query-udev-dir-via-pkg-config.patch
index 78f611e..874c403 100644
--- a/mdadm-3.2.6-query-udev-dir-via-pkg-config.patch
+++ b/mdadm-3.2.6-query-udev-dir-via-pkg-config.patch
@@ -46,8 +46,8 @@ index 72f609e..a3e4027 100644
- $(INSTALL) -D -m 644 udev-md-raid.rules $(DESTDIR)/lib/udev/rules.d/64-md-raid.rules
+ $(INSTALL) -D -m 644 udev-md-raid.rules $(DESTDIR)$(UDEVDIR)/rules.d/64-md-raid.rules
- install-systemd: systemd/mdmon at .service
- $(INSTALL) -D -m 644 systemd/mdmon at .service $(DESTDIR)$(SYSTEMD_DIR)/mdmon at .service
+ uninstall:
+ rm -f $(DESTDIR)$(MAN8DIR)/mdadm.8 $(DESTDIR)$(MAN8DIR)/mdmon.8 $(DESTDIR)$(MAN4DIR)/md.4 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5 $(DESTDIR)$(BINDIR)/mdadm
--
1.8.1.4
diff --git a/mdadm.spec b/mdadm.spec
index dff44d9..3727fdd 100644
--- a/mdadm.spec
+++ b/mdadm.spec
@@ -1,7 +1,7 @@
Summary: The mdadm program controls Linux md devices (software RAID arrays)
Name: mdadm
Version: 3.2.6
-Release: 16%{?dist}
+Release: 17%{?dist}
Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
Source1: mdmonitor.init
Source2: raid-check
@@ -32,6 +32,8 @@ Obsoletes: mdctl,raidtools
%define fedora17 0
%else
%define fedora17 1
+%define _udevrulesdir /usr/lib/udev/rules.d
+%define _tmpfilesdir %{_prefix}/usr/lib/tmpfiles.d
%endif
%if %{fedora17}
Requires(post): systemd-units systemd-sysv chkconfig coreutils
@@ -70,6 +72,10 @@ is not used as the system init process.
%prep
%setup -q
+%patch1 -p1 -b .raidsize
+%patch2 -p1 -b .multictrl
+%patch3 -p1 -b .udevquery
+
# Use systemctl to launch mdmon on F18 and higher
%if !%{fedora17}
%patch93 -p1 -b .nooffroot
@@ -78,10 +84,6 @@ is not used as the system init process.
%patch96 -p1 -b .foreground
%endif
-%patch1 -p1 -b .raidsize
-%patch2 -p1 -b .multictrl
-%patch3 -p1 -b .udevquery
-
# Fedora customization patches
%patch97 -p1 -b .udev
%patch98 -p1 -b .static
@@ -164,6 +166,10 @@ rm -rf %{buildroot}
%endif
%changelog
+* Wed Apr 23 2013 Jes Sorensen <Jes.Sorensen at redhat.com> - 3.2.6-17
+- Reorder patches to allow for udev query patch to be applied on
+ Fedora 17 as well.
+
* Tue Apr 22 2013 Jes Sorensen <Jes.Sorensen at redhat.com> - 3.2.6-16
- Rely on rpm macros to place files in correct directories, and match /usr
move
More information about the scm-commits
mailing list