From d64577961951b7fdce0e2c3fb3c0cd002a04e36d Mon Sep 17 00:00:00 2001 From: David King Date: Mon, 22 Jun 2015 22:14:38 +0100 Subject: [PATCH] Use pkgconfig for BuildRequires https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires --- gnome-system-monitor.spec | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/gnome-system-monitor.spec b/gnome-system-monitor.spec index d82c208..6bbaceb 100644 --- a/gnome-system-monitor.spec +++ b/gnome-system-monitor.spec @@ -1,10 +1,8 @@ # Note that this is NOT a relocatable package -%define libgtop2_version 2.28.2 -%define libwnck_version 2.91.0 -%define desktop_file_utils_version 0.2.90 -%define libselinux_version 1.23.2 -%define polkit_version 0.92 +%global libgtop2_version 2.28.2 +%global libwnck_version 2.91.0 +%global desktop_file_utils_version 0.2.90 Summary: Process and resource monitor Name: gnome-system-monitor @@ -16,18 +14,15 @@ URL: http://www.gnome.org/ #VCS: git:git://git.gnome.org/gnome-system-monitor Source: http://download.gnome.org/sources/%{name}/3.17/%{name}-%{version}.tar.xz -BuildRequires: libgtop2-devel >= %{libgtop2_version} -BuildRequires: libwnck3-devel >= %{libwnck_version} -BuildRequires: gtk3-devel -BuildRequires: gtkmm30-devel +BuildRequires: pkgconfig(libgtop-2.0) >= %{libgtop2_version} +BuildRequires: pkgconfig(libwnck-3.0) >= %{libwnck_version} +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(gtkmm-3.0) +BuildRequires: pkgconfig(libsystemd-login) +BuildRequires: pkgconfig(librsvg-2.0) +BuildRequires: pkgconfig(libxml-2.0) BuildRequires: desktop-file-utils -BuildRequires: startup-notification-devel BuildRequires: intltool gettext -BuildRequires: libselinux-devel >= %{libselinux_version} -BuildRequires: pcre-devel -BuildRequires: systemd-devel -BuildRequires: librsvg2-devel -BuildRequires: libxml2-devel BuildRequires: itstool %description @@ -39,7 +34,7 @@ such as CPU and memory. %setup -q %build -%configure --enable-systemd +%configure --enable-systemd --enable-wnck make %{?_smp_mflags} %install @@ -75,6 +70,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : * Mon Jun 22 2015 David King - 3.17.3-1 - Update to 3.17.3 - Preserve timestamps during install +- Use pkgconfig for BuildRequires * Wed Jun 17 2015 Fedora Release Engineering - 3.16.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild