## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/segmentio/asm %global goipath github.com/segmentio/asm Version: 1.2.0 %gometa -f %global common_description %{expand: Go library providing algorithms optimized to leverage the characteristics of modern CPUs.} %global golicenses LICENSE %global godocs CODE_OF_CONDUCT.md CONTRIBUTING.md README.md %global gosupfiles build/qsort/sort_asm.go Name: %{goname} Release: %autorelease Summary: Algorithms optimized to leverage the characteristics of modern CPUs License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestSort8" \ "TestSort16" \ "TestSort24" \ "TestSort32" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done # https://github.com/segmentio/asm/issues/73 %gocheck -t build %endif %gopkgfiles %changelog ## START: Generated by rpmautospec * Wed Jan 24 2024 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jul 30 2023 Robert-André Mauchin - 1.2.0-2 - Disable some tests * Sun Jul 30 2023 Robert-André Mauchin - 1.2.0-1 - Initial import ## END: Generated by rpmautospec