[libosinfo] spec: Disable udev rule on newer Fedoras

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changes in udev > 197 and libblkid > 2.22.2 have made this rule obsolete.
---
 libosinfo.spec.in | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/libosinfo.spec.in b/libosinfo.spec.in
index 0c49950..4e59504 100644
--- a/libosinfo.spec.in
+++ b/libosinfo.spec.in
@@ -10,6 +10,11 @@
 %define with_gir 1
 %endif
 
+%define with_udev 1
+%if 0%{?fedora} >= 19
+%define with_udev 0
+%endif
+
 Summary: A library for managing OS information for virtualization
 Name: libosinfo
 Version: @VERSION@
@@ -73,7 +78,13 @@ This package provides the Vala bindings for libosinfo library.
 %define gir_arg --enable-introspection=no
 %endif
 
-%configure %{gir_arg} --enable-vala=yes --enable-udev=yes
+%if %{with_udev}
+%define udev_arg --enable-udev=yes
+%else
+%define udev_arg --enable-udev=no
+%endif
+
+%configure %{gir_arg} %{udev_arg} --enable-vala=yes
 %__make %{?_smp_mflags} V=1
 
 chmod a-x examples/*.js examples/*.py
@@ -119,7 +130,9 @@ rm -fr %{buildroot}
 %{_mandir}/man1/osinfo-query.1*
 %{_mandir}/man1/osinfo-install-script.1*
 %{_libdir}/%{name}-1.0.so.*
+%if %{with_udev}
 /lib/udev/rules.d/95-osinfo.rules
+%endif
 %if %{with_gir}
 %{_libdir}/girepository-1.0/Libosinfo-1.0.typelib
 %endif
-- 
1.8.1.2

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux