diff --git a/.gitignore b/.gitignore index 2caa786..8deb99b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /remyoudompheng-bigfft-3d026bc.tar.gz /remyoudompheng-bigfft-3da9816.tar.gz /remyoudompheng-bigfft-52369c6.tar.gz +/bigfft-babf20351dd7e3ac320adedbbe5eb311aec8763c.tar.gz diff --git a/golang-github-remyoudompheng-bigfft.spec b/golang-github-remyoudompheng-bigfft.spec index ff0b242..d88a2b5 100644 --- a/golang-github-remyoudompheng-bigfft.spec +++ b/golang-github-remyoudompheng-bigfft.spec @@ -1,188 +1,46 @@ -# 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 +# Generated by go2rpm +%bcond_without check -%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 remyoudompheng -%global repo bigfft # https://github.com/remyoudompheng/bigfft -%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} -%global import_path %{provider_prefix} -%global commit 52369c62f4463a21c8ff8531194c5526322b8521 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) - - -Name: golang-%{provider}-%{project}-%{repo} -Version: 0 -Release: 0.8.git%{shortcommit}%{?dist} -Summary: Big integer multiplication library using FFT for Go -License: BSD -URL: https://%{provider_prefix} -Source0: https://%{provider_prefix}/archive/%{commit}/%{project}-%{repo}-%{shortcommit}.tar.gz - -# This package only provides assembler for limited architectures -ExclusiveArch: %{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} - -%description -%{summary} - - -%if 0%{?with_devel} -%package devel -Summary: %{summary} -BuildArch: noarch - -Provides: golang(%{import_path}) = %{version}-%{release} - -%description devel -%{summary} +%global goipath github.com/remyoudompheng/bigfft +%global commit babf20351dd7e3ac320adedbbe5eb311aec8763c -This package contains library source intended for -building other packages which use import path with -%{import_path} prefix. -%endif +%gometa +%global common_description %{expand: +Big integer multiplication library for Go using Fast Fourier transform.} -%if 0%{?with_unit_test} && 0%{?with_devel} -%package unit-test-devel -Summary: Unit tests for %{name} package +%global golicenses LICENSE +%global godocs README -# test subpackage tests code from devel subpackage -Requires: %{name}-devel = %{version}-%{release} +Name: %{goname} +Version: 0 +Release: 0.1%{?dist} +Summary: Big integer multiplication library for Go using Fast Fourier transform -%description unit-test-devel -%{summary} +# Upstream license specification: BSD-3-Clause +License: BSD +URL: %{gourl} +Source0: %{gosource} -This package contains unit tests for project -providing packages with %{import_path} prefix. -%endif +%description +%{common_description} +%gopkg %prep -%setup -q -n %{repo}-%{commit} - - -%build - +%goprep %install -# source codes for building projects -%if 0%{?with_devel} -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" -or -iname "*.s" \) \! -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" >> devel.file-list - - while [ "$dirprefix" != "." ]; do - echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list - dirprefix=$(dirname $dirprefix) - done -done -%endif - -# testing files for this project -%if 0%{?with_unit_test} && 0%{?with_devel} -install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ - -# find all *_test.go files and generate unit-test-devel.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 -%endif - - -%if 0%{?with_devel} -sort -u -o devel.file-list devel.file-list -%endif - +%gopkginstall +%if %{with check} %check -%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} -%if ! 0%{?with_bundled} -export GOPATH=%{buildroot}/%{gopath}:%{gopath} -%else -# No dependency directories so far -export GOPATH=%{buildroot}/%{gopath}:%{gopath} -%endif - -%if ! 0%{?gotest:1} -%global gotest go test -%endif - -%gotest %{import_path} -%endif - - -#define license tag if not already defined -%{!?_licensedir:%global license %doc} - - -%if 0%{?with_devel} -%files devel -f devel.file-list -%license LICENSE -%doc README -%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} -%endif - - -%if 0%{?with_unit_test} && 0%{?with_devel} -%files unit-test-devel -f unit-test-devel.file-list -%license LICENSE -%doc README +%gocheck %endif +%gopkgfiles %changelog -* Fri Jul 13 2018 Fedora Release Engineering - 0-0.8.git52369c6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 0-0.7.git52369c6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 16 2017 Fabio Valentini - 0-0.6.git52369c6 -- Bump to commit 52369c6. - -* Thu Aug 03 2017 Fabio Valentini - 0-0.5.git3da9816 -- Bump to commit 3da9816. - -* Thu Aug 03 2017 Fabio Valentini - 0-0.4.git3d026bc -- Bump to commit 3d026bc. - -* Wed Aug 02 2017 Fedora Release Engineering - 0-0.3.gita8e77dd -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 0-0.2.gita8e77dd -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Tue Mar 14 2017 Fabio Valentini - 0-0.1.gita8e77dd -- First package for Fedora - +* Sun May 12 15:23:42 CEST 2019 Robert-André Mauchin - 0-0.1.20190630gitbabf203 +- Initial package diff --git a/sources b/sources index 8d8c649..91af402 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (remyoudompheng-bigfft-52369c6.tar.gz) = cbcee14273276cf5e0b27ec23243cd4fd21ce6926a27dc7adaac66725e66d93e21b0a46ec4fcdb90f5a7b5cb93eabf8005e3cf020ac024e54669294d354d6d06 +SHA512 (bigfft-babf20351dd7e3ac320adedbbe5eb311aec8763c.tar.gz) = 30b6edef5b68779ce32d33d46dfbc64c5673e667235bebc96903af79bb59c57b0c27fd3ab79542065c7c291509aadfd697d3a9a1c86f44aaf95cb015735fc0fe