gr-osmosdr/gr-osmosdr.spec

93 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: gr-osmosdr
Version: 0.2.3
Release: 1mamba
Summary: GNU Radio block for interfacing with various radio hardware
Group: Applications/Communication
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://gitea.osmocom.org/sdr/gr-osmosdr
Source: https://gitea.osmocom.org/sdr/gr-osmosdr.git/v%{version}/gr-osmosdr-%{version}.tar.bz2
Patch0: gr-osmosdr-0.2.3-libboost-1.79.0.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libboost-devel
BuildRequires: libgcc
BuildRequires: libgmp-cxx-devel
BuildRequires: libgmp-devel
BuildRequires: libgnuradio-devel
BuildRequires: librtlsdr-devel
BuildRequires: libsndfile-devel
BuildRequires: libspdlog-devel
BuildRequires: libstdc++6-devel
BuildRequires: libvolk-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
GNU Radio block for interfacing with various radio hardware.
%package -n lib%{name}
Group: System/Libraries
Summary: GNU Radio block for interfacing with various radio hardware
%description -n lib%{name}
GNU Radio block for interfacing with various radio hardware.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch0 -p1 -b .libboost-1.79.0
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libgnuradio-osmosdr.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/osmosdr
%{_includedir}/osmosdr/*h
%{_libdir}/libgnuradio-osmosdr.so
%dir %{_libdir}/cmake/osmosdr
%{_libdir}/cmake/osmosdr/gnuradio-osmosdr*.cmake
%dir %{_docdir}/gr-osmosdr
%dir %{_docdir}/gr-osmosdr/html
%{_docdir}/gr-osmosdr/html/*
%dir %{_docdir}/gr-osmosdr/xml
%{_docdir}/gr-osmosdr/xml/*
%doc README
%changelog
* Fri May 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.3-1mamba
- package created using the webbuild interface