From 52858211370aa047df1905897d6b2ac47326681f Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Jan 19 2019 18:14:50 +0000 Subject: Initial import (golang-github-gofrs-flock-0.7.0-1) flock implements a thread-safe sync.Locker interface for file locking. It also includes a non-blocking TryLock() function to allow locking without blocking execution. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fff7a7b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/flock-[0-9.]*.tar.gz diff --git a/golang-github-gofrs-flock.spec b/golang-github-gofrs-flock.spec new file mode 100644 index 0000000..2e59fbd --- /dev/null +++ b/golang-github-gofrs-flock.spec @@ -0,0 +1,47 @@ +# https://github.com/gofrs/flock +%global goipath github.com/gofrs/flock +Version: 0.7.0 + +%gometa + +Name: %{goname} +Release: 1%{?dist} +Summary: Thread-safe file locking library in Go +License: BSD +URL: %{gourl} +Source0: %{gosource} +BuildRequires: golang(gopkg.in/check.v1) + +%description +flock implements a thread-safe sync.Locker interface for file locking. It also +includes a non-blocking TryLock() function to allow locking without blocking +execution. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +flock implements a thread-safe sync.Locker interface for file locking. It also +includes a non-blocking TryLock() function to allow locking without blocking +execution. + +This package contains library source intended for building other packages that +use import path with the %{goipath} prefix. + +%prep +%forgesetup + +%install +%goinstall + +%check +%gochecks + +%files devel -f devel.file-list +%license LICENSE +%doc README.md + +%changelog +* Thu Jan 17 2019 Paul Howarth - 0.7.0-1 +- Initial RPM version diff --git a/sources b/sources new file mode 100644 index 0000000..1a9099d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (flock-0.7.0.tar.gz) = 318243bf083eaf2be8107be17d7a274d050c634474e5044a91e6873053d19390b804a53ca11fdb75e48977687448f0affe6f485dec88239e0eb335a127213076