From 75c5c01d7ee828f69c8cf28bae97ae743b25f2af Mon Sep 17 00:00:00 2001 From: David King Date: Fri, 6 Mar 2015 09:04:26 +0000 Subject: [PATCH] Use pkgconfig for BuildRequires https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires --- udisks2.spec | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/udisks2.spec b/udisks2.spec index 1eea998..a61553b 100644 --- a/udisks2.spec +++ b/udisks2.spec @@ -1,9 +1,9 @@ -%define glib2_version 2.36 -%define gobject_introspection_version 1.30.0 -%define polkit_version 0.102 -%define systemd_version 209 -%define libatasmart_version 0.17 -%define dbus_version 1.4.0 +%global glib2_version 2.36 +%global gobject_introspection_version 1.30.0 +%global polkit_version 0.102 +%global systemd_version 209 +%global libatasmart_version 0.17 +%global dbus_version 1.4.0 Summary: Disk Manager Name: udisks2 @@ -14,16 +14,16 @@ Group: System Environment/Libraries URL: http://www.freedesktop.org/wiki/Software/udisks Source0: http://udisks.freedesktop.org/releases/udisks-%{version}.tar.bz2 -BuildRequires: glib2-devel >= %{glib2_version} -BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version} -BuildRequires: polkit-devel >= %{polkit_version} -BuildRequires: intltool -BuildRequires: libatasmart-devel >= %{libatasmart_version} -BuildRequires: libgudev1-devel >= %{systemd_version} -BuildRequires: gtk-doc -BuildRequires: systemd-devel +BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version} +BuildRequires: pkgconfig(gudev-1.0) >= %{systemd_version} +BuildRequires: pkgconfig(libatasmart) >= %{libatasmart_version} +BuildRequires: pkgconfig(libsystemd) >= %{systemd_version} +BuildRequires: pkgconfig(polkit-gobject-1) >= %{polkit_version} BuildRequires: libacl-devel BuildRequires: chrpath +BuildRequires: gtk-doc +BuildRequires: intltool # needed to pull in the system bus daemon Requires: dbus >= %{dbus_version} @@ -169,6 +169,7 @@ chrpath --delete $RPM_BUILD_ROOT%{_prefix}/lib/udisks2/udisksd - Update to 2.1.5 - Use license macro for COPYING - Update man page globs in file section +- Use pkgconfig for BuildRequires * Fri Jan 30 2015 Tomas Bzatek - 2.1.4-1%{?dist} - Update to 2.1.4