diff --git a/_service b/_service
index 0584d38..200d6b7 100644
--- a/_service
+++ b/_service
@@ -2,8 +2,8 @@
git
git://git.osmocom.org/libosmocore
- 1.3.0
- 1.3.0
+ 1.3.1
+ 1.3.1
*.tar
diff --git a/libosmocore-1.3.0.tar.xz b/libosmocore-1.3.0.tar.xz
deleted file mode 100644
index 4299912..0000000
--- a/libosmocore-1.3.0.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d982ce76104659d8cac2d381cc832304c9bfd8b7812ebb3f5fb1dcbecfccec13
-size 817524
diff --git a/libosmocore-1.3.1.tar.xz b/libosmocore-1.3.1.tar.xz
new file mode 100644
index 0000000..aa43983
--- /dev/null
+++ b/libosmocore-1.3.1.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54081f945b51ec5ccce6b8411207e1854e89c06d8b65ff3ed230d522abaa9960
+size 818256
diff --git a/libosmocore.changes b/libosmocore.changes
index 1360f07..1803d80 100644
--- a/libosmocore.changes
+++ b/libosmocore.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Fri Jun 5 23:00:54 UTC 2020 - Jan Engelhardt
+
+- Update to release 1.3.1
+ * Changes to build procedure only.
+
-------------------------------------------------------------------
Sun Jan 5 10:39:49 UTC 2020 - Martin Hauke
diff --git a/libosmocore.spec b/libosmocore.spec
index ac2b173..389b307 100644
--- a/libosmocore.spec
+++ b/libosmocore.spec
@@ -1,7 +1,7 @@
#
# spec file for package libosmocore
#
-# Copyright (c) 2020 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
@@ -17,7 +17,7 @@
Name: libosmocore
-Version: 1.3.0
+Version: 1.3.1
Release: 0
Summary: The Open Source Mobile Communications Core Library
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL-3.0-or-later
@@ -305,16 +305,15 @@ applications that want to make use of libosmousb.
%build
echo "%version" >.tarball-version
autoreconf -fiv
-%configure \
- --enable-shared \
- --disable-static \
- --includedir="%_includedir/%name"
+%configure CFLAGS="%optflags -fcommon" \
+ --enable-shared \
+ --disable-static \
+ --includedir="%_includedir/%name"
make %{?_smp_mflags}
%install
-b="%buildroot"
-make %{?_smp_mflags} install DESTDIR="$b"
-find "$b/%_libdir" -type f -name "*.la" -delete
+%make_install
+find "%buildroot/%_libdir" -type f -name "*.la" -delete
%check
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
@@ -426,11 +425,9 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%_libdir/pkgconfig/libosmovty.pc
%files -n libosmousb0
-%defattr(-,root,root)
%_libdir/libosmousb.so.0*
%files -n libosmousb-devel
-%defattr(-,root,root)
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/usb/