Chris Johns 9b7cdb7603 bare: Fix pkgconfig checks and getting source.
- If the package was installed the check does not build the package.
  This also meant getting the source failed.

Closes #3919
2020-03-27 14:39:33 +11:00

27 lines
676 B
INI

#
# GLib
#
%if %{release} == %{nil}
%define release 1
%endif
%include %{_configdir}/base.cfg
%define glib_version_major 2.46
%define glib_version_minor 2
%define glib_version %{glib_version_major}.%{glib_version_minor}
%hash sha256 glib-%{glib_version}.tar.xz 5031722e37036719c1a09163cc6cf7c326e4c4f1f1e074b433c156862bd733db
%patch add glib https://gaisler.se/qemu/glib-2.46.2-werror.patch
%hash sha256 glib-2.46.2-werror.patch 389c00993f2890edaff6774d0dcfc7fcc99e92795ba913443fb9ec522f44a443
#
# The GLib build instructions. We use 2.x.x Release 1.
#
%if !%{pkgconfig check glib-2.0} || %{defined _rsb_getting_source}
%include %{_configdir}/glib-2-1.cfg
%endif