# Generated by go2rpm 1.9.0 %bcond_without check %global debug_package %{nil} # https://github.com/ncw/swift %global goipath github.com/ncw/swift/v2 Version: 2.0.2 %gometa -f %global common_description %{expand: Go language interface to Swift / Openstack Object Storage / Rackspace cloud files (golang).} %global golicenses COPYING %global godocs notes.txt README.md Name: %{goname} Release: %autorelease Summary: Go language interface to Swift License: MIT URL: %{gourl} Source: %{gosource} # Remove in F43 Provides: golang-github-ncw-swift-2 = %{version}-%{release} Obsoletes: golang-github-ncw-swift-2 < 2.0.2-3 %global godevelheader %{expand: Provides: golang-github-ncw-swift-2-devel = %{version}-%{release} Obsoletes: golang-github-ncw-swift-2-devel < 2.0.2-3} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestWatchdogReaderOnSlowNetwork" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d rs %endif %gopkgfiles %changelog %autochangelog