diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d0c479 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/golang-github-restic-chunker-0.2.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ff50c68..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# golang-github-restic-chunker - -The golang-github-restic-chunker package \ No newline at end of file diff --git a/golang-github-restic-chunker.spec b/golang-github-restic-chunker.spec new file mode 100644 index 0000000..75b863b --- /dev/null +++ b/golang-github-restic-chunker.spec @@ -0,0 +1,56 @@ +# https://github.com/restic/chunker +%global goipath github.com/restic/chunker +Version: 0.2.0 + +%global common_description %{expand: +The package chunker implements content-defined-chunking (CDC) based on a +rolling Rabin Hash. The library is part of the restic backup program.} + +%gometa -i + +Name: %{goname} +Release: 1%{?dist} +Summary: Implementation of Content Defined Chunking (CDC) in Go +License: BSD +URL: %{gourl} +Source0: https://%{goipath}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + + + +%description +%{common_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + + +%description devel +%{common_description} + +This package contains library source intended for +building other packages which use import path with +%{goipath} prefix. + +%prep +%gosetup -q + + +%install +%goinstall + +%check +%gochecks + +#define license tag if not already defined +%{!?_licensedir:%global license %doc} + + +%files devel -f devel.file-list +%license LICENSE +%doc README.md + +%changelog +* Thu Jun 14 2018 Steve Miller (copart) - 0.2.0-1 +- First package for Fedora + diff --git a/sources b/sources new file mode 100644 index 0000000..ebfd6c5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (golang-github-restic-chunker-0.2.0.tar.gz) = ecc10dcb47dfe1cf41e8fd728911a20085608795291aa639efbe6fdb24a0b3622c1e2da01150173a1bd5178c0cafb792bc4896412a95ac8b636813ea7ca62a3d