## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## 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.16.0 %bcond check 1 %global gomodulesmode GO111MODULE=on # https://github.com/projectdiscovery/asnmap %global goipath github.com/projectdiscovery/asnmap Version: 1.1.1 %gometa -L -f %global common_description %{expand: Go CLI and Library for quickly mapping organization network ranges using ASN information.} Name: asnmap Release: %autorelease Summary: Go CLI and Library for quickly mapping organization network ranges using ASN information # Generated by go-vendor-tools License: 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ICU AND ISC AND MIT AND MPL-2.0 AND Unlicense URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml 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 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} for test in "TestGetASNFromIP" "TestGetIPFromASN" "TestGetASNFromOrg" "TestResolveDomain" "TestRunner" "TestProcessForDomainInput" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc examples README.md %{_bindir}/asnmap %changelog ## START: Generated by rpmautospec * Mon Jul 14 2025 Mikel Olasagasti Uranga - 1.1.1-1 - Update to 1.1.1 and adopt Go Vendor Tools - Closes rhbz#2360621 rhbz#2360582 rhbz#2359392 rhbz#2352135 rhbz#2339903 rhbz#2333242 rhbz#2267159 * Thu Jan 16 2025 Fedora Release Engineering - 1.0.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 1.0.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 1.0.6-4 - Rebuild for golang 1.22.0 * Mon Jan 22 2024 Fedora Release Engineering - 1.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Nov 15 2023 Mikel Olasagasti Uranga - 1.0.6-1 - Update to 1.0.6 - Closes rhbz#2249177 * Mon Oct 23 2023 Mikel Olasagasti Uranga - 1.0.5-1 - Initial package - Closes rhbz#2170399 ## END: Generated by rpmautospec