From 3e60d106998ad2c7c8422b8bff5362e09edb72e3c3f42a8d66e296bb025ef4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 23 Jan 2018 17:58:51 +0000 Subject: [PATCH] Accepting request 568738 from home:tbechtold:branches:devel:languages:python - Require libudev (bsc#1077282) Otherwise, an pyudev import fails with: ImportError: No library named udev OBS-URL: https://build.opensuse.org/request/show/568738 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=26 --- python-pyudev.changes | 7 +++++++ python-pyudev.spec | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pyudev.changes b/python-pyudev.changes index 557ac96..ca7b367 100644 --- a/python-pyudev.changes +++ b/python-pyudev.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jan 23 17:35:31 UTC 2018 - tbechtold@suse.com + +- Require libudev (bsc#1077282) + Otherwise, an pyudev import fails with: + ImportError: No library named udev + ------------------------------------------------------------------- Thu Aug 24 13:52:57 UTC 2017 - jmatejek@suse.com diff --git a/python-pyudev.spec b/python-pyudev.spec index c283c8d..bf84d76 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyudev # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,19 +30,19 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes -BuildRequires: libudev-devel -BuildRequires: libudev1 BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(libudev) %if %{with test} BuildRequires: %{python_module docutils} -BuildRequires: %{python_module mock} BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} BuildRequires: %{python_module pytest} BuildRequires: %{python_module py} %endif -Requires: udev Requires: python-six +Requires: udev +Requires: pkgconfig(libudev) %ifpython2 # pyudev was last used in KDE:Unstable:Playground (pyudev-0.8) Provides: pyudev = %{version}