[Libosinfo] [libosinfo] spec: Don't require udev on newer distros

Christophe Fergeau cfergeau at redhat.com
Tue Mar 5 17:32:03 UTC 2013


96c66b8 disabled building of the udev rule on newer Fedoras, however
the .spec still has a Requires: udev, which is not relevant
when the udev rule is not built.
---
 libosinfo.spec.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libosinfo.spec.in b/libosinfo.spec.in
index 49ebd52..fc2f2d1 100644
--- a/libosinfo.spec.in
+++ b/libosinfo.spec.in
@@ -37,7 +37,9 @@ BuildRequires: /usr/bin/pod2man
 BuildRequires: gobject-introspection-devel
 %endif
 Requires: hwdata
+%if %{with_udev}
 Requires: udev
+%endif
 
 %description
 libosinfo is a library that allows virtualization provisioning tools to
-- 
1.8.1.4




More information about the Libosinfo mailing list