# Generated by go2rpm 1.3 %bcond_without check # Redefine %%gomkdir to use a find/copy strategy rather than creating a symlink. # There are tests that deliberately dereference symlinks in provided paths, and # the symlink created by %%gomkdir ends up causing the TestCanonical* tests to # fail. # # See: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/EXEATDJPCFIUHYUHJPZDZM3CAWNRDYXY/ %define gomkdir(z:i:b:s:kv) %{expand: %goenv %{?-z} %{?-i} %{?-v} %define mybuilddir %{?-b*}%{!-b:%{gobuilddir}} %define mygoipath %{?-i*}%{!-i:%{currentgoipath}} %define mysourcedir %{?-s*}%{!-s:%{currentgosourcedir}} %{!?-k:rm -fr "%{mysourcedir}/vendor"} if [[ ! -e "%{mybuilddir}/bin" ]] ; then install -m 0755 -vd "%{mybuilddir}/bin" export GOPATH="%{mybuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}" fi if [[ ! -e "%{mybuilddir}/src/%{mygoipath}" ]] ; then install -m 0755 -vd "%{mybuilddir}/src/%{mygoipath}" find "%{mysourcedir}" -not \\( -path "%{mysourcedir}" \\) -and -not \\( -path "%{mysourcedir}/_build" -prune \\) -exec cp -a "{}" "%{mybuilddir}/src/%{mygoipath}/" \\; fi cd "%{mybuilddir}/src/%{mygoipath}" } # https://github.com/rjeczalik/notify %global goipath github.com/rjeczalik/notify Version: 0.9.2 %global commit e2a77dcc14cf6732bfa4c361554f27dc696d5d79 %gometa %global common_description %{expand: File system event notification library on steroids.} %global golicenses LICENSE %global godocs AUTHORS README.md Name: %{goname} Release: 5%{?dist} Summary: File system event notification library on steroids License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/sys/unix) %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} %check # Disable "TestRecreated" as it can occasionally fail with a timeout error. # Disable "TestWatcherInotify" as it can occasionally fail with a timeout error. for test in TestRecreated TestWatcherInotify ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog * Thu Jul 21 2022 Fedora Release Engineering - 0.9.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 28 2021 Link Dupont - 0.9.2-2.20210611gite2a77dc - Disable TestWatcherInotify * Fri Jun 11 14:40:49 EDT 2021 Link Dupont - 0.9.2-1.20210611gite2a77dc - Initial package