From bea00c525e2d8c9a4b76b43311331ec361fe7995 Mon Sep 17 00:00:00 2001
From: David King <amigadave@amigadave.com>
Date: Fri, 10 Mar 2023 12:43:04 +0000
Subject: [PATCH] Update to 0.56.4

---
 .gitignore |  1 +
 sources    |  2 +-
 vala.spec  | 20 +++++++++++++-------
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/.gitignore b/.gitignore
index 848c47a..65f3b2d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -133,3 +133,4 @@
 /vala-0.56.1.tar.xz
 /vala-0.56.2.tar.xz
 /vala-0.56.3.tar.xz
+/vala-0.56.4.tar.xz
diff --git a/sources b/sources
index da8f95a..41c6f35 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (vala-0.56.3.tar.xz) = 3222edab995a1d405bc891b37ffb4915677b7bb56ce3be7d1ece1dfb77f2d054bf7499dad9e6eb593c42678ae2c2c7cd779a595b702a3e2e38e9e0e0d69ba99e
+SHA512 (vala-0.56.4.tar.xz) = 302e72a42fcb0cffc1c8eec28014f216c3848aaecec100acabc5e952d6f3ad2471b341e92a266f452c3335b8d1dde9cb0b1e6da62b754ffb4749b0aa862f24ba
diff --git a/vala.spec b/vala.spec
index 8559388..d7ea155 100644
--- a/vala.spec
+++ b/vala.spec
@@ -2,14 +2,14 @@
 %global priority 90
 
 Name:           vala
-Version:        0.56.3
-Release:        2%{?dist}
+Version:        0.56.4
+Release:        1%{?dist}
 Summary:        A modern programming language for GNOME
 
 # Most files are LGPLv2.1+, curses.vapi is 2-clause BSD
-License:        LGPLv2+ and BSD
+License:        LGPL-2.1-or-later AND BSD-2-Clause
 URL:            https://wiki.gnome.org/Projects/Vala
-Source0:        https://download.gnome.org/sources/vala/0.55/vala-%{version}.tar.xz
+Source0:        https://download.gnome.org/sources/%{name}/0.56/%{name}-%{version}.tar.xz
 
 BuildRequires:  bison
 BuildRequires:  flex
@@ -121,7 +121,7 @@ developing applications that use valadoc.
 %configure
 # Don't use rpath!
 sed -i 's|/lib /usr/lib|/lib /usr/lib /lib64 /usr/lib64|' libtool
-make %{?_smp_mflags}
+%make_build
 
 
 %install
@@ -133,15 +133,18 @@ echo -e '#!/bin/sh\nexec %{_bindir}/vala-gen-introspect-%{api_ver}-`uname -m` "$
   %{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver}
   chmod +x %{buildroot}%{_bindir}/vala-gen-introspect-%{api_ver}
 
-find %{buildroot} -name '*.la' -exec rm -f {} ';'
+find %{buildroot} -name '*.la' -delete
 
 
 %check
-make check
+# https://gitlab.gnome.org/GNOME/vala/-/issues/1416
+export -n VALAFLAGS
+%make_build check
 
 
 %files
 %license COPYING
+%doc README.md
 %{_bindir}/vala
 %{_bindir}/vala-%{api_ver}
 %{_bindir}/valac
@@ -191,6 +194,9 @@ make check
 
 
 %changelog
+* Thu Mar 09 2023 David King <amigadave@amigadave.com> - 0.56.4-1
+- Update to 0.56.4
+
 * Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.56.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild