69 lines
1.4 KiB
RPMSpec
69 lines
1.4 KiB
RPMSpec
# Generated by go2rpm 1.15.0
|
|
%bcond check 1
|
|
%bcond bootstrap 0
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%if %{with bootstrap}
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
|
%endif
|
|
|
|
# https://git.demus.dk/demus/asnip
|
|
%global goipath github.com/harleo/asnip
|
|
%global forgeurl https://git.demus.dk/demus/asnip
|
|
%global forgename gitea.com
|
|
Version: 0.2.1
|
|
|
|
%gometa -L -f
|
|
|
|
%global common_description %{expand:
|
|
Asnip retrieves all IPs used by an organization for surface mapping. It
|
|
uses the IP or domain name and looks up the Autonomous System Number (ASN),
|
|
retrieves the Classless Inter-Domain Routing (CIDR) subnet masks and
|
|
converts them to IPs.}
|
|
|
|
%global golicenses LICENSE
|
|
%global godocs README.md
|
|
|
|
Name: asnip
|
|
Release: %autorelease
|
|
Summary: ASN detail retriever
|
|
|
|
License: MIT
|
|
URL: %{gourl}
|
|
Source: %{gosource}
|
|
|
|
%description %{common_description}
|
|
|
|
%prep
|
|
%goprep -A
|
|
%autopatch -p1 -q
|
|
|
|
%if %{without bootstrap}
|
|
%build
|
|
%gobuild -o %{gobuilddir}/bin/asnip %{goipath}
|
|
%endif
|
|
|
|
%install
|
|
%if %{without bootstrap}
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%if %{with check}
|
|
%check
|
|
%gocheck
|
|
%endif
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/asnip
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|