From 3075a5faec84b1804a1c966d7abfd9566c020fc9 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup(a)redhat.com>
Date: Feb 28 2018 22:32:08 +0000
Subject: Autogenerate some parts using the new macros
---
diff --git a/golang-github-influxdb-go-cache.spec b/golang-github-influxdb-go-cache.spec
index f8eaec8..641bdc6 100644
--- a/golang-github-influxdb-go-cache.spec
+++ b/golang-github-influxdb-go-cache.spec
@@ -1,59 +1,50 @@
-%global provider github
-%global provider_tld com
-%global project influxdb
-%global repo go-cache
+#
https://github.com/influxdb/go-cache
+%global provider_prefix
github.com/influxdb/go-cache
+%global gobaseipath %{provider_prefix}
%global commit 7d1d6d6ae935664bc8b80ab2b1fc7ab77a7e46da
+%global commitdate 20130808
-%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.%{commitdate}git%{shortcommit}%{?dist}
Summary: An in-memory key:value store/cache library for Go
License: MIT
-URL: http://%{import_path}
-Source0:
https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortco...
+URL: %{gourl}
+Source0: %{gosource}
BuildArch: noarch
%description
An in-memory key:value store/cache (similar to Memcached) library for Go,
suitable for single-machine applications
-
%package devel
-BuildRequires: golang >= 1.2.1-3
-Requires: golang >= 1.2.1-3
Summary: An in-memory key:value store/cache library for Go
-Provides: golang(%{import_path}) = %{version}-%{release}
%description devel
An in-memory key:value store/cache (similar to Memcached) library for Go,
suitable for single-machine applications
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 %{buildroot}/%{gopath}/src/%{import_path}/
+%goinstall
%check
-GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+%gochecks
-%files devel
+%files devel -f devel.file-list
%doc LICENSE README CONTRIBUTORS
-%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
-%dir %{gopath}/src/%{import_path}
-%{gopath}/src/%{import_path}/*.go
%changelog
+* Wed Feb 28 2018 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.9.20130808git7d1d6d6
+- Autogenerate some parts using the new macros
+
* Wed Feb 07 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
0-0.8.git7d1d6d6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@@ -78,5 +69,3 @@ GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
* Thu Sep 25 2014 Jan Chaloupka <jchaloup(a)redhat.com> - 0-0.1.git7d1d6d6
- First package for Fedora
-
-
https://src.fedoraproject.org/rpms/golang-github-influxdb-go-cache/c/3075...