From f064d26e4c12739f40eddfc0513541fec19f2ecdacf54d1983fa98415f121f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Sun, 4 Nov 2012 18:58:46 +0000 Subject: [PATCH] Accepting request 140129 from home:elvigia:branches:devel:libraries:c_c++ - mtp-probe no longer working in factory, wrong udev dir. OBS-URL: https://build.opensuse.org/request/show/140129 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmtp?expand=0&rev=53 --- libmtp.changes | 5 +++++ libmtp.spec | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/libmtp.changes b/libmtp.changes index 95f844d..68a1947 100644 --- a/libmtp.changes +++ b/libmtp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 4 18:57:19 UTC 2012 - crrodriguez@opensuse.org + +- mtp-probe no longer working in factory, wrong udev dir. + ------------------------------------------------------------------- Sat Sep 22 11:34:52 UTC 2012 - toddrme2178@gmail.com diff --git a/libmtp.spec b/libmtp.spec index 4d7aea8..bbf574e 100644 --- a/libmtp.spec +++ b/libmtp.spec @@ -22,6 +22,7 @@ BuildRequires: doxygen BuildRequires: libgcrypt-devel BuildRequires: libusb-1_0-devel BuildRequires: pkg-config +BuildRequires: pkgconfig(udev) Summary: Commandline utilities for access to MTP Players License: LGPL-2.1+ Group: Productivity/Multimedia/Sound/Players @@ -30,7 +31,8 @@ Release: 0 %define sonum 9 Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build - +%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d +%define _udevdir %(pkg-config --variable=udevdir udev) %description This package contains binaries and documentation that allow access to USB based media players based on the MTP (Media Transfer Protocol) @@ -75,7 +77,7 @@ Transfer Protocol) authored by Microsoft. %setup -q %build -%configure --disable-static --enable-doxygen +%configure --with-udev=%{_udevdir} --disable-static --enable-doxygen make %{?_smp_mflags} %install @@ -101,10 +103,8 @@ rm -rf %{buildroot}/%{_libdir}/*.la #dir /usr/share/hal/fdi/information #dir /usr/share/hal/fdi/information/20thirdparty/ #usr/share/hal/fdi/information/20thirdparty/10-usb-music-players-libmtp.fdi -%dir /lib/udev -/lib/udev/mtp-probe -%dir /lib/udev/rules.d -%config /lib/udev/rules.d/69-libmtp.rules +%{_udevdir}/mtp-probe +%{_udevrulesdir}/69-libmtp.rules %files devel %defattr(-, root, root)