From 9554bba7c6ceb4376bfaf412fdc556a27bf5a9a1 Mon Sep 17 00:00:00 2001 From: Steven A. Falco Date: Nov 23 2022 16:39:35 +0000 Subject: Build doc package --- diff --git a/hackrf.spec b/hackrf.spec index d39a57b..b678e06 100644 --- a/hackrf.spec +++ b/hackrf.spec @@ -1,6 +1,6 @@ Name: hackrf Version: 2022.09.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: HackRF Utilities License: GPL-2.0 @@ -14,6 +14,10 @@ BuildRequires: gcc-c++ BuildRequires: libusbx-devel BuildRequires: systemd +# Documentation +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme + %description Hardware designs and software for HackRF, a project to produce a low cost, open source software radio platform. @@ -64,12 +68,19 @@ pushd host %cmake_build popd +pushd docs +make html +popd %install pushd host %cmake_install popd +# Documentation doesn't have a "make install", so do it manually. +mkdir -p %{buildroot}%{_docdir}/%{name} +cp -a docs/build/html %{buildroot}%{_docdir}/%{name} + %post %{?ldconfig} @@ -96,10 +107,13 @@ popd %{_libdir}/libhackrf.a %files doc -%doc docs/* +%{_docdir}/%{name}/* %changelog +* Wed Nov 23 2022 Steven A. Falco - 2022.09.1-3 +- Build doc package + * Tue Nov 22 2022 Steven A. Falco - 2022.09.1-2 - Remove F19 (and older) support - Push/pop dirs for cmake