From 547016195519eef6f2e2b045d33c865f31175d2b Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Mar 25 2019 16:37:10 +0000 Subject: Initial import (#1645264) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..230bd7e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/go-kmsg-parser-2.0.1.tar.gz diff --git a/golang-github-euank-kmsg-parser.spec b/golang-github-euank-kmsg-parser.spec new file mode 100644 index 0000000..367533d --- /dev/null +++ b/golang-github-euank-kmsg-parser.spec @@ -0,0 +1,83 @@ +# Run tests in check section +%bcond_without check + +# https://github.com/euank/go-kmsg-parser +%global goipath github.com/euank/go-kmsg-parser +Version: 2.0.1 + +%gometa + +Name: %{goname} +Release: 1%{?dist} +Summary: A simpler parser for the /dev/kmsg format +# Detected licences +# - *No copyright* Apache License (v2.0) at 'LICENSE' +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/stretchr/testify/assert) + +%description +This package contains a library to allow parsing the /dev/kmsg device in +Linux. This device provides a read-write interface to the Linux Kernel's ring +buffer. + + +%package -n godmesg +Summary: %{summary} + +%description -n godmesg +A simple cli-tool that functions similarly to dmesg --ctime --follow. +This code serves both as a usage example and as a simple way to verify it works +how you'd expect on a given system. + + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +This package contains a library to allow parsing the /dev/kmsg device in +Linux. This device provides a read-write interface to the Linux Kernel's ring +buffer. + +This package contains library source intended for +building other packages which use import path with +%{goipath} prefix. + + +%prep +%forgeautosetup -p1 + + +%build +%gobuildroot +%gobuild -o _bin/godmesg %{goipath}/cmd/godmesg + + +%install +%goinstall +install -Dpm 0755 _bin/godmesg %{buildroot}%{_bindir}/godmesg + + +%if %{with check} +%check +%gochecks +%endif + + +%files -n godmesg +%license LICENSE +%{_bindir}/godmesg + + +%files devel -f devel.file-list +%license LICENSE +%doc README.md + + +%changelog +* Sun Mar 17 2019 Robert-André Mauchin - 2.0.1-1 +- First package for Fedora + diff --git a/sources b/sources new file mode 100644 index 0000000..0ab4790 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (go-kmsg-parser-2.0.1.tar.gz) = 23b7b383886f11d21cb6a40b2f9ebb09bed97e7dc0cc8a8e23a0b93c30c8530d75d9e230db54282d2e28c6f92f6ae2dd1d555aa1dcd907f22b52713949d1a236