From f7f7d12a1c2159594e986ba978c7dc13870a9481f1ad561b26e3dcb6cd66ec69 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Sun, 25 Mar 2018 09:22:47 +0000
Subject: [PATCH] Wrap desc at 70 cols Streamline macro curlification

OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-sccp?expand=0&rev=25
---
 libosmo-sccp.spec | 38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)

diff --git a/libosmo-sccp.spec b/libosmo-sccp.spec
index 53a388b..df833b0 100644
--- a/libosmo-sccp.spec
+++ b/libosmo-sccp.spec
@@ -16,11 +16,10 @@
 #
 
 
-%define libversion %(echo "%{version}" |sed 's/\\./_/g')
-
 Name:           libosmo-sccp
 Version:        0.8.1
 Release:        0
+%define libversion %(echo "%version" | sed 's/\\./_/g')
 Summary:        Osmocom library for the A-bis interface between BTS and BSC
 License:        AGPL-3.0-or-later AND GPL-2.0-or-later
 Group:          Hardware/Mobile
@@ -147,12 +146,11 @@ License:        GPL-2.0-or-later
 Group:          Productivity/Telephony/Servers
 
 %description -n osmo-stp
-This is the Osmocom (Open Source Mobile Communications) implementation
-of a Signaling Transfer Point (STP) for SS7/SIGTRAN telecommunication
-networks. At this point it is a very minimal implementation, missing
-lots of the functionality usually present in a STP, such as Global Title
-Routing, Global Title Translation.
-
+This is the Osmocom (Open Source Mobile Communications)
+implementation of a Signaling Transfer Point (STP) for SS7/SIGTRAN
+telecommunication networks. At this point, it is a minimal
+implementation, missing lots of the functionality usually present in
+a STP, such as Global Title Routing, Global Title Translation.
 
 %prep
 %setup -q
@@ -161,24 +159,24 @@ Routing, Global Title Translation.
 %build
 echo "%version" >.tarball-version
 autoreconf -fiv
-%configure \
-  --enable-shared \
-  --disable-static \
-  --includedir="%_includedir/%name"
+%configure --disable-static --includedir="%_includedir/%name"
 make %{?_smp_mflags}
 
 %install
 %make_install
 find "%buildroot/%_libdir" -type f -name "*.la" -delete
-install -D -m 0644 contrib/systemd/osmo-stp.service %{buildroot}%{_unitdir}/osmo-stp.service
-install -d "%{buildroot}/%{_unitdir}" "%{buildroot}/%{_sbindir}"
-ln -s service "%{buildroot}/%{_sbindir}/rcosmo-stp"
+install -D -m 0644 contrib/systemd/osmo-stp.service %buildroot%_unitdir/osmo-stp.service
+install -d "%buildroot/%_unitdir" "%buildroot/%_sbindir"
+ln -s service "%buildroot/%_sbindir/rcosmo-stp"
 
 %check
+if ! make %{?_smp_mflags} check; then
+	find . -name testsuite.log -exec cat "{}" "+"
 %ifnarch ppc64 sparc64 s390x
-# still BE problems?
-make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} \; ; false)
+	# still BE problems?
+	exit 1
 %endif
+fi
 
 %post   -n libosmo-mtp-%libversion -p /sbin/ldconfig
 %postun -n libosmo-mtp-%libversion -p /sbin/ldconfig
@@ -247,8 +245,8 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} \; ; fals
 %_libdir/pkgconfig/libosmo-xua.pc
 
 %files -n osmo-stp
-%{_bindir}/osmo-stp
-%{_sbindir}/rcosmo-stp
-%{_unitdir}/osmo-stp.service
+%_bindir/osmo-stp
+%_sbindir/rcosmo-stp
+%_unitdir/osmo-stp.service
 
 %changelog