diff --git a/SoapySDR.spec b/SoapySDR.spec new file mode 100644 index 0000000000000000000000000000000000000000..07d8647e486bcf1ddf885774f98e7d50e7713043 --- /dev/null +++ b/SoapySDR.spec @@ -0,0 +1,101 @@ +# Modified from https://src.fedoraproject.org/rpms/SoapySDR/blob/rawhide/f/SoapySDR.spec + +Name: SoapySDR +Version: 0.8.1 +Release: 1 +Summary: A Vendor Neutral and Platform Independent SDR Support Library + +# Automatically converted from old format: Boost - review is highly recommended. +License: BSL-1.0 +URL: https://github.com/pothosware/%{name} +Source0: https://github.com/pothosware/%{name}/archive/refs/tags/soapy-sdr-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: swig +BuildRequires: doxygen +BuildRequires: python3-devel +BuildRequires: python3-numpy +BuildRequires: (python3-setuptools if python3-devel >= 3.12) + +%description +SoapySDR is an open-source generalized C/C++ API and runtime library +for interfacing with Software-Defined Radio (SDR) devices. + +%package -n python3-%{name} +Summary: Python3 Bindings for SoapySDR +%{?python_provide:%python_provide python3-%{name}} + +%description -n python3-%{name} +SoapySDR is an open-source generalized C/C++ API and runtime library +for interfacing with Software-Defined Radio (SDR) devices. + +%package -n %{name}-devel +Summary: Development Files for SoapySDR +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description -n %{name}-devel +SoapySDR is an open-source generalized C/C++ API and runtime library +for interfacing with Software-Defined Radio (SDR) devices. + +%package -n %{name}-doc +Summary: Development Files for SoapySDR +BuildArch: noarch + +%description -n %{name}-doc +SoapySDR is an open-source generalized C/C++ API and runtime library +for interfacing with Software-Defined Radio (SDR) devices. This package includes +library header file documentation. + + +%prep +%autosetup -n %{name}-soapy-sdr-%{version} + +%build +export Python_ADDITIONAL_VERSIONS="%{python3_version}" +cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_PYTHON_CONFIG=ON -DPYTHON3_EXECUTABLE=%{__python3} -DSOAPY_SDR_EXTVER=%{release} +cmake --build . + +%install +DESTDIR=%{buildroot} cmake --install . +mkdir -p %{buildroot}%{_libdir}/%{name}/modules0.8 +# install docs +mkdir -p %{buildroot}%{_pkgdocdir} +cp -a ./docs/html/* %{buildroot}%{_pkgdocdir} + +%check +ctest -V %{?_smp_mflags} + +%ldconfig_scriptlets +%files +%license LICENSE_1_0.txt +%{_bindir}/SoapySDRUtil +%{_libdir}/libSoapySDR.so.0.8.1 +%{_libdir}/libSoapySDR.so.0.8 +%{_mandir}/man1/* +%doc README.md +# for hardware support modules +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/modules0.8 + +%files -n python3-%{name} +%license LICENSE_1_0.txt +%{python3_sitearch}/SoapySDR.py +%{python3_sitearch}/_SoapySDR.so +%{python3_sitearch}/__pycache__/SoapySDR.cpython-*.pyc + + +%files -n %{name}-devel +%{_includedir}/%{name} +%{_libdir}/libSoapySDR.so +%{_libdir}/pkgconfig/* +%dir %{_datadir}/cmake/%{name} +%{_datadir}/cmake/%{name}/* + +%files -n %{name}-doc +%license LICENSE_1_0.txt +%{_pkgdocdir}/* + +%changelog +* Fri Nov 22 2024 Suyun - 0.8.1-1 +- Init package at 0.8.1 diff --git a/SoapySDR.src.rpm b/SoapySDR.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..88715a23f538fb39b9ef6c622d525eaa96f2c059 Binary files /dev/null and b/SoapySDR.src.rpm differ diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..2c0f1e3ea8a7ed58340e615b90b8dce2a152cac0 --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +SoapySDR.spec +soapy-sdr-0.8.1.tar.gz diff --git a/soapy-sdr-0.8.1.tar.gz b/soapy-sdr-0.8.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bfb9ff16db0c2c6e86fd626b23c48209c9a122d1 Binary files /dev/null and b/soapy-sdr-0.8.1.tar.gz differ