[virt-tools-list] [virt-viewer] spec: Use pkgconfig() in BuildRequires

Fabiano Fidêncio fabiano at fidencio.org
Fri Apr 15 09:14:53 UTC 2016


On Fri, Apr 15, 2016 at 10:38 AM, Christophe Fergeau
<cfergeau at redhat.com> wrote:
> This is better than hardcoding the name of the development package as
> this will not be impacted by package renames.
> ---
>  virt-viewer.spec.in | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in
> index 3c483ea..f3661d2 100644
> --- a/virt-viewer.spec.in
> +++ b/virt-viewer.spec.in
> @@ -37,20 +37,20 @@ BuildRequires: gettext-devel
>  BuildRequires: libtool
>  %endif
>
> -BuildRequires: glib2-devel >= @GLIB2_REQUIRED@
> -BuildRequires: gtk3-devel >= @GTK_REQUIRED@
> -BuildRequires: libvirt-devel >= @LIBVIRT_REQUIRED@
> -BuildRequires: libvirt-glib-devel >= @LIBVIRT_GLIB_REQUIRED@
> -BuildRequires: libxml2-devel >= @LIBXML2_REQUIRED@
> -BuildRequires: gtk-vnc2-devel >= @GTK_VNC_REQUIRED@
> +BuildRequires: pkgconfig(glib-2.0) >= @GLIB2_REQUIRED@
> +BuildRequires: pkgconfig(gtk+-3.0) >= @GTK_REQUIRED@
> +BuildRequires: pkgconfig(libvirt) >= @LIBVIRT_REQUIRED@
> +BuildRequires: pkgconfig(libvirt-glib-1.0) >= @LIBVIRT_GLIB_REQUIRED@
> +BuildRequires: pkgconfig(libxml-2.0) >= @LIBXML2_REQUIRED@
> +BuildRequires: pkgconfig(gtk-vnc-2.0) >= @GTK_VNC_REQUIRED@
>  %if %{with_spice}
> -BuildRequires: spice-gtk3-devel >= @SPICE_GTK_REQUIRED@
> -BuildRequires: spice-protocol >= @SPICE_PROTOCOL_REQUIRED@
> +BuildRequires: pkgconfig(spice-client-gtk-3.0) >= @SPICE_GTK_REQUIRED@
> +BuildRequires: pkgconfig(spice-protocol) >= @SPICE_PROTOCOL_REQUIRED@
>  %endif
>  BuildRequires: /usr/bin/pod2man
>  BuildRequires: intltool
>  %if %{with_govirt}
> -BuildRequires: libgovirt-devel >= @GOVIRT_REQUIRED@
> +BuildRequires: pkgconfig(govirt-1.0) >= @GOVIRT_REQUIRED@
>  %endif
>
>  %if 0%{?fedora} >= 20
> --
> 2.5.5
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list

Acked-by: Fabiano Fidêncio <fidencio at redhat.com>

-- 
Fabiano Fidêncio




More information about the virt-tools-list mailing list