diff --git a/.files b/.files
index 40cafd4..4075f50 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 80f5498..2b6e754 100644
--- a/.rev
+++ b/.rev
@@ -31,4 +31,12 @@
739256
+
+ 717a5de7cd0f32474c88dfcde7b0b4fb
+ 1.1.6
+
+ dimstar_suse
+ - Fix building with gcc10
+ 815363
+
diff --git a/4store.changes b/4store.changes
index a5e1972..5e7eac4 100644
--- a/4store.changes
+++ b/4store.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Wed Jun 17 06:31:57 UTC 2020 - Martin Pluskal
+
+- Fix building with gcc10
+
+-------------------------------------------------------------------
Thu Oct 17 12:09:15 UTC 2019 - Richard Brown
- Remove obsolete Groups tag (fate#326485)
diff --git a/4store.spec b/4store.spec
index 5727047..2da5926 100644
--- a/4store.spec
+++ b/4store.spec
@@ -1,7 +1,7 @@
#
# spec file for package 4store
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -44,7 +44,10 @@ BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(zlib)
%description
-4store was designed by Steve Harris and developed at Garlik to underpin their Semantic Web applications. It has been providing the base platform for around 3 years. At times holding and running queries over databases of 15GT, supporting a Web application used by thousands of people.
+4store was designed by Steve Harris and developed at Garlik to underpin
+their Semantic Web applications. It has been providing the base platform
+for around 3 years. At times holding and running queries over databases of
+15GT, supporting a Web application used by thousands of people.
%package -n lib4store%{major}
Summary: 4store RDF Storage Library
@@ -66,14 +69,16 @@ This package provides 4store RDF storage development files.
%build
# configure script is not shipped since v1.1.6, generation is required
echo %{version} > .version && ./autogen.sh
+# needed for building with gcc10
+export CFLAGS="%{optflags} -fcommon"
%configure --disable-static
-make %{?_smp_mflags}
+%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
-sed -i 's:/usr/bin/env bash:/bin/bash:' %{buildroot}%{_bindir}/4s-*
-sed -i 's:/usr/bin/env perl:/usr/bin/perl:' %{buildroot}%{_bindir}/4s-*
+sed -i 's:%{_bindir}/env bash:/bin/bash:' %{buildroot}%{_bindir}/4s-*
+sed -i 's:%{_bindir}/env perl:%{_bindir}/perl:' %{buildroot}%{_bindir}/4s-*
%post -n lib4store%{major} -p /sbin/ldconfig
%postun -n lib4store%{major} -p /sbin/ldconfig