%global snapdate 20201002 %global commit0 7ebfa6b23cc292a56f751b7b5f4a0e12eeef69dd %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: kicad-nightly-footprints Version: 5.99.0 Release: 1.%{snapdate}git%{shortcommit0}%{?dist} Summary: Footprints for KiCad License: CC-BY-SA URL: https://kicad-pcb.org/libraries/ Source0: https://github.com/KiCad/kicad-footprints/archive/%{commit0}/kicad-footprints-%{commit0}.tar.gz BuildArch: noarch BuildRequires: cmake Recommends: kicad-nightly %description KiCad is an open-source software tool for the creation of electronic schematic diagrams and printed circuit board artwork. This package provides the footprints which are part of the official KiCad libraries. %global debug_package %{nil} %prep %autosetup -n kicad-footprints-%{commit0} %build mkdir build pushd build %cmake \ -DKICAD_DATA=%{_datadir}/kicad-nightly \ .. %cmake_build popd %install pushd build %cmake_install popd %files %{_datadir}/kicad-nightly/modules/*.pretty %{_datadir}/kicad-nightly/template/fp-lib-table %doc README.md %license LICENSE.md %changelog * Sat Aug 1 2020 Aimylios - update cmake macros * Sat May 23 2020 Aimylios - allow installation in parallel to stable release - set correct version of package * Fri Mar 16 2018 Aimylios - Initial release for nightly development builds - Loosely based on https://github.com/KiCad/fedora-packaging