## 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.8.1 %bcond_without check %global debug_package %{nil} # https://github.com/projectdiscovery/fileutil %global goipath github.com/projectdiscovery/fileutil Version: 0.0.3 %gometa %global common_description %{expand: Various helpers to interact with files.} %global golicenses LICENSE.md %global godocs README.md Name: %{goname} Release: %autorelease Summary: Various helpers to interact with files License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check ln -s %{_builddir}/fileutil-%{commit} %{_builddir}/fileutil # TestDownloadFile requires network for test in "TestDownloadFile" "TestFolderExists" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog * Tue Dec 20 2022 Mikel Olasagasti Uranga 0.0.3-1 - Update to 0.0.3 - Closes rhbz#2137565 * Tue Oct 04 2022 Mikel Olasagasti Uranga 0.0.1-2 - Skip failing test * Tue Oct 04 2022 Mikel Olasagasti Uranga 0.0.1-1 - Update to 0.0.1 * Thu Jul 21 2022 Fedora Release Engineering 0-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 09 2022 Mikel Olasagasti Uranga 0-0.1 - Initial package - Closes rhbz#2081147