# Something that need for rpm-4.1 %define _missing_doc_files_terminate_build 0 %undefine _missing_build_ids_terminate_build %define debug_package %{nil} Name: q Version: 0.8.2 Release: 1 License: GNU GPL-3.0 Group: DNS Summary: A tiny CLI DNS client library with support for UDP, TCP, DoT, DoH, and DoQ. URL: https://natesales.net/ Vendor: Nate Sales Packager: Jeam-Philippe Pialasse Source: %{name}-%{version}.tar.gz Source1: vendor.tar.gz Provides: q = 0.8.2-1 BuildRequires: golang BuildArch: x86_64 AutoProv: no AutoReq: no %description A tiny CLI DNS client library with support for UDP, TCP, DoT, DoH, and DoQ. %prep %setup -a 1 # NB to prepare new package first download the q tar.gz # then uncompress # then go inside and do # cd %{name}-%{version}/ # go vendor # tar -czf ../vendor.tar.gz vendor # then make new-source FILES="%{name}-%{version}.tar.gz vendor.tar.gz" %build ls -al go build -x %install mkdir -p %{buildroot}/usr/bin/ install -m 0755 q %{buildroot}/usr/bin/q %files %attr(0755, root, root) "/usr/bin/q" %changelog * Sun Aug 14 2022 Jean-Philippe Pialasse 0.8.2-1.sme - initial import in SME 10 contribs