<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-hlr/+/18294">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: Icb6f4335d5157f058b39701e9fcb332264911ba3<br>---<br>A contrib/osmo-hlr.spec<br>1 file changed, 189 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/osmo-hlr.spec b/contrib/osmo-hlr.spec</span><br><span>new file mode 100644</span><br><span>index 0000000..3b5a9fa</span><br><span>--- /dev/null</span><br><span>+++ b/contrib/osmo-hlr.spec</span><br><span>@@ -0,0 +1,189 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# spec file for package osmo-hlr</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.</span><br><span style="color: hsl(120, 100%, 40%);">+# Copyright (c) 2016, 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%);">+Name:           osmo-hlr</span><br><span style="color: hsl(120, 100%, 40%);">+Version:        1.2.0.48</span><br><span style="color: hsl(120, 100%, 40%);">+Release:        0</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Osmocom Home Location Register for GSUP protocol towards OsmoSGSN and OsmoCSCN</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://projects.osmocom.org/projects/osmo-hlr</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 >= 0.20</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  python2</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  systemd-rpm-macros</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(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%);">+BuildRequires:  pkgconfig(sqlite3)</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(talloc) >= 2.0.1</span><br><span style="color: hsl(120, 100%, 40%);">+# only needed for populate_hlr_db.pl</span><br><span style="color: hsl(120, 100%, 40%);">+Requires:       libdbi-drivers-dbd-sqlite3</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%);">+The GSUP HLR is a stand-alone HLR (Home Location Register) for SIM</span><br><span style="color: hsl(120, 100%, 40%);">+and USIM based subscribers which exposes the GSUP protocol towards</span><br><span style="color: hsl(120, 100%, 40%);">+its users. OsmoSGSN supports this protocol.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-gsup-hlr is still very simplistic. It is a single-threaded</span><br><span style="color: hsl(120, 100%, 40%);">+architecture and uses only sqlite3 tables as back-end.  It is suitable</span><br><span style="color: hsl(120, 100%, 40%);">+for installations of the scale that OsmoNITB was able to handle.  It</span><br><span style="color: hsl(120, 100%, 40%);">+also lacks various features like fine-grained control of subscribed</span><br><span style="color: hsl(120, 100%, 40%);">+services (like supplementary services).</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n libosmo-gsup-client0</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Osmocom GSUP (General Subscriber Update Protocol) client library</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-2.0-or-later</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          System/Libraries</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n libosmo-gsup-client0</span><br><span style="color: hsl(120, 100%, 40%);">+This is a shared library that can be used to implement client programs for</span><br><span style="color: hsl(120, 100%, 40%);">+the GSUP protocol. The typical GSUP server is OsmoHLR, with OsmoMSC, OsmoSGSN</span><br><span style="color: hsl(120, 100%, 40%);">+and External USSD Entities (EUSEs) using this library to implement clients.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n libosmo-gsup-client-devel</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Development files for the Osmocom GSUP client library</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-2.0-or-later</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Development/Libraries/C and C++</span><br><span style="color: hsl(120, 100%, 40%);">+Requires:       libosmo-gsup-client0 = %{version}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n libosmo-gsup-client-devel</span><br><span style="color: hsl(120, 100%, 40%);">+This is a shared library that can be used to implement client programs for</span><br><span style="color: hsl(120, 100%, 40%);">+the GSUP protocol. The typical GSUP server is OsmoHLR, with OsmoMSC, OsmoSGSN</span><br><span style="color: hsl(120, 100%, 40%);">+and External USSD Entities (EUSEs) using this library to implement clients.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+This subpackage contains libraries and header files for developing</span><br><span style="color: hsl(120, 100%, 40%);">+applications that want to make use of libosmo-gsup-client.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n libosmo-mslookup0</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Osmocom MS lookup library</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-2.0-or-later</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          System/Libraries</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n libosmo-mslookup0</span><br><span style="color: hsl(120, 100%, 40%);">+This shared library contains routines for looking up mobile subscribers.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n libosmo-mslookup-devel</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Development files for the Osmocom MS lookup library</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-2.0-or-later</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Development/Libraries/C and C++</span><br><span style="color: hsl(120, 100%, 40%);">+Requires:       libosmo-mslookup0 = %{version}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n libosmo-mslookup-devel</span><br><span style="color: hsl(120, 100%, 40%);">+This shared library contains routines for looking up mobile subscribers.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+This subpackage contains libraries and header files for developing</span><br><span style="color: hsl(120, 100%, 40%);">+applications that want to make use of libosmo-mslookup.</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%);">+%package -n osmo-mslookup-client</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Standalone program using libosmo-mslookup</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-2.0-or-later</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Development/Libraries/C and C++</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n osmo-mslookup-client</span><br><span style="color: hsl(120, 100%, 40%);">+Standalone program using libosmo-mslookup to easily integrate with programs</span><br><span style="color: hsl(120, 100%, 40%);">+that want to connect services (SIP, SMS,...) to the current location of a</span><br><span style="color: hsl(120, 100%, 40%);">+subscriber.</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%);">+  --docdir="%{_docdir}/%{name}" \</span><br><span style="color: hsl(120, 100%, 40%);">+  --with-systemdsystemunitdir=%{_unitdir} \</span><br><span style="color: hsl(120, 100%, 40%);">+  --enable-shared \</span><br><span style="color: hsl(120, 100%, 40%);">+  --disable-static</span><br><span style="color: hsl(120, 100%, 40%);">+make V=1 %{?_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%);">+install -d "%{buildroot}/%{_localstatedir}/lib/osmocom"</span><br><span style="color: hsl(120, 100%, 40%);">+find %{buildroot} -type f -name "*.la" -delete -print</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%);">+%preun</span><br><span style="color: hsl(120, 100%, 40%);">+%service_del_preun %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%postun</span><br><span style="color: hsl(120, 100%, 40%);">+%service_del_postun %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%pre</span><br><span style="color: hsl(120, 100%, 40%);">+%service_add_pre %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%post</span><br><span style="color: hsl(120, 100%, 40%);">+%service_add_post %{name}.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%post   -n libosmo-gsup-client0 -p /sbin/ldconfig</span><br><span style="color: hsl(120, 100%, 40%);">+%postun -n libosmo-gsup-client0 -p /sbin/ldconfig</span><br><span style="color: hsl(120, 100%, 40%);">+%post   -n libosmo-mslookup0 -p /sbin/ldconfig</span><br><span style="color: hsl(120, 100%, 40%);">+%postun -n libosmo-mslookup0 -p /sbin/ldconfig</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%);">+%license COPYING</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/examples</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-hlr.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/examples/osmo-hlr-dgsm.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_docdir}/%{name}/sql</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/sql/hlr.sql</span><br><span style="color: hsl(120, 100%, 40%);">+%{_docdir}/%{name}/sql//hlr_data.sql</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_sysconfdir}/osmocom</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_localstatedir}/lib/osmocom</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-hlr</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-hlr-db-tool</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-hlr.cfg</span><br><span style="color: hsl(120, 100%, 40%);">+%{_unitdir}/osmo-hlr.service</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n libosmo-gsup-client0</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libosmo-gsup-client.so.0*</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n libosmo-gsup-client-devel</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-euse-demo</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_includedir}/osmocom</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_includedir}/osmocom/gsupclient</span><br><span style="color: hsl(120, 100%, 40%);">+%{_includedir}/osmocom/gsupclient/*.h</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libosmo-gsup-client.so</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/pkgconfig/libosmo-gsup-client.pc</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n libosmo-mslookup0</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libosmo-mslookup.so.0*</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n libosmo-mslookup-devel</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_includedir}/osmocom</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_includedir}/osmocom/mslookup</span><br><span style="color: hsl(120, 100%, 40%);">+%{_includedir}/osmocom/mslookup/*.h</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libosmo-mslookup.so</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/pkgconfig/libosmo-mslookup.pc</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n osmo-mslookup-client</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-mslookup-client</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-hlr/+/18294">change 18294</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-hlr/+/18294"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icb6f4335d5157f058b39701e9fcb332264911ba3 </div>
<div style="display:none"> Gerrit-Change-Number: 18294 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </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>