Accepting request 303923 from home:coolo:branches:openSUSE:Factory

- use pkgconfig to detect udev install directory to avoid problems
  during bootstrap

OBS-URL: https://build.opensuse.org/request/show/303923
OBS-URL: https://build.opensuse.org/package/show/hardware/usb_modeswitch?expand=0&rev=66
This commit is contained in:
Ismail Dönmez 2015-04-26 11:25:57 +00:00 committed by Git OBS Bridge
parent 23b7421240
commit f2565dfa60
2 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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