]> git.pld-linux.org Git - packages/hub.git/commitdiff
up to 2.2.3; rewritten in go, requires go1.5 to compile master auto/th/hub-2.2.3-1
authorElan Ruusamäe <glen@delfi.ee>
Wed, 27 Apr 2016 13:56:50 +0000 (16:56 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 27 Apr 2016 13:56:50 +0000 (16:56 +0300)
hub.spec

index 00fb64a8b09a1b04f48af26fe41fc8315df3dfdc..fba4cfd67193bf8d4dc69944f06a0ac64c762067 100644 (file)
--- a/hub.spec
+++ b/hub.spec
@@ -1,17 +1,20 @@
-Summary:       hub makes git better with github
+Summary:       Command-line wrapper for git that makes you better at GitHub
 Name:          hub
-Version:       1.12.0
+Version:       2.2.3
 Release:       1
-License:       BSD
+License:       MIT
 Group:         Development/Tools
 Source0:       https://github.com/github/hub/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 87d6ba3ffd513814dedf6a6b6e07e41f
+# Source0-md5: 6675992ddd16d186eac7ba4484d57f5b
 URL:           http://hub.github.com/
+BuildRequires: golang >= 1.5
+BuildRequires: bash
 Requires:      git-core >= 1.7.3
-Requires:      ruby >= 1:1.8.6
-BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# go stuff
+%define _enable_debug_packages 0
+
 %description
 hub is a command line tool that wraps git in order to extend it with
 extra features and commands that make working with GitHub easier.
@@ -22,11 +25,14 @@ shell and get all the usual hub features.
 %prep
 %setup -q
 
+%build
+bash -x ./script/build -o hub
+
 %install
 rm -rf $RPM_BUILD_ROOT
-rake install \
-       prefix=%{_prefix} \
-       DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+install -p hub $RPM_BUILD_ROOT%{_bindir}
+cp -p man/hub.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.101854 seconds and 4 git commands to generate.