--- rpms/SoapySDR/contribs9/SoapySDR.spec 2019/08/29 02:51:19 1.1 +++ rpms/SoapySDR/contribs9/SoapySDR.spec 2019/09/01 19:23:40 1.2 @@ -11,8 +11,8 @@ URL: https://github.com/potho Source0: https://github.com/pothosware/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: cmake gcc-c++ swig doxygen -BuildRequires: python2-devel python2-numpy -BuildRequires: python3-devel python3-numpy +BuildRequires: python2-devel python2-numpy +#BuildRequires: python3-devel python3-numpy %description SoapySDR is an open-source generalized C/C++ API and runtime library @@ -20,19 +20,20 @@ for interfacing with Software-Defined Ra %package -n python2-%{name} Summary: Python2 Bindings for SoapySDR -%{?python_provide:%python_provide python2-%{name}} + +# %#{?python_provide:%python_provide python2-%{name}} %description -n python2-%{name} 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 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 @@ -56,8 +57,11 @@ library header file documentation. %autosetup -n %{name}-%{commit} %build -export Python_ADDITIONAL_VERSIONS="%{python2_version} %{python3_version}" -%cmake . -DUSE_PYTHON_CONFIG=ON -DPYTHON_EXECUTABLE=%{__python2} -DPYTHON3_EXECUTABLE=%{__python3} +export Python_ADDITIONAL_VERSIONS="%{python2_version}" +# %{python3_version}" +%cmake . +#-DUSE_PYTHON_CONFIG=ON -DPYTHON_EXECUTABLE=%{__python2} -DBUILD_PYTHON3=FALSE +#-DPYTHON3_EXECUTABLE=%{__python3} %make_build @@ -85,12 +89,12 @@ ctest -V %{?_smp_mflags} %{python2_sitearch}/SoapySDR.py* %{python2_sitearch}/_SoapySDR.so -%files -n python3-%{name} -%license LICENSE_1_0.txt -%{python3_sitearch}/SoapySDR.py -%{python3_sitearch}/_SoapySDR.so -%{python3_sitearch}/__pycache__/SoapySDR.cpython-*.opt-1.pyc -%{python3_sitearch}/__pycache__/SoapySDR.cpython-*.pyc +#%files -n python3-%{name} +#%license LICENSE_1_0.txt +#%{python3_sitearch}/SoapySDR.py +#%{python3_sitearch}/_SoapySDR.so +#%{python3_sitearch}/__pycache__/SoapySDR.cpython-*.opt-1.pyc +#%{python3_sitearch}/__pycache__/SoapySDR.cpython-*.pyc %files -n %{name}-devel