# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/AvengeMedia/danksearch %global goipath github.com/AvengeMedia/danksearch Version: 0.1.2 %gometa -L -f Name: danksearch Release: 2%{?dist} Summary: Indexed filesystem search in GO # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause 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 Indexed filesystem search in GO. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export danksearch_buildtime=$(date -d "@${SOURCE_DATE_EPOCH}" +%%Y-%%m-%%d_%%H:%%M:%%S) export GO_LDFLAGS="-X main.commit=fedora \ -X main.Version='%{version}-%{release}' \ -X main.buildTime=${danksearch_buildtime}" for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %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} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/dsearch %changelog * Wed Jul 15 2026 Fedora Release Engineering - 0.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Fri Feb 13 2026 Neal Gompa - 0.1.2-1 - Initial package