# Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/danielmiessler/Fabric %global goipath github.com/danielmiessler/fabric %global forgeurl https://github.com/danielmiessler/Fabric Version: 1.4.389 %gometa -L -f Name: fabric Release: %autorelease Summary: Fabric is an open-source framework for augmenting humans using AI. It provides a modular system for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description Fabric is an open-source framework for augmenting humans using AI. It provides a modular system for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/fabric %{goipath}/cmd/fabric %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # refresh shell completion syntax and install echo "+++ INSTALLING shell completion" # bash install -d -m 0755 %{buildroot}%{bash_completions_dir} install -D -m 0644 -t %{buildroot}%{bash_completions_dir} ./completions/fabric.bash # fish install -d -m 0755 %{buildroot}%{fish_completions_dir} install -D -m 0644 -t %{buildroot}%{fish_completions_dir} ./completions/fabric.fish # zsh install -d -m 0755 %{buildroot}%{zsh_completions_dir} install -D -m 0644 -t %{buildroot}%{zsh_completions_dir} ./completions/_fabric %check %go_vendor_license_check -c %{S:2} %if %{with check} %global test_ignores %{shrink: %dnl skip tests that fail with create tmp file: open - invalid argument -s "TestSysPlugin" } %gocheck2 %{test_ignores} %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc docs CHANGELOG.md README.md %{_bindir}/fabric %{bash_completions_dir}/fabric.bash %{fish_completions_dir}/fabric.fish %{zsh_completions_dir}/_fabric %changelog %autochangelog