From 9c50dc4934a161ce62659ba500a70465b1880a12 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: May 28 2019 15:45:43 +0000 Subject: Update to new macros Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore index 2d0c479..946c16f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /golang-github-restic-chunker-0.2.0.tar.gz +/chunker-0.2.0.tar.gz diff --git a/golang-github-restic-chunker.spec b/golang-github-restic-chunker.spec index 68e9193..2803168 100644 --- a/golang-github-restic-chunker.spec +++ b/golang-github-restic-chunker.spec @@ -1,67 +1,59 @@ +# Generated by go2rpm +%bcond_without check + # https://github.com/restic/chunker -%global goipath github.com/restic/chunker -Version: 0.2.0 +%global goipath github.com/restic/chunker +Version: 0.2.0 + +%gometa %global common_description %{expand: -The package chunker implements content-defined-chunking (CDC) based on a +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: 4%{?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 +%global golicenses LICENSE +%global godocs README.md +Name: %{goname} +Release: 5%{?dist} +Summary: Implementation of Content Defined Chunking (CDC) in Go +# Upstream license specification: BSD-2-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource} %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. +%gopkg %prep -%forgesetup - +%goprep %install -%goinstall +%gopkginstall +%if %{with check} %check -%gochecks - -#define license tag if not already defined -%{!?_licensedir:%global license %doc} +%gocheck +%endif - -%files devel -f devel.file-list -%license LICENSE -%doc README.md +%gopkgfiles %changelog -* Fri Feb 01 2019 Fedora Release Engineering - Forge-specific packaging variables +* Tue May 28 17:38:07 CEST 2019 Robert-André Mauchin - 0.2.0-5 +- Update to new macros + +* Fri Feb 01 2019 Fedora Release Engineering - 0.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild -* Tue Oct 23 2018 Nicolas Mailhot -- 0.2.0-3 +* Tue Oct 23 2018 Nicolas Mailhot - 0.2.0-3 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ -* Fri Jul 13 2018 Fedora Release Engineering - Forge-specific packaging variables +* Fri Jul 13 2018 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 14 2018 Steve Miller (copart) - 0.2.0-1 - First package for Fedora - diff --git a/sources b/sources index ebfd6c5..551e870 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (golang-github-restic-chunker-0.2.0.tar.gz) = ecc10dcb47dfe1cf41e8fd728911a20085608795291aa639efbe6fdb24a0b3622c1e2da01150173a1bd5178c0cafb792bc4896412a95ac8b636813ea7ca62a3d +SHA512 (chunker-0.2.0.tar.gz) = ecc10dcb47dfe1cf41e8fd728911a20085608795291aa639efbe6fdb24a0b3622c1e2da01150173a1bd5178c0cafb792bc4896412a95ac8b636813ea7ca62a3d