diff --git a/libgphoto2.changes b/libgphoto2.changes index 6cb2fd4..f4c6446 100644 --- a/libgphoto2.changes +++ b/libgphoto2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Aug 7 07:39:31 UTC 2015 - dimstar@opensuse.org + +- Change udev BuildRequires for pkgconfig(udev) +- use pkg-config --modversion udev instead of querying the package + database. udev is often installed as udev-mini in OBS' build env, + which the rpm -q udev call could not find. + ------------------------------------------------------------------- Sun Jul 5 21:36:34 UTC 2015 - meissner@suse.com diff --git a/libgphoto2.spec b/libgphoto2.spec index 9f46bd3..35263d4 100644 --- a/libgphoto2.spec +++ b/libgphoto2.spec @@ -16,7 +16,7 @@ # -%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190 +%if %( pkg-config --modversion udev ) > 190 %define _udevrulesdir /usr/lib/udev/rules.d %else %define _udevrulesdir /lib/udev/rules.d @@ -36,7 +36,7 @@ BuildRequires: libusb-1_0-devel BuildRequires: libxml2-devel BuildRequires: lockdev-devel BuildRequires: pkg-config -BuildRequires: udev +BuildRequires: pkgconfig(udev) %if 0%{?suse_version} > 1230 BuildRequires: systemd-rpm-macros %endif