Blame golang-github-euank-kmsg-parser.spec

547016
# Run tests in check section
547016
%bcond_without check
547016
547016
# https://github.com/euank/go-kmsg-parser
547016
%global goipath         github.com/euank/go-kmsg-parser
547016
Version:                2.0.1
547016
547016
%gometa
547016
547016
Name:           %{goname}
547016
Release:        1%{?dist}
547016
Summary:        A simpler parser for the /dev/kmsg format 
547016
# Detected licences
547016
# - *No copyright* Apache License (v2.0) at 'LICENSE'
547016
License:        ASL 2.0
547016
URL:            %{gourl}
547016
Source0:        %{gosource}
547016
547016
BuildRequires:  golang(github.com/stretchr/testify/assert)
547016
547016
%description
547016
This package contains a library to allow parsing the /dev/kmsg device in 
547016
Linux. This device provides a read-write interface to the Linux Kernel's ring 
547016
buffer.
547016
547016
547016
%package -n godmesg
547016
Summary:       %{summary}
547016
547016
%description -n godmesg
547016
A simple cli-tool that functions similarly to dmesg --ctime --follow. 
547016
This code serves both as a usage example and as a simple way to verify it works
547016
how you'd expect on a given system.
547016
547016
547016
%package devel
547016
Summary:       %{summary}
547016
BuildArch:     noarch
547016
547016
%description devel
547016
This package contains a library to allow parsing the /dev/kmsg device in 
547016
Linux. This device provides a read-write interface to the Linux Kernel's ring 
547016
buffer.
547016
547016
This package contains library source intended for
547016
building other packages which use import path with
547016
%{goipath} prefix.
547016
547016
547016
%prep
547016
%forgeautosetup -p1
547016
547016
547016
%build
547016
%gobuildroot
547016
%gobuild -o _bin/godmesg %{goipath}/cmd/godmesg
547016
547016
547016
%install
547016
%goinstall
547016
install -Dpm 0755 _bin/godmesg %{buildroot}%{_bindir}/godmesg
547016
547016
547016
%if %{with check}
547016
%check
547016
%gochecks
547016
%endif
547016
547016
547016
%files -n godmesg
547016
%license LICENSE
547016
%{_bindir}/godmesg
547016
547016
547016
%files devel -f devel.file-list
547016
%license LICENSE
547016
%doc README.md
547016
547016
547016
%changelog
547016
* Sun Mar 17 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.0.1-1
547016
- First package for Fedora
547016