<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/gapk/+/18285">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: Idbf365be21d5629bf4bef2c95d527a80c49e9f97<br>---<br>A contrib/gapk.spec<br>1 file changed, 154 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/gapk.spec b/contrib/gapk.spec</span><br><span>new file mode 100644</span><br><span>index 0000000..3f076cc</span><br><span>--- /dev/null</span><br><span>+++ b/contrib/gapk.spec</span><br><span>@@ -0,0 +1,154 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# spec file for package gapk</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%);">+%define with_amr 1</span><br><span style="color: hsl(120, 100%, 40%);">+%define with_gsmhr 1</span><br><span style="color: hsl(120, 100%, 40%);">+%define sover 0</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Name:           gapk</span><br><span style="color: hsl(120, 100%, 40%);">+Version:        0.4.79</span><br><span style="color: hsl(120, 100%, 40%);">+Release:        0</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        GSM Audio Pocket Knife</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-3.0-only</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Productivity/Multimedia/Sound/Editors and Convertors</span><br><span style="color: hsl(120, 100%, 40%);">+URL:            http://www.osmocom.org</span><br><span style="color: hsl(120, 100%, 40%);">+Source:         gapk-%{version}.tar.xz</span><br><span style="color: hsl(120, 100%, 40%);">+# License: for libgsmhr see 3gpp website</span><br><span style="color: hsl(120, 100%, 40%);">+Source1:        0606_421.zip</span><br><span style="color: hsl(120, 100%, 40%);">+Patch1:         gapk-disable-codec-dl-during-build.diff</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:  libgsm-devel</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:  python</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(alsa)</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmocodec)</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libosmocore)</span><br><span style="color: hsl(120, 100%, 40%);">+# Benchmarking is currently only supported on intel platforms...</span><br><span style="color: hsl(120, 100%, 40%);">+ExclusiveArch:  %{ix86} x86_64</span><br><span style="color: hsl(120, 100%, 40%);">+%if 0%{with_amr}</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  libopencore-amr-devel</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%);">+gapk is intented to be the GSM Audio Pocket Knife.</span><br><span style="color: hsl(120, 100%, 40%);">+It encodes/decodes several GSM-related audio-codes (HR,FR,EFR)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%if 0%{with_gsmhr}</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n libgsmhr0</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Shared Library part of libgsmhr</span><br><span style="color: hsl(120, 100%, 40%);">+License:        NonFree</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 libgsmhr0</span><br><span style="color: hsl(120, 100%, 40%);">+libgsmhr contains a standard implementation of the European GSM 06.20</span><br><span style="color: hsl(120, 100%, 40%);">+provisional standard for GSM Half Rate speech speech transcoding.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n libgsmhr-devel</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Development files for the gsmhr library</span><br><span style="color: hsl(120, 100%, 40%);">+License:        NonFree</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:       libgsmhr0 = %{version}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n libgsmhr-devel</span><br><span style="color: hsl(120, 100%, 40%);">+libgsmhr contains a standard implementation of the European GSM 06.20</span><br><span style="color: hsl(120, 100%, 40%);">+provisional standard for GSM Half Rate speech speech transcoding.</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 libgsmhr.</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%);">+%package -n libosmogapk%{sover}</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Shared library part of GSM Audio Pocket Knife (GAPK)</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-3.0-only</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 libosmogapk%{sover}</span><br><span style="color: hsl(120, 100%, 40%);">+Shared library part of GSM Audio Pocket Knife (GAPK).</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n libosmogapk-devel</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Development files for the GAPK library</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-3.0-only</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:       libosmogapk%{sover} = %{version}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n libosmogapk-devel</span><br><span style="color: hsl(120, 100%, 40%);">+Shared library part of GSM Audio Pocket Knife (GAPK).</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+This subpackage contains the development files for the Osmocom GAPK</span><br><span style="color: hsl(120, 100%, 40%);">+library.</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%);">+%if 0%{with_gsmhr}</span><br><span style="color: hsl(120, 100%, 40%);">+%patch1 -p1</span><br><span style="color: hsl(120, 100%, 40%);">+cp %{SOURCE1} libgsmhr/</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%);">+%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 0%{with_gsmhr}</span><br><span style="color: hsl(120, 100%, 40%);">+    --enable-gsmhr \</span><br><span style="color: hsl(120, 100%, 40%);">+%endif</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%);">+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%);">+%if 0%{with_gsmhr}</span><br><span style="color: hsl(120, 100%, 40%);">+## GSM HR tests (6,9,13,14) are known to be broken - https://osmocom.org/issues/2514</span><br><span style="color: hsl(120, 100%, 40%);">+make %{?_smp_mflags} check || :</span><br><span style="color: hsl(120, 100%, 40%);">+%else</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%);">+%endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%if 0%{with_gsmhr}</span><br><span style="color: hsl(120, 100%, 40%);">+%post   -n libgsmhr0 -p /sbin/ldconfig</span><br><span style="color: hsl(120, 100%, 40%);">+%postun -n libgsmhr0 -p /sbin/ldconfig</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%);">+%post   -n libosmogapk%{sover} -p /sbin/ldconfig</span><br><span style="color: hsl(120, 100%, 40%);">+%postun -n libosmogapk%{sover} -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%);">+%doc gpl-3.0.txt</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/osmo-gapk</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%if 0%{with_gsmhr}</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n libgsmhr0</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libgsmhr.so.0*</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n libgsmhr-devel</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libgsmhr.so</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%);">+%files -n libosmogapk%{sover}</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libosmogapk.so.%{sover}*</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n libosmogapk-devel</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_includedir}/osmocom/</span><br><span style="color: hsl(120, 100%, 40%);">+%{_includedir}/osmocom/%{name}/</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libosmogapk.so</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/pkgconfig/libosmogapk.pc</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/gapk/+/18285">change 18285</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/gapk/+/18285"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: gapk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Idbf365be21d5629bf4bef2c95d527a80c49e9f97 </div>
<div style="display:none"> Gerrit-Change-Number: 18285 </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>