diff --git a/.gitignore b/.gitignore index ddf67ff..c777668 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/gofed-cab0f0b.tar.gz +/gofed-62b0051.tar.gz diff --git a/gofed.spec b/gofed.spec index fd8fc75..589f41f 100644 --- a/gofed.spec +++ b/gofed.spec @@ -3,11 +3,11 @@ %global provider_tld com %global project ingvagabund %global repo gofed -%global commit cab0f0b7fc74c7f7eb38b597c30347a87c83c832 +%global commit 62b0051f440eea9837b89c39fa49667d597b87b4 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: gofed -Version: 0 +Version: 0.0.1 Release: 0.1.git%{shortcommit}%{?dist} Summary: Tool for development of golang devel packages License: GPLv2+ @@ -15,7 +15,7 @@ URL: https://github.com/%{project}/%{repo} Source0: https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz ExclusiveArch: %{ix86} x86_64 %{arm} -BuildRequires: golang +BuildRequires: golang, python >= 2.7.5 Requires: python >= 2.7.5, bash, wget, rpmdevtools, rpmlint Requires: fedpkg, koji, coreutils, rpm-build, openssh-clients, tar Requires: python-PyGithub, bash-completion @@ -43,7 +43,8 @@ mkdir -p %{buildroot}/usr/share/man/man1 cp man/gofed-help.1 %{buildroot}/usr/share/man/man1/gofed.1 # copy scripts mkdir -p %{buildroot}/usr/share/%{name} -cp *.sh %{buildroot}/usr/share/%{name}/. +cp bitbucket2gospec.sh gen_bash_completion.sh github2gospec.sh \ + googlecode2gospec.sh %{buildroot}/usr/share/%{name}/. cp *.py %{buildroot}/usr/share/%{name}/. cp -r modules %{buildroot}/usr/share/%{name}/. cp parseGo %{buildroot}/usr/share/%{name}/. @@ -59,9 +60,25 @@ mkdir -p %{buildroot}/var/lib/%{name} install -m 755 -d %{buildroot}/var/lib/%{name} install -m 755 -d %{buildroot}/usr/bin ln -s /usr/share/%{name}/%{name} %{buildroot}/usr/bin/%{name} +# symlinks +cp build gcp pull push scratch-build update bbobranches %{buildroot}/usr/share/%{name}/. + +%check +function gofed { %{buildroot}/usr/share/%{name}/%{name} "$@" --dry; } +gofed scratch-build +gofed build +gofed pull +gofed push +gofed update +gofed gcpmaster +gofed tools --git-reset +gofed tools --bbo --dry test +gofed tools --bbo --wait --dry test +gofed tools --waitbbo --dry test +gofed wizard --scratch --dry %files -%doc README.md LICENSE +%doc README.md LICENSE MANUAL.md %config(noreplace) /usr/share/%{name}/config/gofed.conf /etc/bash_completion.d/%{name} /usr/share/%{name} @@ -70,6 +87,10 @@ ln -s /usr/share/%{name}/%{name} %{buildroot}/usr/bin/%{name} /usr/bin/%{name} %changelog +* Thu Apr 02 2015 jchaloup - 0.0.1-0.1.git62b0051 +- Update to version 0.0.1 + related: #1204614 + * Mon Mar 23 2015 jchaloup - 0-0.1.gitcab0f0b - Initial commit for Fedora resolves: #1204614 diff --git a/sources b/sources index 28cdd1a..5aa1f94 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -91c4024ca48dadffa18135dde5e736e5 gofed-cab0f0b.tar.gz +23b3c0b5113bb205170140fb58accb28 gofed-62b0051.tar.gz