## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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.19.0 using `go2rpm -p vendor --name rdap --version 0.10.1 github.com/openrdap/rdap` %bcond check 1 # https://github.com/openrdap/rdap %global goipath github.com/openrdap/rdap Version: 0.10.1 %gometa -L -f Name: rdap Release: %autorelease Summary: RDAP command line client # Generated by go-vendor-tools License: 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 RDAP command line client. %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on 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}/ # Manually install man page(s) mkdir -p %{buildroot}%{_mandir}/man1 install -m 0644 rdap.1 %{buildroot}%{_mandir}/man1/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/rdap %{_mandir}/man1/rdap.1{,.*} %changelog ## START: Generated by rpmautospec * Tue Aug 18 2026 John Doe - 0.10.1-1 - Uncommitted changes ## END: Generated by rpmautospec