From 4ec74e758ed40726a7010bc0ea61779f9f05fd43 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Feb 28 2018 22:40:47 +0000 Subject: Autogenerate some parts using the new macros --- diff --git a/golang-github-influxdb-gomdb.spec b/golang-github-influxdb-gomdb.spec index 4e7d56d..9aa7cf1 100644 --- a/golang-github-influxdb-gomdb.spec +++ b/golang-github-influxdb-gomdb.spec @@ -1,58 +1,48 @@ -%global provider github -%global provider_tld com -%global project influxdb -%global repo gomdb +# https://github.com/influxdb/gomdb +%global provider_prefix github.com/influxdb/gomdb %global commit 29fe330c5ab33c4e48470bd4b980bf522471190a +%global gobaseipath %{provider_prefix} +%global commitdate 20140621 -%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global debug_package %{nil} +%gocraftmeta -i -Name: golang-%{provider}-%{project}-%{repo} +Name: %{goname} Version: 0 -Release: 0.8.git%{shortcommit}%{?dist} +Release: 0.9.git%{shortcommit}%{?dist} Summary: Go wrapper for LMDB License: BSD -URL: http://%{import_path} -Source0: https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz +URL: %{gourl} +Source0: %{gosource} BuildArch: noarch %description Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database %package devel -BuildRequires: golang >= 1.2.1-3 -Requires: golang >= 1.2.1-3 Summary: Go wrapper for LMDB -Provides: golang(%{import_path}) = %{version}-%{release} %description devel Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database This package contains library source intended for -building other packages which use %{project}/%{repo}. +building other packages which use %{gobaseipath}. %prep -%setup -q -n %{repo}-%{commit} - -%build +%gosetup %install -install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ -cp -pav *.{go,c,h} %{buildroot}/%{gopath}/src/%{import_path}/ +%goinstall %check -GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path} +%gochecks %{gobaseipath} -%files devel +%files devel -f devel.file-list %doc LICENSE README.md -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} -%dir %{gopath}/src/%{import_path} -%{gopath}/src/%{import_path}/*.go -%{gopath}/src/%{import_path}/*.c -%{gopath}/src/%{import_path}/*.h %changelog +* Wed Feb 28 2018 Jan Chaloupka - 0-0.9.git29fe330 +- Autogenerate some parts using the new macros + * Wed Feb 07 2018 Fedora Release Engineering - 0-0.8.git29fe330 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -77,6 +67,3 @@ GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path} * Thu Sep 25 2014 Jan Chaloupka - 0-0.1.git29fe330 - First package for Fedora - - -