# Generated by go2rpm # Needs network %bcond_with check # https://github.com/src-d/go-git %global goipath gopkg.in/src-d/go-git.v4 %global forgeurl https://github.com/src-d/go-git Version: 4.13.1 %gometa %global common_description %{expand: A highly extensible git implementation in pure go.} %global golicenses LICENSE %global godocs _examples CODE_OF_CONDUCT.md COMPATIBILITY.md\\\ CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: A highly extensible git implementation in pure go # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # Remove in F43 Provides: golang-gopkg-src-d-git-4 = %{version}-%{release} Obsoletes: golang-gopkg-src-d-git-4 < 4.13.1-13 %global godevelheader %{expand: Provides: golang-gopkg-src-d-git-4-devel = %{version}-%{release} Obsoletes: golang-gopkg-src-d-git-4-devel < 4.13.1-13} BuildRequires: golang(github.com/emirpasic/gods/trees/binaryheap) BuildRequires: golang(github.com/jbenet/go-context/io) BuildRequires: golang(github.com/jessevdk/go-flags) BuildRequires: golang(github.com/kevinburke/ssh_config) BuildRequires: golang(github.com/mitchellh/go-homedir) BuildRequires: golang(github.com/sergi/go-diff/diffmatchpatch) BuildRequires: golang(github.com/src-d/gcfg) BuildRequires: golang(github.com/xanzy/ssh-agent) BuildRequires: golang(golang.org/x/crypto/openpgp) BuildRequires: golang(golang.org/x/crypto/ssh) BuildRequires: golang(golang.org/x/crypto/ssh/knownhosts) BuildRequires: golang(golang.org/x/net/proxy) BuildRequires: golang(gopkg.in/check.v1) BuildRequires: golang(gopkg.in/src-d/go-billy.v4) BuildRequires: golang(gopkg.in/src-d/go-billy.v4/osfs) BuildRequires: golang(gopkg.in/src-d/go-billy.v4/util) BuildRequires: golang(gopkg.in/src-d/go-git-fixtures.v3) %if %{with check} # Tests BuildRequires: golang(github.com/armon/go-socks5) BuildRequires: golang(github.com/gliderlabs/ssh) BuildRequires: golang(github.com/google/go-cmp/cmp) BuildRequires: golang(golang.org/x/crypto/openpgp/armor) BuildRequires: golang(golang.org/x/crypto/openpgp/errors) BuildRequires: golang(golang.org/x/crypto/ssh/testdata) BuildRequires: golang(golang.org/x/text/unicode/norm) BuildRequires: golang(gopkg.in/src-d/go-billy.v4/memfs) BuildRequires: git-core %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in cli/go-git; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc _examples CODE_OF_CONDUCT.md COMPATIBILITY.md CONTRIBUTING.md README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog