## 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/mapcidr %global goipath github.com/projectdiscovery/mapcidr Version: 1.1.94 %global tag 1.1.94 %gometa -L -f %global common_description %{expand: Small utility program to perform multiple operations for a given subnet/CIDR ranges.} Name: golang-github-projectdiscovery-mapcidr Release: %autorelease Summary: Utility for operations on subnet/CIDR ranges # 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 %gobuild -o %{gobuilddir}/bin/mapcidr %{goipath}/cmd/mapcidr %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} # Require connection to api.asnmap.sh for test in "Test_asnClient_GetCIDRsForASNNum" "TestASNClient_GetIPAddressesAsStream" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done export GO111MODULE=on %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/mapcidr %changelog ## START: Generated by rpmautospec * Sun Jul 13 2025 Mikel Olasagasti Uranga - 1.1.94-1 - Update to 1.1.94 and adopt Go Vendor Tools - Closes rhbz#2247447 rhbz#2333252 rhbz#2340458 rhbz#2352242 rhbz#2359396rhbz#2360599 rhbz#2360639 * Fri Jan 17 2025 Fedora Release Engineering - 1.1.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.1.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 1.1.13-4 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 1.1.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 1.1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Oct 23 2023 Mikel Olasagasti Uranga - 1.1.13-1 - Update to 1.1.13 - Closes rhbz#2134029 * Thu Jul 20 2023 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Sep 14 2022 Fabian Affolter - 1.0.2-1 - Update to latest upstream release 1.0.2 (closes rhbz#2078258) * Thu Jul 21 2022 Fedora Release Engineering - 0.0.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0.0.8-4 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 0.0.8-3 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 0.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 23 2021 Robert-André Mauchin - 0.0.8-1 - Update to 0.0.8 Close: rhbz#1963615, rhbz#1987537, rhbz#1923326 * Thu Jul 22 2021 Fedora Release Engineering - 0.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Sep 22 2020 Fabian Affolter - 0.0.4-1 - Initial package ## END: Generated by rpmautospec