Wrap desc at 70 cols

Streamline macro curlification

OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-sccp?expand=0&rev=25
This commit is contained in:
Jan Engelhardt 2018-03-25 09:22:47 +00:00 committed by Git OBS Bridge
parent 30b93cb5c2
commit f7f7d12a1c

View File

@ -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