File themwi-system-sw.spec of Package themwi-system-sw

#
# spec file for package themwi-system-sw
#
# Copyright (c) 2022, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           themwi-system-sw
Version:        0~hg167
Release:        0
Summary:        Themyscira Wireless (ThemWi) sw suite
License:        SUSE-Public-Domain
Group:          Productivity/Telephony/Utilities
URL:            https://www.freecalypso.org/hg/themwi-system-sw/
#Hg-Clone:      https://www.freecalypso.org/hg/themwi-system-sw/
Source:         %{name}-%{version}.tar.xz
BuildRequires:  gcc13
BuildRequires:  libgsm-devel

%description
Themyscira Wireless (ThemWi) sw is a suite of daemon processes
and command line tools that run on the same machine as all those
Osmocom sw components and provide some additional functionality
that is not provided "out of the box" by Osmocom, most important
of which is outside connectivity to USA PSTN.

%prep
%setup -q
find . -name "Makefile" | xargs sed -i 's|-o bin -g bin||g'

%build
%make_build CC=gcc-13 CFLAGS='%{optflags} -Wno-return-type -I/usr/include/gsm/'

%install
install -d %{buildroot}/%{_bindir}
make install INSTBIN=%{buildroot}/%{_bindir}

%files
#%%license LICENSE
%{_bindir}/sip-manual-out
%{_bindir}/sip-out-test
%{_bindir}/sip-rx-test
%{_bindir}/sip-udp-dump
%{_bindir}/themwi-check-own
%{_bindir}/themwi-dump-numdb
%{_bindir}/themwi-mgw
%{_bindir}/themwi-mncc
%{_bindir}/themwi-short-dial
%{_bindir}/themwi-sip-in
%{_bindir}/themwi-sip-out
%{_bindir}/themwi-test-mtc
%{_bindir}/themwi-update-numdb
%{_bindir}/themwi-update-outrt

%changelog
openSUSE Build Service is sponsored by