## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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.6.0 %bcond_without check %global debug_package %{nil} # https://github.com/thlib/go-timezone-local %global goipath github.com/thlib/go-timezone-local %global commit ef149e42d28e01293e9ebda9f3d377283b84b9c0 %gometa %global common_description %{expand: Get the full name of the local timezone.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: Get the full name of the local timezone License: Unlicense URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestDownloadOldNames" "TestDownloadWindowsZones" "TestFTPDownload" "TestExtractTarGz" "TestUpdateWindowsTZMapping"\ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog * Fri Jul 29 2022 Mikel Olasagasti Uranga 0-0.1 - Initial package - Closes rhbz#2111116