Bug 1522690

Summary: Review Request: mohawk - time series metric data storage
Product: [Fedora] Fedora Reporter: Yaacov Zamir <yzamir>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: package-review, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-25 15:06:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 177841    

Description Yaacov Zamir 2017-12-06 09:37:22 UTC
Spec URL: https://copr-be.cloud.fedoraproject.org/results/yaacov/mohawk/fedora-27-x86_64/00684948-mohawk/mohawk.spec
SRPM URL: https://copr-be.cloud.fedoraproject.org/results/yaacov/mohawk/fedora-27-x86_64/00684948-mohawk/mohawk-0.26.2-6.fc27.src.rpm
Description: Mohawk is a metric data storage engine that uses a plugin architecture for data storage and a simple REST API as the primary interface.
Fedora Account System Username: yaacov

Comment 1 Robert-André Mauchin 🐧 2018-10-04 20:11:40 UTC
Using:

Spec URL: https://copr-be.cloud.fedoraproject.org/results/yaacov/mohawk/fedora-27-x86_64/00771263-mohawk/mohawk.spec
SRPM URL: https://copr-be.cloud.fedoraproject.org/results/yaacov/mohawk/fedora-27-x86_64/00771263-mohawk/mohawk-0.33.3-1.fc27.src.rpm

 - The valid shorthand for Apache license is "ASL 2.0"

License:        ASL 2.0

 - We now use a new Go packaging method, see: https://fedoraproject.org/wiki/More_Go_packaging

  Here what it should look like


# https://github.com/MohawkTSDB/mohawk
%global goipath         github.com/MohawkTSDB/mohawk
Version:                0.33.3

%gometa

Name:           mohawk
Release:        1%{?dist}
Summary:        Time series metric data storage
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gourl}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: golang(github.com/mattn/go-sqlite3)
BuildRequires: golang(github.com/spf13/cobra)
BuildRequires: golang(github.com/spf13/viper)
BuildRequires: golang(gopkg.in/mgo.v2)
BuildRequires: golang(gopkg.in/mgo.v2/bson)



%description
Mohawk is a metric data storage engine that uses a plugin architecture for 
data storage and a simple REST API as the primary interface.


%prep
%forgeautosetup


%build
%gobuildroot
%gobuild -o _bin/mohawk %{goipath}/src


%install
install -Dpm 0755 _bin/mohawk %{buildroot}%{_bindir}/mohawk


%files
%license LICENSE
%doc README.md
%{_bindir}/mohawk


%changelog
* Thu Oct 04 2018 Yaacov Zamir <kobi.zamir> - 0.33.3-1
- First package for Fedora



There's a bug with golang(github.com/mattn/go-sqlite3) I'll see if I can ask the maitainer to fix it.