From 5e8de45aba28f9d98d208dab287e17e79dc7426b24cf18fe6cf3393fea8c6f0d Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 23 Jan 2020 20:10:04 +0000 Subject: [PATCH] Accepting request 766653 from home:dimstar:Factory - BuildRequire pkgconfig(udev) instead of udev: Allow OBS to shortcut through the -mini flavor. - Use pkg-config --modversion udev to identify the current udev version. This is more portable and supports the -mini flavors. OBS-URL: https://build.opensuse.org/request/show/766653 OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=329 --- btrfsprogs.changes | 8 ++++++++ btrfsprogs.spec | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/btrfsprogs.changes b/btrfsprogs.changes index 0759f02..d471bce 100644 --- a/btrfsprogs.changes +++ b/btrfsprogs.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jan 23 13:00:39 UTC 2020 - Dominique Leuenberger + +- BuildRequire pkgconfig(udev) instead of udev: Allow OBS to + shortcut through the -mini flavor. +- Use pkg-config --modversion udev to identify the current udev + version. This is more portable and supports the -mini flavors. + ------------------------------------------------------------------- Wed Dec 4 00:00:00 CET 2019 - dsterba@suse.cz diff --git a/btrfsprogs.spec b/btrfsprogs.spec index bc427cc..b90238e 100644 --- a/btrfsprogs.spec +++ b/btrfsprogs.spec @@ -1,7 +1,7 @@ # # spec file for package btrfsprogs # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ %define udev_with_btrfs_builtin 190 -%define udev_version %(rpm -q --queryformat %%{VERSION} udev) +%define udev_version %(pkg-config --modversion udev) %define package_udev_rules %{udev_version} >= %{udev_with_btrfs_builtin} %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -74,7 +74,7 @@ BuildRequires: pkg-config %if 0%{?suse_version} >= 1310 BuildRequires: suse-module-tools %endif -BuildRequires: udev +BuildRequires: pkgconfig(udev) %if 0%{?suse_version} == 1310 BuildRequires: libudev-devel %endif