<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libusrp/+/18281">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: I45edbd4ae5bca1194c17452e8fd3538742ca1ef0<br>---<br>A contrib/libusrp.spec<br>1 file changed, 128 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/libusrp.spec b/contrib/libusrp.spec</span><br><span>new file mode 100644</span><br><span>index 0000000..2ba813a</span><br><span>--- /dev/null</span><br><span>+++ b/contrib/libusrp.spec</span><br><span>@@ -0,0 +1,128 @@</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# spec file for package libusrp</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.</span><br><span style="color: hsl(120, 100%, 40%);">+# Copyright (c) 2018, 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 https://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%);">+%define sover   -3_4_4+git_20190808-0</span><br><span style="color: hsl(120, 100%, 40%);">+%define libname libusrp%{sover}</span><br><span style="color: hsl(120, 100%, 40%);">+Name:           libusrp</span><br><span style="color: hsl(120, 100%, 40%);">+Version:        3.4.4+git.20190808</span><br><span style="color: hsl(120, 100%, 40%);">+Release:        0</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Stand-alone libusrp for USRP1 from old gnuradio.git</span><br><span style="color: hsl(120, 100%, 40%);">+License:        GPL-3.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%);">+URL:            https://git.osmocom.org/libusrp</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:  fdupes</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  gcc-c++</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:  sdcc</span><br><span style="color: hsl(120, 100%, 40%);">+%if 0%{?suse_version} < 1320</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  python</span><br><span style="color: hsl(120, 100%, 40%);">+%else</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  python2</span><br><span style="color: hsl(120, 100%, 40%);">+%endif</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  pkgconfig(libusb-1.0)</span><br><span style="color: hsl(120, 100%, 40%);">+%if 0%{?suse_version} > 1325</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  libboost_date_time-devel</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  libboost_filesystem-devel</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  libboost_program_options-devel</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  libboost_system-devel</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  libboost_thread-devel</span><br><span style="color: hsl(120, 100%, 40%);">+%else</span><br><span style="color: hsl(120, 100%, 40%);">+BuildRequires:  boost-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%);">+Stand-alone libusrp for USRP1 from old gnuradio.git.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n %{libname}</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Stand-alone libusrp for USRP1 from old gnuradio.git</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 %{libname}</span><br><span style="color: hsl(120, 100%, 40%);">+Stand-alone libusrp for USRP1 from old gnuradio.git.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package devel</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Development files for libusrp</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:       %{libname} = %{version}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description devel</span><br><span style="color: hsl(120, 100%, 40%);">+Stand-alone libusrp for USRP1 from old gnuradio.git.</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 libusrp.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n usrp-tools</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Tools for the URSP1 SDR</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Hardware/Other</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n usrp-tools</span><br><span style="color: hsl(120, 100%, 40%);">+Tools for the URSP1 SDR.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%package -n usrp-firmware</span><br><span style="color: hsl(120, 100%, 40%);">+Summary:        Firmware files for the URSP1 SDR</span><br><span style="color: hsl(120, 100%, 40%);">+Group:          Hardware/Other</span><br><span style="color: hsl(120, 100%, 40%);">+Requires:       usrp-tools = %{version}</span><br><span style="color: hsl(120, 100%, 40%);">+BuildArch:      noarch</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%description -n usrp-firmware</span><br><span style="color: hsl(120, 100%, 40%);">+Firmware files for the USRP1 SDR.</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 -fiv</span><br><span style="color: hsl(120, 100%, 40%);">+%configure</span><br><span style="color: hsl(120, 100%, 40%);">+# parallel build is br0ken</span><br><span style="color: hsl(120, 100%, 40%);">+# -> https://osmocom.org/issues/3970#change-15556</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%);">+rm -f %{buildroot}%{_libdir}/libusrp.la</span><br><span style="color: hsl(120, 100%, 40%);">+# FIXME: gnuradio swig stuff shouldn't be there</span><br><span style="color: hsl(120, 100%, 40%);">+rm -rf %{buildroot}%{_includedir}/gnuradio/</span><br><span style="color: hsl(120, 100%, 40%);">+%fdupes %{buildroot}%{_datadir}/usrp</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%post   -n %{libname} -p /sbin/ldconfig</span><br><span style="color: hsl(120, 100%, 40%);">+%postun -n %{libname} -p /sbin/ldconfig</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n usrp-tools</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/usrp_cal_dc_offset</span><br><span style="color: hsl(120, 100%, 40%);">+%{_bindir}/usrper</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n %{libname}</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libusrp*.so.*</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files -n usrp-firmware</span><br><span style="color: hsl(120, 100%, 40%);">+%dir %{_datadir}/usrp</span><br><span style="color: hsl(120, 100%, 40%);">+%{_datadir}/usrp/rev2</span><br><span style="color: hsl(120, 100%, 40%);">+%{_datadir}/usrp/rev4</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+%files devel</span><br><span style="color: hsl(120, 100%, 40%);">+%{_includedir}/usrp</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/libusrp.so</span><br><span style="color: hsl(120, 100%, 40%);">+%{_libdir}/pkgconfig/usrp.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/libusrp/+/18281">change 18281</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/libusrp/+/18281"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libusrp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I45edbd4ae5bca1194c17452e8fd3538742ca1ef0 </div>
<div style="display:none"> Gerrit-Change-Number: 18281 </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>