Name: geninitrd
Version: 10000.18
# leave rel 1 for ac
-Release: 6
+Release: 9
License: GPL
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
# Source0-md5: b3b0acb344ae8852cf30672370c81888
Patch0: %{name}-romfs.patch
-Patch1: %{name}-lzma.patch
+Patch1: %{name}-gzip-compressor.patch
+Patch2: %{name}-lzma.patch
BuildRequires: xmlto >= 0:0.0.18-1
Requires: awk
Requires: busybox-initrd > 1.00-4
Requires: pci-database >= 0.4
Requires: rc-scripts >= 0.2.7
Requires: tar
+%if "%{pld_release}" == "ti"
+Requires: lvm2-initrd
+Requires: mdadm-initrd >= 1.12.0-1
+%else
# otherwise LVM subsystem is automatically disabled in geninitrd
Suggests: lvm2-initrd
# without this softraid installations of PLD fail
Suggests: mdadm-initrd >= 1.12.0-1
+%endif
Obsoletes: mkinitrd
Conflicts: grubby < 6.0.24-3
Conflicts: udev-initrd < 1:104
%setup -q
%if "%{pld_release}" == "ti"
%patch0 -p1
+%patch1 -p1
%endif
-%patch1 -p0
+%patch2 -p0
%build
+%{__make} clean
%{__make}
%install