<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/18308">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">contrib: import RPM spec<br><br>Copy the RPM spec file from:<br>https://build.opensuse.org/project/show/home:mnhauke:osmocom:nightly<br><br>Related: OS#4550<br>Change-Id: Ia18f44f1b6dc259c3d0474b88b33f4657d96fd7a<br>---<br>A contrib/osmo-sgsn.spec<br>1 file changed, 141 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/osmo-sgsn.spec b/contrib/osmo-sgsn.spec</span><br><span>new file mode 100644</span><br><span>index 0000000..3c592e7</span><br><span>--- /dev/null</span><br><span>+++ b/contrib/osmo-sgsn.spec</span><br><span>@@ -0,0 +1,141 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# spec file for package osmo-sgsn</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de></span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# All modifications and additions to the file contributed by third parties</span><br><span style="color: hsl(120, 100%, 40%);">+# remain the property of their copyright owners, unless otherwise agreed</span><br><span style="color: hsl(120, 100%, 40%);">+# upon. The license for this file, and modifications and additions to the</span><br><span style="color: hsl(120, 100%, 40%);">+# file, is the same license as for the pristine package itself (unless the</span><br><span style="color: hsl(120, 100%, 40%);">+# license for the pristine package is not an Open Source License, in which</span><br><span style="color: hsl(120, 100%, 40%);">+# case the license is the MIT License). An "Open Source License" is a</span><br><span style="color: hsl(120, 100%, 40%);">+# license that conforms to the Open Source Definition (Version 1.9)</span><br><span style="color: hsl(120, 100%, 40%);">+# published by the Open Source Initiative.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Please submit bugfixes or comments via http://bugs.opensuse.org/</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+## Disable LTO for now since it breaks compilation of the tests</span><br><span style="color: hsl(120, 100%, 40%);">+## https://osmocom.org/issues/4116</span><br><span style="color: hsl(120, 100%, 40%);">+%define _lto_cflags %{nil}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%define with_iu 1</span><br><span style="color: hsl(120, 100%, 40%);">+Name:           osmo-sgsn</span><br><span style="color: hsl(120, 100%, 40%);">+Version:        1.6.0.9</span><br><span style="color: hsl(120, 100%, 40%);">+Release:        0</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Osmocom's SGSN for 2G and 3G packet-switched mobile networks</span><br><span style="color: hsl(120, 100%, 40%);">+License:        AGPL-3.0-or-later AND GPL-2.0-or-later</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Productivity/Telephony/Servers</span><br><span style="color: hsl(120, 100%, 40%);">+URL:            https://osmocom.org/projects/osmosgsn/wiki/OsmoSGSN</span><br><span style="color: hsl(120, 100%, 40%);">+Source:         %{name}-%{version}.tar.xz</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  autoconf</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  automake</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  libtool</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  systemd-rpm-macros</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libcares)</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libcrypto) >= 0.9.5</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libgtp) >= 1.4.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmo-gsup-client) >= 1.0.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmo-netif) >= 0.4.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmoabis) >= 0.6.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmocore) >= 1.2.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmoctrl) >= 1.2.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmogb) >= 1.2.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmogsm) >= 1.2.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmovty) >= 1.2.0</span><br><span style="color: hsl(120, 100%, 40%);">+%{?systemd_requires}</span><br><span style="color: hsl(120, 100%, 40%);">+%if %{with_iu}</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libasn1c)</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmo-ranap) >= 0.4.0</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmo-sigtran) >= 1.0.0</span><br><span style="color: hsl(120, 100%, 40%);">+%endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description</span><br><span style="color: hsl(120, 100%, 40%);">+OsmoSGSN is Osmocom's Serving GPRS Support Node for 2G and 3G</span><br><span style="color: hsl(120, 100%, 40%);">+packet-switched mobile networks.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n osmo-gtphub</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Osmocom GTP Hub: Proxy for GTP traffic between multiple SGSNs and GGSNs</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Productivity/Telephony/Servers</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n osmo-gtphub</span><br><span style="color: hsl(120, 100%, 40%);">+Osmocom GTP Hub: Proxy for GTP traffic between multiple SGSNs and GGSNs.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n osmo-gbproxy</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Osmocom GPRS Gb Interface Proxy</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Productivity/Telephony/Servers</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n osmo-gbproxy</span><br><span style="color: hsl(120, 100%, 40%);">+The purpose of the Gb proxy is to aggregate the Gb links of multiple</span><br><span style="color: hsl(120, 100%, 40%);">+BSS's and present them in one Gb link to the SGSN.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%prep</span><br><span style="color: hsl(120, 100%, 40%);">+%setup -q</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%build</span><br><span style="color: hsl(120, 100%, 40%);">+echo "%{version}" >.tarball-version</span><br><span style="color: hsl(120, 100%, 40%);">+autoreconf -fi</span><br><span style="color: hsl(120, 100%, 40%);">+%configure \</span><br><span style="color: hsl(120, 100%, 40%);">+%if %{with_iu}</span><br><span style="color: hsl(120, 100%, 40%);">+  --enable-iu \</span><br><span style="color: hsl(120, 100%, 40%);">+%endif</span><br><span style="color: hsl(120, 100%, 40%);">+  --docdir=%{_docdir}/%{name} \</span><br><span style="color: hsl(120, 100%, 40%);">+  --with-systemdsystemunitdir=%{_unitdir}</span><br><span style="color: hsl(120, 100%, 40%);">+make %{?_smp_mflags}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%install</span><br><span style="color: hsl(120, 100%, 40%);">+%make_install</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%preun  %service_del_preun  %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+%postun %service_del_postun %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+%pre    %service_add_pre    %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+%post   %service_add_post   %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+%preun  -n osmo-gtphub %service_del_preun   osmo-gtphub.service</span><br><span style="color: hsl(120, 100%, 40%);">+%postun -n osmo-gtphub %service_del_postun  osmo-gtphub.service</span><br><span style="color: hsl(120, 100%, 40%);">+%pre    -n osmo-gtphub %service_add_pre     osmo-gtphub.service</span><br><span style="color: hsl(120, 100%, 40%);">+%post   -n osmo-gtphub %service_add_post    osmo-gtphub.service</span><br><span style="color: hsl(120, 100%, 40%);">+%preun  -n osmo-gbproxy %service_del_preun  osmo-gbproxy.service</span><br><span style="color: hsl(120, 100%, 40%);">+%postun -n osmo-gbproxy %service_del_postun osmo-gbproxy.service</span><br><span style="color: hsl(120, 100%, 40%);">+%pre    -n osmo-gbproxy %service_add_pre    osmo-gbproxy.service</span><br><span style="color: hsl(120, 100%, 40%);">+%post   -n osmo-gbproxy %service_add_post   osmo-gbproxy.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%check</span><br><span style="color: hsl(120, 100%, 40%);">+make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files</span><br><span style="color: hsl(120, 100%, 40%);">+%doc AUTHORS README</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/examples</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/examples/osmo-sgsn</span><br><span style="color: hsl(120, 100%, 40%);">+%exclude %{_docdir}/%{name}/examples/osmo-gtphub</span><br><span style="color: hsl(120, 100%, 40%);">+%exclude %{_docdir}/%{name}/examples/osmo-gbproxy</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-sgsn/osmo-sgsn-accept-all.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-sgsn/osmo-sgsn.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-sgsn/osmo-sgsn_custom-sccp.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-sgsn</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_sysconfdir}/osmocom</span><br><span style="color: hsl(120, 100%, 40%);">+%config %{_sysconfdir}/osmocom/osmo-sgsn.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_unitdir}/%{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n osmo-gtphub</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/examples</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/examples/osmo-gtphub</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-gtphub/osmo-gtphub-1iface.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-gtphub/osmo-gtphub.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-gtphub</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_sysconfdir}/osmocom</span><br><span style="color: hsl(120, 100%, 40%);">+%config %{_sysconfdir}/osmocom/osmo-gtphub.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_unitdir}/osmo-gtphub.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n osmo-gbproxy</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/examples</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/examples/osmo-gbproxy</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-gbproxy/osmo-gbproxy-legacy.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-gbproxy/osmo-gbproxy.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-gbproxy</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_sysconfdir}/osmocom</span><br><span style="color: hsl(120, 100%, 40%);">+%config %{_sysconfdir}/osmocom/osmo-gbproxy.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_unitdir}/osmo-gbproxy.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%changelog</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/18308">change 18308</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-sgsn/+/18308"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia18f44f1b6dc259c3d0474b88b33f4657d96fd7a </div>
<div style="display:none"> Gerrit-Change-Number: 18308 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>