diff --git a/.gitignore b/.gitignore index 0056481..c9b5eb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /wav-7b3d650.tar.gz +/wav-8bdace674401f0bd3b63c65479b6a6ff1f9d5e44.tar.gz diff --git a/golang-github-cryptix-wav.spec b/golang-github-cryptix-wav.spec index 0cf4d3a..524b7be 100644 --- a/golang-github-cryptix-wav.spec +++ b/golang-github-cryptix-wav.spec @@ -1,28 +1,19 @@ -%global debug_package %{nil} +# Run tests in check section +# disable for bootstrapping +%bcond_with check -%global provider github -%global provider_tld com -%global project cryptix -%global repo wav -# https://github.com/cryptix/wav -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit 7b3d650b50a50a0137376e392770f372edc3d968 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global commitdate 20171018 +%global goipath github.com/cryptix/wav +%global commit 8bdace674401f0bd3b63c65479b6a6ff1f9d5e44 -Name: golang-%{provider}-%{project}-%{repo} +%gometa + +Name: %{goname} Version: 0 -Release: 0.2.%{commitdate}git%{shortcommit}%{?dist} +Release: 0.3%{?dist} Summary: golang wav reader and writer License: GPLv2 -URL: https://%{provider_prefix} -Source0: %{url}/archive/%{commit}/%{repo}-%{shortcommit}.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 %{arm}} -# If go_compiler is not set to 1, there is no virtual provide. Use golang instead. -BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} +URL: %{gourl} +Source0: %{gosource} %description %{summary}. @@ -39,70 +30,25 @@ This package contains library source intended for building other packages which use import path with %{import_path} prefix. -%package unit-test-devel -Summary: Unit tests for %{name} package -BuildArch: noarch -BuildRequires: golang(github.com/cheekybits/is) -# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} - -%description unit-test-devel -%{summary}. - -This package contains unit tests for project -providing packages with %{import_path} prefix. - - %prep -%setup -q -n %{repo}-%{commit} - -%build +%forgeautosetup %install -# source codes for building projects -install -d -p %{buildroot}%{gopath}/src/%{import_path}/ -echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list -# find all *.go but no *_test.go files and generate devel.file-list -for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do - echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list - install -d -p %{buildroot}%{gopath}/src/%{import_path}/$(dirname $file) - cp -pav $file %{buildroot}%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list -done - -# testing files for this project -install -d %{buildroot}%{gopath}/src/%{import_path}/ -# find all *_test.go files and generate unit-test.file-list -for file in $(find . -iname "*_test.go"); do - dirprefix=$(dirname $file) - install -d -p %{buildroot}%{gopath}/src/%{import_path}/$dirprefix - cp -pav $file %{buildroot}%{gopath}/src/%{import_path}/$file - echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -done - -sort -u -o devel.file-list devel.file-list +%goinstall +%if %{with check} %check -export GOPATH=%{buildroot}%{gopath}:%{gopath} - -%if ! 0%{?gotest:1} -%global gotest go test +%gochecks %endif -%gotest %{import_path} ||: - %files devel -f devel.file-list %doc README.md examples/ %license LICENSE -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} - -%files unit-test-devel -f unit-test-devel.file-list %changelog +* Fri Nov 9 2018 mosquito - 0-0.3.20181109git8bdace6 +- Update to 8bdace6 + * Fri Jul 13 2018 Fedora Release Engineering - 0-0.2.20171018git7b3d650 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 71f1939..020e6fa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (wav-7b3d650.tar.gz) = 7b3fb0e798a8808c8177be57f6b0570a91600a8d0ccd14f9e2401c7efa4063fc3da073f4cf05403cf28c0dedae955dea5ef81249afe95686d21d004b24788546 +SHA512 (wav-8bdace674401f0bd3b63c65479b6a6ff1f9d5e44.tar.gz) = e926fab44982476ce74f2baedde75fcbefeb82f184c24b4dc655971788bf2aeff3c90aa981a4f719911ebd0ce36ef09912d69bd983e3912079d39a049b8ef56b