diff --git a/.gitignore b/.gitignore index aad8bd2..d99a988 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /go-memdb-9ea975be0e31ada034a5760340d4892f3f543d20.tar.gz /go-memdb-1.0.0.tar.gz +/go-memdb-1.0.1.tar.gz +/go-memdb-1.0.3.tar.gz diff --git a/golang-github-hashicorp-go-memdb.spec b/golang-github-hashicorp-go-memdb.spec index e55ce89..c65a056 100644 --- a/golang-github-hashicorp-go-memdb.spec +++ b/golang-github-hashicorp-go-memdb.spec @@ -1,60 +1,74 @@ -# Run tests in check section +# Generated by go2rpm %bcond_without check -# http://github.com/hashicorp/go-memdb +# https://github.com/hashicorp/go-memdb %global goipath github.com/hashicorp/go-memdb -Version: 1.0.0 +Version: 1.0.3 + +%gometa %global common_description %{expand: -Provides the memdb package that implements a simple in-memory database built on immutable radix trees. The database provides Atomicity, Consistency and Isolation from ACID. Being that it is in-memory, it does not provide durability. The database is instantiated with a schema that specifies the tables and indices that exist and allows transactions to be executed. +The Memdb package implements a simple in-memory database built on immutable +radix trees. The database provides Atomicity, Consistency and Isolation from +ACID. Being that it is in-memory, it does not provide durability. The database +is instantiated with a schema that specifies the tables and indices that exist +and allows transactions to be executed. The database provides the following: - - Multi-Version Concurrency Control (MVCC) - By leveraging immutable radix trees the database is able to support any number of concurrent readers without locking, and allows a writer to make progress. - - - Transaction Support - The database allows for rich transactions, in which multiple objects are inserted, updated or deleted. The transactions can span multiple tables, and are applied atomically. The database provides atomicity and isolation in ACID terminology, such that until commit the updates are not visible. - - - Rich Indexing - Tables can support any number of indexes, which can be simple like a single field index, or more advanced compound field indexes. Certain types like UUID can be efficiently compressed from strings into byte indexes for reduced storage requirements. - - - Watches - Callers can populate a watch set as part of a query, which can be used to detect when a modification has been made to the database which affects the query results. This lets callers easily watch for changes in the database in a very general way.} - -%gometa - -Name: golang-github-hashicorp-go-memdb + - Multi-Version Concurrency Control (MVCC) - By leveraging immutable radix + trees the database is able to support any number of concurrent readers + without locking, and allows a writer to make progress. + - Transaction Support - The database allows for rich transactions, in which + multiple objects are inserted, updated or deleted. The transactions can span + multiple tables, and are applied atomically. The database provides atomicity + and isolation in ACID terminology, such that until commit the updates are not + visible. + - Rich Indexing - Tables can support any number of indexes, which can be simple + like a single field index, or more advanced compound field indexes. Certain + types like UUID can be efficiently compressed from strings into byte indexes + for reduced storage requirements. + - Watches - Callers can populate a watch set as part of a query, which can be + used to detect when a modification has been made to the database which + affects the query results. This lets callers easily watch for changes in the + database in a very general way.} + +%global golicenses LICENSE +%global godocs README.md + +%global gosupfiles glide.lock glide.yaml + +Name: %{goname} Release: 1%{?dist} Summary: Golang in-memory database built on immutable radix trees + +# Upstream license specification: MPL-2.0 License: MPLv2.0 URL: %{gourl} Source0: %{gosource} Source1: glide.yaml Source2: glide.lock -BuildRequires: golang(github.com/hashicorp/go-immutable-radix) +BuildRequires: golang(github.com/hashicorp/go-immutable-radix) %description -%{summary} - - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel -%{summary} - -This package contains library source intended for -building other packages which use import path with -%{goipath} prefix. +%{common_description} +%gopkg %prep -%forgesetup -cp %{SOURCE1} %{SOURCE2} . +%goprep +cp %{S:1} %{S:2} . +%build +for cmd in watch-gen; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +done %install -%goinstall glide.lock glide.yaml - +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ # Remove in F33 # Remove erroneous glide.lock folder @@ -65,18 +79,22 @@ if st and st.type == "directory" then os.remove(path) end - %if %{with check} %check -%gochecks +%gocheck %endif - -%files devel -f devel.file-list +%files %license LICENSE %doc README.md +%{_bindir}/* + +%gopkgfiles %changelog +* Tue Apr 30 20:26:51 CEST 2019 Robert-André Mauchin - 1.0.3-1 +- Release 1.0.3 + * Sun Mar 24 15:58:31 CET 2019 Robert-André Mauchin - 1.0.0-1 - Release 1.0.0 diff --git a/sources b/sources index 181edf1..939b0c2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (go-memdb-1.0.0.tar.gz) = 73ee0c72925992b8497682331813d70df382a9a070ad3c3b5bc36ca2d6871476efd5c8b0e30e1bea31947f505fc69b95e434da5c0767c3f86553f5b417935476 +SHA512 (go-memdb-1.0.3.tar.gz) = 6b3c13662fd34c9f8b5025025e9b8b00eb5ee2bce60cc80f38cc5d1abb25633d589f31822b52af958d540ea9f6f8f7b2c89ae702444e87622be6a9d6f1254455