Group :: Engineering
RPM: gr-osmosdr
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
#%%def_with doc
Name: gr-osmosdr
Url: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
Version: 0.2.4
Release: alt2
License: GPL-3.0-or-later
Group: Engineering
Summary: Common software API for various radio hardware
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-cmake rpm-build-python3
BuildRequires: cmake gcc-c++
BuildRequires: gnuradio-devel
BuildRequires: boost-program_options-devel
BuildRequires: pybind11-devel
BuildRequires: rtl-sdr-devel
BuildRequires: uhd-devel
BuildRequires: hackrf-devel
BuildRequires: libbladerf-devel
BuildRequires: liborc-devel
BuildRequires: python3-devel
BuildRequires: python3-module-mako
BuildRequires: liblog4cpp-devel
BuildRequires: mpir-devel
BuildRequires: libgmp-devel
BuildRequires: libfftw3-devel
BuildRequires: libsndfile-devel
BuildRequires: libnumpy-py3-devel
BuildRequires: libunwind-devel
%if_with doc
BuildRequires: doxygen
BuildRequires: graphviz
%endif
# uhd not available for %ix86 %arm
ExcludeArch: %ix86 %arm
%description
Primarily gr-osmosdr supports the OsmoSDR hardware, but it also
offers a wrapper functionality for FunCube Dongle, Ettus UHD
and rtl-sdr radios. By using gr-osmosdr source you can take
advantage of a common software api in your application(s)
independent of the underlying radio hardware.
%package devel
Summary: Development files for gr-osmosdr
Group: Engineering
Requires: %name = %version-%release
%description devel
Development files for gr-osmosdr.
%package doc
Summary: Documentation files for gr-osmosdr
Group: Engineering
BuildArch: noarch
%description doc
Documentation files for gr-osmosdr.
%prep
%setup
# TODO fix the lib location nicer way
%__subst 's|/lib/|/%_lib/|g' CMakeLists.txt
%build
%cmake \
%if_with doc
-DENABLE_DOXYGEN=on \
-DGR_PKG_DOC_DIR=%_docdir/%name ..
%endif
%cmake_build
%install
%cmake_install
# Create pkgconfig .pc file
mkdir -p %buildroot%_pkgconfigdir
cat <<EOF > %buildroot%_pkgconfigdir/gnuradio-osmosdr.pc
prefix=%_prefix
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%_lib
includedir=\${prefix}/include
Name: gnuradio-osmosdr
Description: GNU Radio block for various radio hardware
Url: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
Version: %version
Requires: gnuradio-runtime gnuradio-blocks
Requires.private:
Conflicts:
Cflags: -I\${includedir} -I%_includedir
Libs: -L\${libdir} -lgnuradio-osmosdr
Libs.private: -L\${libdir}
EOF
%files
%doc AUTHORS
%_bindir/*
%_libdir/*.so.*
%python3_sitelibdir/*
%_datadir/gnuradio/grc/blocks/*
%if_with doc
%exclude %_docdir/%name/html
%exclude %_docdir/%name/xml
%endif
%files devel
%_includedir/osmosdr
%_libdir/*.so
%_libdir/cmake/osmosdr/*
%_pkgconfigdir/*.pc
%if_with doc
%files doc
%doc %_docdir/%name/html
%doc %_docdir/%name/xml
%endif
%changelog
…
Todas as alterações você pod ver aqui
Name: gr-osmosdr
Url: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
Version: 0.2.4
Release: alt2
License: GPL-3.0-or-later
Group: Engineering
Summary: Common software API for various radio hardware
Source: %name-%version.tar
BuildRequires(pre): rpm-macros-cmake rpm-build-python3
BuildRequires: cmake gcc-c++
BuildRequires: gnuradio-devel
BuildRequires: boost-program_options-devel
BuildRequires: pybind11-devel
BuildRequires: rtl-sdr-devel
BuildRequires: uhd-devel
BuildRequires: hackrf-devel
BuildRequires: libbladerf-devel
BuildRequires: liborc-devel
BuildRequires: python3-devel
BuildRequires: python3-module-mako
BuildRequires: liblog4cpp-devel
BuildRequires: mpir-devel
BuildRequires: libgmp-devel
BuildRequires: libfftw3-devel
BuildRequires: libsndfile-devel
BuildRequires: libnumpy-py3-devel
BuildRequires: libunwind-devel
%if_with doc
BuildRequires: doxygen
BuildRequires: graphviz
%endif
# uhd not available for %ix86 %arm
ExcludeArch: %ix86 %arm
%description
Primarily gr-osmosdr supports the OsmoSDR hardware, but it also
offers a wrapper functionality for FunCube Dongle, Ettus UHD
and rtl-sdr radios. By using gr-osmosdr source you can take
advantage of a common software api in your application(s)
independent of the underlying radio hardware.
%package devel
Summary: Development files for gr-osmosdr
Group: Engineering
Requires: %name = %version-%release
%description devel
Development files for gr-osmosdr.
%package doc
Summary: Documentation files for gr-osmosdr
Group: Engineering
BuildArch: noarch
%description doc
Documentation files for gr-osmosdr.
%prep
%setup
# TODO fix the lib location nicer way
%__subst 's|/lib/|/%_lib/|g' CMakeLists.txt
%build
%cmake \
%if_with doc
-DENABLE_DOXYGEN=on \
-DGR_PKG_DOC_DIR=%_docdir/%name ..
%endif
%cmake_build
%install
%cmake_install
# Create pkgconfig .pc file
mkdir -p %buildroot%_pkgconfigdir
cat <<EOF > %buildroot%_pkgconfigdir/gnuradio-osmosdr.pc
prefix=%_prefix
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%_lib
includedir=\${prefix}/include
Name: gnuradio-osmosdr
Description: GNU Radio block for various radio hardware
Url: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR
Version: %version
Requires: gnuradio-runtime gnuradio-blocks
Requires.private:
Conflicts:
Cflags: -I\${includedir} -I%_includedir
Libs: -L\${libdir} -lgnuradio-osmosdr
Libs.private: -L\${libdir}
EOF
%files
%doc AUTHORS
%_bindir/*
%_libdir/*.so.*
%python3_sitelibdir/*
%_datadir/gnuradio/grc/blocks/*
%if_with doc
%exclude %_docdir/%name/html
%exclude %_docdir/%name/xml
%endif
%files devel
%_includedir/osmosdr
%_libdir/*.so
%_libdir/cmake/osmosdr/*
%_pkgconfigdir/*.pc
%if_with doc
%files doc
%doc %_docdir/%name/html
%doc %_docdir/%name/xml
%endif
%changelog
…
Todas as alterações você pod ver aqui