# Generate devel rpm %global with_devel 1 # Build project from bundled dependencies %global with_bundled 0 # Build with debug info rpm %global with_debug 0 # Run tests in check section %global with_check 1 # Generate unit-test rpm %global with_unit_test 1 %if 0%{?with_debug} %global _dwz_low_mem_die_limit 0 %else %global debug_package %{nil} %endif %global provider github %global provider_tld com %global project klauspost %global repo reedsolomon # https://github.com/klauspost/reedsolomon %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path %{provider_prefix} %global goipath github.com/klauspost/reedsolomon %global commit 925cb01d65108f2c935e02fdb79ff4a055a4a20d %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20180704 ##gometa Name: golang-%{provider}-%{project}-%{repo} Version: 1.6 Release: 7.%{commitdate}.git%{shortcommit}%{?dist} Summary: Reed-Solomon Erasure Coding in Go License: MIT URL: https://%{provider_prefix} Source0: %{repo}-%{commit}.tar.gz # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}} BuildRequires: go-compilers-golang-compiler BuildRequires: go-srpm-macros %description %{summary} %package devel Summary: %{summary} BuildArch: noarch BuildRequires: golang(github.com/klauspost/cpuid) %description devel %{summary} This package contains library source intended for building other packages which use import path with %{goipath} prefix. %prep %setup -q -n %{repo}-%{commit} %install %goinstall %check %gochecks %files devel -f devel.file-list %license LICENSE %doc README.md %changelog * Sun Sep 02 2018 Fabio Valentini - 1.6-6.20180704git925cb01 - Bump to commit 925cb01. - Update to use spec 3.0. * Fri Jul 13 2018 Fedora Release Engineering - 1.6-5.20171219.git0b30fa7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.6-4.20171219.git0b30fa7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 09 2018 Fabio Valentini - 1.6-3.20171219.git0b30fa7 - Bump to commit 0b30fa7. * Sat Dec 09 2017 Fabio Valentini - 1.6-2.20171118.gite52c150 - Bump to commit e52c150. * Tue Oct 03 2017 Fabio Valentini - 1.6-1 - Update to version 1.6. * Sat Aug 26 2017 Fabio Valentini - 1.5-1 - Update to version 1.5. * Wed Aug 02 2017 Fedora Release Engineering - 1.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jul 16 2017 Fabio Valentini - 1.4-1 - Update to version 1.4. * Tue Mar 21 2017 Fabio Valentini - 1.3-1 - First package for Fedora