diff --git a/_service b/_service
index fb11047..f7929de 100644
--- a/_service
+++ b/_service
@@ -3,7 +3,7 @@
@PARENT_TAG@
v(.*)
https://github.com/wine-staging/wine-staging.git
- refs/tags/v5.0
+ refs/tags/v5.1
v*.*
git
diff --git a/wine-5.0.tar.xz b/wine-5.0.tar.xz
deleted file mode 100644
index e4a176e..0000000
--- a/wine-5.0.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:181550ba69a80b00c631f80c28ff7642264613bbecdb0c0fc04d6534866713b4
-size 22469428
diff --git a/wine-5.0.tar.xz.sign b/wine-5.0.tar.xz.sign
deleted file mode 100644
index d534e24..0000000
--- a/wine-5.0.tar.xz.sign
+++ /dev/null
@@ -1,16 +0,0 @@
------BEGIN PGP SIGNATURE-----
-
-iQIzBAABCgAdFiEE2iNXmnTUrZr50/lFzvrI6q8XUZ0FAl4nLxcACgkQzvrI6q8X
-UZ3+oA//deWjMrq1pfmhDeO0XumHSkCS45MG/az5lJZNl0jSthR2FS31kuV2hz0d
-esUXtU8r6N+vzkiCPHGrVls5V1g6uymXzM4lzQRhVMoul2ceLaGOLrx5xVplyl8m
-7Uo4F4m+yYPTcl6Kokzvtn3+Q8HfSrtFYogidEPy4ZKYzyWei93oQLeDf50zUMZS
-hUg5fk/s/5p9zFwEZGC2ydRIf35P7ZXsEpWRwpZp8qFD3L4ZbpVIlLGPVuHC6dM/
-xVVV+Q4LrbRICPHb6kAXAghN/6YINruS2/ocWMkovN8/nzgRoFe27pd4YzeQeL0Z
-8+LG8cY7MmiZ6vUaHjMCWUVdOasnLMl/4tJcVbYIiDJPYUPrDvDlyZQEZJ6/qp3o
-xaMhiZfukpIPC7H07kn7uXzy0sCtUanuNTI4IXHe2ecnTI+449OgTjusdZ7RAZwO
-mOfkzyUgfProwFvXc0W32vPvSqzF8uylQvnuCHKsYuQBuFjvQpkgeGbYieGB3XWH
-rmQ/SiSZrABFXb+gBWOeqeAkrz3/DAHVmL9zfVJll0eVXJpIT+jOdsDHWYszgqh3
-BBInhDdkm7qhLtfF5rNOUtgxup4O4z1Aah3dbeHokf5WISrm4iitCREmDUBpkwtN
-Y/Qi0yCUb+jR5U6AKng0Td2td0bfyL+RqG7sOmLiBkFM6vHyHeA=
-=M6jJ
------END PGP SIGNATURE-----
diff --git a/wine-5.1.tar.xz b/wine-5.1.tar.xz
new file mode 100644
index 0000000..0c55efb
--- /dev/null
+++ b/wine-5.1.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de8380f78bb0dc0f0ee26a8f16675f8c80c0bf45cf4e305acb82eb9ec3c2c9cd
+size 22500180
diff --git a/wine-5.1.tar.xz.sign b/wine-5.1.tar.xz.sign
new file mode 100644
index 0000000..5bec948
--- /dev/null
+++ b/wine-5.1.tar.xz.sign
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCgAdFiEE2iNXmnTUrZr50/lFzvrI6q8XUZ0FAl43G0QACgkQzvrI6q8X
+UZ0tYg//QAfM+eZKJuWPByRmuqd7FHLHahAzZkkgXFdk4wPGx3Rcw8QEqXUIGLC8
+Q8EjvyCrN/LzAqfeBo2b2fbV0PRnYGWY5D8kq9Z323e9URMdyVrBRctpHktlDdKB
+qwIotVN8EqJR35cyKd5ia9xJAHP5wYS9u1/fbcZAX220kJKJKYQQSlhGg7+y6AyY
+NbJnLn2RQBFZr5Q7CGW0VRGj70dyKfN47X8IWNF0ZElo+fMaFM43KQkJ6JI9smBD
+XBpekkhdaqDWrmELtsL4auemvI9avzI+gOM6ETgF70V7ZqgdiCZ8DGjYAz0IIlvV
+5lEiMTEV3svY+xOB19Hx+YL15+QxtKX766/KcwJ/CRqMM2Qv699FsGBum4AOCl9X
+Hbvk759kRFtKf46dxwE4kyKMNdPcR6LOLuZRGY//ZWGeF9ldaKj7nsyDJwp2fK3M
+dOzZhhaanRlYMCpnLT4lhQ7OD0rTK2uFS6GH0Bi+5ssDzgATobbZPVsB7RKg8vKW
+2mKaOxseAKy7loXa31tz7XLV1ySVuqY4Icqzll4Y4tYJFG/swj2AAtsja0Xyg5Kc
+q3r4ZsW2fAUSGU547Og0/vg+3A6dSlQvCSNfh0tBEZj7OKg6ytwWfqtM18Q1cU7t
+s5F897jGrYw9SIhL3J5pb/CqoaQhtVB1LTJr2tvriTxjiApDj1Y=
+=3ogx
+-----END PGP SIGNATURE-----
diff --git a/wine-staging-5.0.tar.xz b/wine-staging-5.0.tar.xz
deleted file mode 100644
index 3b3225c..0000000
--- a/wine-staging-5.0.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:b6e3fee559a803143740ddfd4a1c664fd33606ea354b82ff0d702f19a1ae8275
-size 7469932
diff --git a/wine-staging-5.1.tar.xz b/wine-staging-5.1.tar.xz
new file mode 100644
index 0000000..e7e61fe
--- /dev/null
+++ b/wine-staging-5.1.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5d81cc30b16fa6c53c5d14b6f1d637be7c73ae1fbc0663b3547fedc42fcdce74
+size 7455544
diff --git a/wine.changes b/wine.changes
index 2b6404a..9bf3740 100644
--- a/wine.changes
+++ b/wine.changes
@@ -1,3 +1,15 @@
+-------------------------------------------------------------------
+Mon Feb 3 12:46:58 UTC 2020 - Marcus Meissner
+
+- Updated to 5.1 development release
+ - Support for using LLVM-MinGW as PE cross-compiler.
+ - Better reporting of error location in JScript and VBScript.
+ - Support for relocatable installation of the Winelib tools.
+ - Ellipse drawing in Direct2D.
+ - OLE monikers improvements.
+ - Various bug fixes.
+- update staging to 5.1 release
+
-------------------------------------------------------------------
Wed Jan 22 06:53:38 UTC 2020 - Marcus Meissner
diff --git a/wine.spec b/wine.spec
index c42cc83..5cac002 100644
--- a/wine.spec
+++ b/wine.spec
@@ -29,8 +29,8 @@
%endif
# needs to be on top due to usage of %version macro below
-%define realver 5.0
-Version: 5.0
+%define realver 5.1
+Version: 5.1
Release: 0
%if "%{flavor}" != ""
@@ -92,12 +92,14 @@ BuildRequires: pkgconfig
BuildRequires: sane-backends-devel
BuildRequires: update-desktop-files
BuildRequires: valgrind-devel
+%if 0%{?suse_version} >= 1550
%ifarch x86_64
BuildRequires: mingw64-cross-gcc
%endif
%ifarch %ix86
BuildRequires: mingw32-cross-gcc
%endif
+%endif
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
@@ -124,9 +126,9 @@ Summary: An MS Windows Emulator
License: LGPL-2.1-or-later
Group: System/Emulators/PC
Url: http://www.winehq.org/
-Source0: https://dl.winehq.org/wine/source/5.0/%{projectname}-%{realver}.tar.xz
+Source0: https://dl.winehq.org/wine/source/5.x/%{projectname}-%{realver}.tar.xz
Source41: wine.keyring
-Source42: https://dl.winehq.org/wine/source/5.0/%{projectname}-%{realver}.tar.xz.sign
+Source42: https://dl.winehq.org/wine/source/5.x/%{projectname}-%{realver}.tar.xz.sign
Source2: http://kegel.com/wine/wisotool
Source3: README.SUSE
Source4: wine.desktop
@@ -155,7 +157,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %{ix86} x86_64 ppc %arm aarch64
%if %{staging}
# upstream patch target version
-%define staging_version 5.0
+%define staging_version 5.1
Source100: wine-staging-%{staging_version}.tar.xz
BuildRequires: gtk3-devel
BuildRequires: libOSMesa-devel