Группа :: Engineering
Пакет: hackrf
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: hackrf
Version: 2023.01.1
Release: alt1
Summary: HackRF Utilities
Group: Engineering
License: GPLv2
Url: https://github.com/mossmann/%name
Source: %name-%version.tar
Patch: disable_building_static_libraries.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: libusb-devel
BuildRequires: udev-rules
BuildRequires: pkgconfig(fftw3f)
%description
Hardware designs and software for HackRF, a project to produce a low cost, open
source software radio platform.
%package devel
Summary: Development files for %name
Group: Development/Other
Requires: %name = %version-%release
Requires: libusb-devel
%description devel
Files needed to develop software against libhackrf.
%package doc
Summary: Supplemental documentation for HackRF
Group: Development/Other
BuildArch: noarch
Requires: %name = %version-%release
%description doc
Supplemental documentation for HackRF. For more information, visit the wiki at
https://github.com/mossmann/hackrf/wiki
%prep
%setup
%autopatch -p1
# Fix "plugdev" nonsense
%__subst 's/GROUP=" at HACKRF_GROUP at "/ENV{ID_SOFTWARE_RADIO}="1"/g' host/libhackrf/53-hackrf.rules.in
%__subst 's/GROUP="plugdev"/ENV{ID_SOFTWARE_RADIO}="1"/g' host/libhackrf/53-hackrf.rules
%build
pushd host
%cmake \
-DINSTALL_UDEV_RULES=on \
-DUDEV_RULES_PATH:PATH=%_udevrulesdir \
-DUDEV_RULES_GROUP=plugdev
%cmake_build
popd
%install
pushd host
%cmake_install
popd
%files
%doc COPYING TRADEMARK Readme.md
%_bindir/hackrf_*
%_libdir/libhackrf.so.*
%_udevrulesdir/53-hackrf.rules
%files devel
%_includedir/libhackrf
%_pkgconfigdir/libhackrf.pc
%_libdir/libhackrf.so
#files doc
#_docdir/%name
%changelog
…
Полный changelog можно просмотреть здесь
Version: 2023.01.1
Release: alt1
Summary: HackRF Utilities
Group: Engineering
License: GPLv2
Url: https://github.com/mossmann/%name
Source: %name-%version.tar
Patch: disable_building_static_libraries.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: libusb-devel
BuildRequires: udev-rules
BuildRequires: pkgconfig(fftw3f)
%description
Hardware designs and software for HackRF, a project to produce a low cost, open
source software radio platform.
%package devel
Summary: Development files for %name
Group: Development/Other
Requires: %name = %version-%release
Requires: libusb-devel
%description devel
Files needed to develop software against libhackrf.
%package doc
Summary: Supplemental documentation for HackRF
Group: Development/Other
BuildArch: noarch
Requires: %name = %version-%release
%description doc
Supplemental documentation for HackRF. For more information, visit the wiki at
https://github.com/mossmann/hackrf/wiki
%prep
%setup
%autopatch -p1
# Fix "plugdev" nonsense
%__subst 's/GROUP=" at HACKRF_GROUP at "/ENV{ID_SOFTWARE_RADIO}="1"/g' host/libhackrf/53-hackrf.rules.in
%__subst 's/GROUP="plugdev"/ENV{ID_SOFTWARE_RADIO}="1"/g' host/libhackrf/53-hackrf.rules
%build
pushd host
%cmake \
-DINSTALL_UDEV_RULES=on \
-DUDEV_RULES_PATH:PATH=%_udevrulesdir \
-DUDEV_RULES_GROUP=plugdev
%cmake_build
popd
%install
pushd host
%cmake_install
popd
%files
%doc COPYING TRADEMARK Readme.md
%_bindir/hackrf_*
%_libdir/libhackrf.so.*
%_udevrulesdir/53-hackrf.rules
%files devel
%_includedir/libhackrf
%_pkgconfigdir/libhackrf.pc
%_libdir/libhackrf.so
#files doc
#_docdir/%name
%changelog
…
Полный changelog можно просмотреть здесь