From 6e217adbc95cbadc451d2ee146592fd9f47696ed Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 26 Feb 2015 13:57:54 +0000 Subject: [PATCH] Use pkgconfig for BuildRequires https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires --- gnome-keyring.spec | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/gnome-keyring.spec b/gnome-keyring.spec index 7be43a4..540551f 100644 --- a/gnome-keyring.spec +++ b/gnome-keyring.spec @@ -1,8 +1,7 @@ -%define glib2_version 2.38.0 -%define gcr_version 3.5.3 -%define dbus_version 1.1.1 -%define gcrypt_version 1.2.2 -%define libtasn1_version 0.3.4 +%global glib2_version 2.38.0 +%global gcr_version 3.5.3 +%global dbus_version 1.1.1 +%global gcrypt_version 1.2.2 Summary: Framework for managing passwords and other secrets Name: gnome-keyring @@ -14,21 +13,19 @@ Group: System Environment/Libraries Source: https://download.gnome.org/sources/%{name}/3.15/%{name}-%{version}.tar.xz URL: https://wiki.gnome.org/Projects/GnomeKeyring -BuildRequires: glib2-devel >= %{glib2_version} -BuildRequires: gcr-devel >= %{gcr_version} -BuildRequires: dbus-devel >= %{dbus_version} -BuildRequires: libgcrypt-devel >= %{gcrypt_version} -BuildRequires: libtasn1-devel >= %{libtasn1_version} -BuildRequires: pam-devel -BuildRequires: autoconf, automake, libtool +BuildRequires: pkgconfig(dbus-1) >= %{dbus_version} +BuildRequires: pkgconfig(gcr-3) >= %{gcr_version} +BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} +BuildRequires: pkgconfig(p11-kit-1) +BuildRequires: docbook-dtds +BuildRequires: docbook-style-xsl BuildRequires: gettext BuildRequires: intltool -BuildRequires: libtasn1-tools -BuildRequires: gtk-doc BuildRequires: libcap-ng-devel +BuildRequires: libgcrypt-devel >= %{gcrypt_version} BuildRequires: libselinux-devel -BuildRequires: p11-kit-devel -BuildRequires: gcr-devel +BuildRequires: pam-devel +BuildRequires: /usr/bin/xsltproc # we no longer have a devel subpackage Obsoletes: %{name}-devel < 3.3.0 @@ -112,6 +109,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas >&/dev/null || : * Thu Feb 26 2015 David King - 3.15.90-1 - Update to 3.15.90 - Update URL +- Use pkgconfig for BuildRequires * Tue Sep 23 2014 Kalev Lember - 3.14.0-1 - Update to 3.14.0