Blob Blame History Raw
# Run tests in check section
%bcond_without check

# https://github.com/krolaw/dhcp4
%global goipath         github.com/krolaw/dhcp4
%global commit          7cead472c414711982509839c1a6a324d4c70ce6

%global common_description %{expand:
A DHCP library written in Go.}

%gometa

Name:           %{goname}
Version:        0
Release:        0.1%{?dist}
Summary:        DHCP4 library written in Go
# Detected licences
# - BSD 3-clause "New" or "Revised" License at 'LICENSE'
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires: golang(golang.org/x/net/ipv4)

%description
%{common_description}


%package devel
Summary:       %{summary}
BuildArch:     noarch

%description devel
%{common_description}

This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.


%prep
%forgeautosetup


%install
%goinstall


%if %{with check}
%check
%gochecks
%endif


%files devel -f devel.file-list
%license LICENSE
%doc README.md


%changelog
* Thu Nov 15 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190325git7cead47
- First package for Fedora