## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.8.2 %bcond_without check # https://github.com/alecthomas/chroma %global goipath github.com/alecthomas/chroma/v2 Version: 2.10.0 %gometa -f %global common_description %{expand: A general purpose syntax highlighter in pure Go.} %global golicenses COPYING %global godocs pygments-lexers.txt README.md bin/README.hermit.md\\\ lexers/README.md Name: %{goname} Release: %autorelease Summary: A general purpose syntax highlighter in pure Go License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %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}/ install -m 0755 -vd %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/lexers/embedded install -m 0644 -vp %{gobuilddir}/src/github.com/alecthomas/chroma/v2/lexers/embedded/* %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/lexers/embedded install -m 0755 -vd %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/styles install -m 0644 -vp %{gobuilddir}/src/github.com/alecthomas/chroma/v2/styles/* %{buildroot}%{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/styles %if %{with check} %check %gocheck %endif %files %license COPYING %doc pygments-lexers.txt README.md bin/README.hermit.md lexers/README.md %{_bindir}/chroma %{_bindir}/chromad %gopkgfiles %{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/lexers/embedded/ %{_datarootdir}/gocode/src/github.com/alecthomas/chroma/v2/styles/ %changelog * Tue Nov 07 2023 Pavel Solovev - 2.10.0-1 - Uncommitted changes * Thu Jul 20 2023 Fedora Release Engineering - 2.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 14 2023 W. Michael Petullo - 2.8.0-1 - Update to 2.8.0 * Sun Apr 16 2023 Pavel Solovev - 2.7.0-1 - Update to 2.7.0 * Sat Feb 25 2023 W. Michael Petullo - 2.5.0-2 - Import chroma-2.5.0.tar.gz * Sat Feb 25 2023 W. Michael Petullo - 2.5.0-1 - Update to 2.5.0 * Thu Jan 19 2023 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 W. Michael Petullo - 2.4.0-2 - Add missing chroma-2.4.0.tar.gz * Wed Jan 11 2023 W. Michael Petullo - 2.4.0-1 - Update to 2.4.0 * Wed Oct 26 2022 W. Michael Petullo - 2.3.0-2 - Fix install of embedded files * Wed Oct 26 2022 W. Michael Petullo - 2.3.0-1 - Fix name of specification file