# Generated by go2rpm 1.14.0 %bcond check 1 # https://github.com/charmbracelet/vhs %global goipath github.com/charmbracelet/vhs %global iname golang-github-charmbracelet-vhs Version: 0.8.0 %gometa -L -f %global common_description %{expand: Your CLI home video recorder 📼.} Name: vhs Release: %autorelease Summary: Your CLI home video recorder 📼 # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Patch1: vhs-source-include-inheritance.patch Requires: ffmpeg-free ttyd BuildRequires: go-vendor-tools %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %gobuild -o %{gobuilddir}/bin/vhs %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gocheck %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc examples README.md THEMES.md %{_bindir}/vhs %changelog %autochangelog