[ovs-dev] [PATCH 3/3] rhel: fix rpm build 'Installed (but unpackaged) file(s) found' error
Tashi Lu
dotslash.lu at gmail.com
Tue Sep 15 17:44:53 UTC 2015
>From 1565cd8ccac1d919eb6d1ffc3185e89bc5e0607d Mon Sep 17 00:00:00 2001
From: dotSlashLu <dotslash.lu at gmail.com>
Date: Tue, 15 Sep 2015 20:44:29 +0800
Subject: [PATCH 3/3] rhel: fix rpm build 'Installed (but unpackaged)
file(s) found' error
fix rhel kmod rpm build error:
RPM build errors:
Installed (but unpackaged) file(s) found:
/etc/depmod.d/openvswitch.conf
Signed-off-by: Dotslash Lu <dotslash.lu at gmail.com>
---
rhel/openvswitch-kmod-rhel6.spec.in | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/rhel/openvswitch-kmod-rhel6.spec.in b/rhel/
openvswitch-kmod-rhel6.spec.in
index 5d46838..fa9e38c 100644
--- a/rhel/openvswitch-kmod-rhel6.spec.in
+++ b/rhel/openvswitch-kmod-rhel6.spec.in
@@ -48,6 +48,10 @@ override %{oname} * extra/%{oname}
override %{oname} * weak-updates/%{oname}
EOF
+%files
+%defattr(-,root,root,-)
+%{_sysconfdir}/depmod.d/
+
%build
for flavor in %flavors_to_build; do
mkdir _$flavor
--
1.7.1
More information about the dev
mailing list