diff --git a/usb_modeswitch.changes b/usb_modeswitch.changes index 8e7c049..764e597 100644 --- a/usb_modeswitch.changes +++ b/usb_modeswitch.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Apr 25 08:17:32 UTC 2015 - coolo@suse.com + +- use pkgconfig to detect udev install directory to avoid problems + during bootstrap + ------------------------------------------------------------------- Wed Apr 8 02:18:03 UTC 2015 - p.drouand@gmail.com diff --git a/usb_modeswitch.spec b/usb_modeswitch.spec index 29512ce..9185cfe 100644 --- a/usb_modeswitch.spec +++ b/usb_modeswitch.spec @@ -15,13 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190 -%define _udevdir /usr/lib/udev/ -%else -%define _udevdir /lib/udev/ -%endif - Name: usb_modeswitch Version: 2.2.1 Release: 0 @@ -40,11 +33,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: pkg-config BuildRequires: tcl -BuildRequires: udev +BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(libusb-1.0) Requires: tcl >= 8.4 Requires: usb_modeswitch-data = %version +%define _udevdir %(pkg-config --variable=udevdir udev) + %description USB_ModeSwitch is a mode switching tool for controlling "flip flop" (multiple device) USB gear. It allows so-called "Zero-CD" devices that