%global snapdate 20210216 %global commit0 073d1941c428242a563dcb5301ff5c7479fe9c71 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: kicad-nightly-templates Version: 5.99.0 Release: 1.%{snapdate}git%{shortcommit0}%{?dist} Summary: Templates for KiCad License: CC-BY-SA URL: https://kicad-pcb.org/libraries/ Source0: https://gitlab.com/kicad/libraries/kicad-templates/-/archive/%{commit0}/kicad-templates-%{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 templates which are part of the official KiCad libraries. %global debug_package %{nil} %prep %autosetup -n kicad-templates-%{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/template/* %doc README.md %license LICENSE.md %changelog * Sat Feb 13 2021 Aimylios - get sources from GitLab * 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