# Generated by go2rpm %bcond_without check # https://github.com/sourcegraph/syntaxhighlight %global goipath github.com/sourcegraph/syntaxhighlight %global commit bd320f5d308e1a3c4314c678d8227a0d72574ae7 %gometa %global common_description %{expand: Syntaxhighlight provides syntax highlighting for code. It currently uses a language-independent lexer and performs decently on JavaScript, Java, Ruby, Python, Go, and C.} %global golicenses LICENSE %global godocs README.md benchmark.txt Name: %{goname} Version: 0 Release: 0.4%{?dist} Summary: Go package for syntax highlighting of code # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/sourcegraph/annotate) %if %{with check} # Tests BuildRequires: golang(github.com/kr/pretty) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md benchmark.txt %{_bindir}/* %gopkgfiles %changelog * Fri May 24 19:29:07 CEST 2019 Robert-André Mauchin - 0-0.4.20180418gitbd320f5 - Update to new macros * Fri Feb 01 2019 Fedora Release Engineering - 0-0.3.gitbd320f5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0-0.2.gitbd320f5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Mar 24 2018 Robert-André Mauchin - 0-0.1.20180418gitbd320f5 - First package for Fedora