Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a spec file for RPM building. #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions golang-github-dnstap-golang-dnstap.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
%global debug_package %{nil}

# https://github.com/dnstap/golang-dnstap
%global goipath github.com/dnstap/golang-dnstap
Version: 0.4.0

%gometa

%global common_description %{expand:
Implements an encoding format for DNS server events.}

%global golicences LICENSE
%global godocs README

Name: %{goname}
Release: %autorelease
Summary: DNS server event encoding format

License: Apache-2.0
URL: %{gourl}
Source0: %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
%autochangelog