%global snapdate 20240426 %global commit0 243c2931836cc3272051da430241631e30c1af06 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: kicad-nightly-doc Version: 8.99.0 Release: 1.%{snapdate}git%{shortcommit0}%{?dist} Summary: Documentation for KiCad License: GPLv3+ or CC-BY URL: https://docs.kicad.org/ Source0: https://gitlab.com/kicad/services/kicad-doc/-/archive/%{commit0}/kicad-doc-%{commit0}.tar.bz2 BuildArch: noarch BuildRequires: cmake BuildRequires: make BuildRequires: po4a BuildRequires: rubygem-asciidoctor Recommends: kicad-nightly %description KiCad is an open-source electronic design automation software suite for the creation of electronic schematic diagrams and printed circuit board artwork. This package provides the documentation for the nightly development build of KiCad in multiple languages. %prep %autosetup -n kicad-doc-%{commit0} %build # HTML only %cmake \ -DKICAD_DOC_PATH=%{_docdir}/kicad-nightly/help \ -DBUILD_FORMATS=html %cmake_build %install %cmake_install %files %{_docdir}/kicad-nightly/help/ %license LICENSE* %changelog * Thu Jun 3 2021 Aimylios - switch from asciidoc to rubygem-asciidoctor * Wed Apr 7 2021 Aimylios - include actual license texts (available since 4ab0fd4) - fix usage of %%cmake macro - add make as explicit build-time dependency * Sat Feb 27 2021 Aimylios - add CC-BY to License tag - rely on %%cmake macro for out-of-tree build * Thu Feb 25 2021 Aimylios - move documentation to its own SPEC file