File soapy-sdr.spec of Package soapy-sdr
#
# spec file for package soapy-sdr
#
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 0_6
Name: soapy-sdr
Version: 0.6.0
Release: 0
Summary: Vendor and platform neutral SDR support library
License: BSL-1.0
Group: System/Libraries
Url: https://github.com/pothosware/SoapySDR.git
Source: https://github.com/pothosware/SoapySDR/archive/%{name}-%{version}.tar.gz
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: swig
BuildRequires: doxygen
Recommends: python-numpy
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A fresh and clean vendor neutral and platform independent SDR support library.
%package -n libSoapySDR%{sover}
Summary: Vendor and platform neutral SDR support library
Group: System/Libraries
%description -n libSoapySDR%{sover}
A fresh and clean vendor neutral and platform independent SDR support library.
%package -n python-SoapySDR
Summary: Python bindings for SoapySDR
Group: Development/Libraries/Other
%description -n python-SoapySDR
Python Bindings for SoapySDR.
A fresh and clean vendor neutral and platform independent SDR support library.
%package devel
Summary: Development files for the SoapySDR library
Group: Development/Libraries/C and C++
Requires: libSoapySDR%{sover} = %{version}
%description devel
This subpackage contains libraries and header files for developing
applications that want to make use of libSoapySDR.
%prep
%setup -q -n SoapySDR-%{name}-%{version}
%build
%cmake
make VERBOSE=1 %{?_smp_mflags}
%install
%cmake_install
%post -n libSoapySDR%{sover} -p /sbin/ldconfig
%postun -n libSoapySDR%{sover} -p /sbin/ldconfig
%files -n libSoapySDR%{sover}
%defattr(-,root,root)
%doc Changelog.txt LICENSE_1_0.txt README.md
%doc docs/
%{_bindir}/SoapySDRUtil
%{_libdir}/libSoapySDR.so.*
%dir %{_datadir}/cmake/SoapySDR
%{_datadir}/cmake/SoapySDR/SoapySDRConfig.cmake
%{_datadir}/cmake/SoapySDR/SoapySDRConfigVersion.cmake
%{_datadir}/cmake/SoapySDR/SoapySDRUtil.cmake
%{_mandir}/man1/SoapySDRUtil.1%{ext_man}
%files -n python-SoapySDR
%defattr(-,root,root)
%{python_sitearch}/SoapySDR.py
%{python_sitearch}/*SoapySDR.so
%files devel
%defattr(-,root,root)
%dir %{_includedir}/SoapySDR
%{_includedir}/SoapySDR/*.h
%{_includedir}/SoapySDR/*.hpp
%{_libdir}/libSoapySDR.so
%{_libdir}/pkgconfig/SoapySDR.pc
%changelog