]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.spec: fix build on openSUSE
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 28 May 2019 07:36:49 +0000 (09:36 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 29 Aug 2019 13:16:00 +0000 (13:16 +0000)
When testing the previous commit on openSUSE it turned out that it
didn't really work in the first place, without a few tweaks.

dracut.spec

index bdf7bb67e636411bd97f6c9bfdd1b001f901b8f0..30aee3321a93b52808f4e1f8e285e63342997d3c 100644 (file)
@@ -32,7 +32,7 @@ Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
 
 BuildRequires: bash
 BuildRequires: git
-BuildRequires: kmod-devel >= 23
+BuildRequires: pkgconfig(libkmod) >= 23
 BuildRequires: gcc
 
 %if 0%{?fedora} || 0%{?rhel}
@@ -319,6 +319,9 @@ install -m 0755 51-dracut-rescue-postinst.sh $RPM_BUILD_ROOT%{_sysconfdir}/kerne
 %{_mandir}/man8/mkinitrd.8*
 %{_mandir}/man1/lsinitrd.1*
 %endif
+%if 0%{?suse_version}
+%{_mandir}/man8/mkinitrd-suse.8*
+%endif
 %{_mandir}/man7/dracut.kernel.7*
 %{_mandir}/man7/dracut.cmdline.7*
 %{_mandir}/man7/dracut.modules.7*