Пакет gr-osmosdr: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | Name: gr-osmosdr Url: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR Version: 0.2.3 Release: alt1.20210129 License: GPL-3.0-or-later Group: Engineering Summary: Common software API for various radio hardware Packager: Anton Midyukov <antohami@altlinux.org> 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: doxygen BuildRequires: graphviz 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 %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 Requires: %name = %version-%release 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 mkdir build pushd build %cmake_insource -DENABLE_DOXYGEN=on -DGR_PKG_DOC_DIR=%_docdir/%name .. %make_build popd %install pushd build %makeinstall_std popd # 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 COPYING %exclude %_docdir/%name/html %exclude %_docdir/%name/xml %_bindir/* %_libdir/*.so.* %python3_sitelibdir/* %_datadir/gnuradio/grc/blocks/* %files devel %_includedir/osmosdr %_libdir/*.so %_libdir/cmake/osmosdr/* %_pkgconfigdir/*.pc %files doc %doc %_docdir/%name/html %doc %_docdir/%name/xml %changelog * Sat May 08 2021 Anton Midyukov <antohami@altlinux.org> 0.2.3-alt1.20210129 - new snapshot * Wed Jun 10 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 0.2.0-alt2 - Rebuilt with boost-1.73.0. * Mon Mar 23 2020 Anton Midyukov <antohami@altlinux.org> 0.2.0-alt1 - new version 0.2.0 - generate .pc in spec as dropped upstream * Sun Nov 24 2019 Anton Midyukov <antohami@altlinux.org> 0.1.4-alt5.20190514 - New snapshot - Fix build with gnuradio 3.8 * Thu Feb 07 2019 Anton Midyukov <antohami@altlinux.org> 0.1.4-alt4.20180627 - New snapshot * Thu May 31 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.1.4-alt3.20170612.S1.1 - NMU: rebuilt with boost-1.67.0 * Sun Apr 22 2018 Anton Midyukov <antohami@altlinux.org> 0.1.4-alt3.20170612.S1 - rebuilt with libvolk 1.4 * Fri Mar 30 2018 Anton Midyukov <antohami@altlinux.org> 0.1.4-alt2.20170612.1 - fix buildrequires * Sun Oct 22 2017 Anton Midyukov <antohami@altlinux.org> 0.1.4-alt1.20170612.1 - Initial build for ALT Sisyphus. |