commit rubygem-hub for openSUSE:Factory

2016-09-17 Thread h_root
Hello community,

here is the log from the commit of package rubygem-hub for openSUSE:Factory 
checked in at 2016-09-17 14:39:20

Comparing /work/SRC/openSUSE:Factory/rubygem-hub (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-hub.new (New)


Package is "rubygem-hub"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-hub/rubygem-hub.changes  2015-02-11 
16:46:43.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-hub.new/rubygem-hub.changes 
2016-09-17 14:39:22.0 +0200
@@ -1,0 +2,6 @@
+Fri Aug 12 16:29:34 UTC 2016 - tampak...@opensuse.org
+
+- Create -bash-completion and -zsh-completion subpackages
+- Add zsh and bash-completion as build deps so that hub doesn't own their dirs
+
+---



Other differences:
--
++ rubygem-hub.spec ++
--- /var/tmp/diff_new_pack.qSNnJG/_old  2016-09-17 14:39:23.0 +0200
+++ /var/tmp/diff_new_pack.qSNnJG/_new  2016-09-17 14:39:23.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-hub
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,12 +29,15 @@
 %define mod_name hub
 %define mod_full_name %{mod_name}-%{version}
 # MANUAL
-Requires:   rubygem(%{mod_name})
+BuildRequires: bash-completion
+BuildRequires: zsh
+PreReq:rubygem(%{mod_name})
+#!BuildIgnore: rubygem(%{mod_name})
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{rubygem gem2rpm}
-BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
+BuildRequires:  %{ruby}
+BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  update-alternatives
 Url:http://hub.github.com/
 Source: http://rubygems.org/gems/%{mod_full_name}.gem
@@ -74,14 +77,40 @@
 install -Dm444 %{buildroot}$gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
 # /MANUAL
 
+
 %files
 %defattr(-,root,root,-)
-%dir %{_datadir}/bash-completion/completions
-%dir %{_datadir}/zsh
-%dir %{_datadir}/zsh/site-functions
+%{_mandir}/man1/%{mod_name}.1.gz
+
+%package bash-completion
+Summary:   Bash completion files for hub
+PreReq:rubygem(%{mod_name})
+Requires:  bash-completion
+BuildArch: noarch
+
+# Requires:  rubygem-hub = 1.12.4
+%description bash-completion
+Bash command line completion support for hub
+
+%files bash-completion
+%defattr(-,root,root,-)
 %{_datadir}/bash-completion/completions/%{mod_name}
+
+
+%package zsh-completion
+Summary:   Zsh completion files for hub
+PreReq:rubygem(%{mod_name})
+Requires:  zsh
+BuildArch: noarch
+
+# Requires:  rubygem-hub = 1.12.4
+%description zsh-completion
+Zsh command line completion support for hub
+
+%files zsh-completion
+%defattr(-,root,root,-)
 %{_datadir}/zsh/site-functions/_%{mod_name}
-%{_mandir}/man1/%{mod_name}.1.gz
+
 
 %gem_packages
 

++ gem2rpm.yml ++
--- /var/tmp/diff_new_pack.qSNnJG/_old  2016-09-17 14:39:23.0 +0200
+++ /var/tmp/diff_new_pack.qSNnJG/_new  2016-09-17 14:39:23.0 +0200
@@ -1,10 +1,13 @@
 :main:
   :preamble: |-
 Provides:   %{mod_name} = %{version}-%{release}
-Requires:   rubygem-%{mod_name}
+Requires:   %{name}
 Recommends: rubygem(%{rb_default_ruby_abi}:%{mod_name})
 :preamble: |-
-  Requires: rubygem(%{mod_name})
+  BuildRequires: bash-completion
+  BuildRequires: zsh
+  PreReq:rubygem(%{mod_name})
+  #!BuildIgnore: rubygem(%{mod_name})
 :sources:
   - '%{mod_name}.bash_completion.sh'
   - '%{mod_name}.zsh_completion'
@@ -14,9 +17,25 @@
   gemdir="$(gem env gemdir)"
   install -Dm444 %{buildroot}$gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
 :filelist: |-
-  %dir %{_datadir}/bash-completion/completions
-  %dir %{_datadir}/zsh
-  %dir %{_datadir}/zsh/site-functions
-  %{_datadir}/bash-completion/completions/%{mod_name}
-  %{_datadir}/zsh/site-functions/_%{mod_name}
   %{_mandir}/man1/%{mod_name}.1.gz
+:custom_pkgs:
+  :bash-completion:
+:preamble: |-
+  Summary:   Bash completion files for hub
+  PreReq:rubygem(%{mod_name})
+  Requires:  bash-completion
+  BuildArch: noarch
+:description: |-
+  Bash command line completion support for hub
+:filelist: |-
+  %{_datadir}/bash-completion/completions/%{mod_name}
+  :zsh-completion:
+:preamble: |-
+  Summary:   Zsh completion files for hub
+  PreReq:rubygem(%{mod_name})
+  Requires:  zsh
+  BuildArch: noarch
+:description: |-
+  Zsh command line completion support for hub
+:filelist: |-
+  

commit rubygem-hub for openSUSE:Factory

2015-02-11 Thread h_root
Hello community,

here is the log from the commit of package rubygem-hub for openSUSE:Factory 
checked in at 2015-02-11 16:46:41

Comparing /work/SRC/openSUSE:Factory/rubygem-hub (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-hub.new (New)


Package is rubygem-hub

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-hub/rubygem-hub.changes  2014-12-05 
21:05:12.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-hub.new/rubygem-hub.changes 
2015-02-11 16:46:43.0 +0100
@@ -1,0 +2,13 @@
+Tue Feb 10 17:55:01 UTC 2015 - co...@suse.com
+
+- Version bump 1.12.4:
+  * Don't try to read existing hub token from GitHub API since that API feature
+is getting removed for security reasons. Instead, generate a new token each
+time including the current machine identifier.
+  * Ruby 2.2.0 compatibility
+  * Enable retrying entering 2FA code if previous one was invalid
+  * Friendlier error messages when bad credentials were used
+  * Encode special characters in branch names for compare command
+  * Auto-private URLs in remote add when matching your own repos
+
+---

Old:

  hub-1.12.3.gem

New:

  hub-1.12.4.gem



Other differences:
--
++ rubygem-hub.spec ++
--- /var/tmp/diff_new_pack.4GgLJO/_old  2015-02-11 16:46:44.0 +0100
+++ /var/tmp/diff_new_pack.4GgLJO/_new  2015-02-11 16:46:44.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-hub
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-hub
-Version:1.12.3
+Version:1.12.4
 Release:0
 %define mod_name hub
 %define mod_full_name %{mod_name}-%{version}
@@ -32,9 +32,9 @@
 Requires: rubygem(%{mod_name})
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros = 5
-BuildRequires:  %{ruby}
 BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  %{ruby}
+BuildRequires:  ruby-macros = 5
 BuildRequires:  update-alternatives
 Url:http://hub.github.com/
 Source: http://rubygems.org/gems/%{mod_full_name}.gem
@@ -74,7 +74,6 @@
 install -Dm444 %{buildroot}$gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
 # /MANUAL
 
-
 %files
 %defattr(-,root,root,-)
 %dir %{_datadir}/bash-completion/completions

++ hub-1.12.3.gem - hub-1.12.4.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   2014-11-28 01:34:21.0 +0100
+++ new/README.md   2014-12-25 20:45:47.0 +0100
@@ -38,19 +38,17 @@
 
 ~~~ sh
 # Download or clone the project from GitHub:
-$ git clone git://github.com/github/hub.git
+$ git clone git://github.com/github/hub.git -b 1.12-stable
 $ cd hub
-$ rake install
+$ rake install PREFIX=/usr/local
 ~~~
 
-On a Unix-based OS, this installs under `PREFIX`, which is `/usr/local` by 
default.
-
 Now you should be ready to roll:
 
 ~~~ sh
 $ hub version
-git version 1.7.6
-hub version 1.8.3
+git version 2.1.4
+hub version 1.12.4
 ~~~
 
  Windows Git Bash (msysGit) note
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile2014-11-28 01:34:21.0 +0100
+++ new/Rakefile2014-12-25 20:45:47.0 +0100
@@ -151,7 +151,13 @@
 end
 
 task :gem_release do
-  sh gem release -t
+  require File.expand_path('../lib/hub/version', __FILE__)
+  # sh git add lib/hub/version.rb
+  # sh git commit -m 'hub #{Hub::VERSION}'
+  # sh git tag v#{Hub::VERSION}
+  sh RUBYOPT= git push origin HEAD v#{Hub::VERSION}
+  sh gem build hub.gemspec
+  sh gem push hub-#{Hub::VERSION}.gem
 end
 
 desc Publish to Homebrew
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/hub/commands.rb new/lib/hub/commands.rb
--- old/lib/hub/commands.rb 2014-11-28 01:34:21.0 +0100
+++ new/lib/hub/commands.rb 2014-12-25 20:45:47.0 +0100
@@ -359,6 +359,11 @@
 args.pop
   end
 
+  if user.downcase == github_user.downcase
+user = github_user
+ssh = true
+  end
+
   args  git_url(user, repo, :private = ssh)
 end
 
@@ -704,9 +709,9 @@
 
 path = case subpage
 when 'commits'
-  /commits/#{branch_in_url(branch)}
+  /commits/#{branch_in_url(branch.short_name)}
   

commit rubygem-hub for openSUSE:Factory

2014-12-05 Thread h_root
Hello community,

here is the log from the commit of package rubygem-hub for openSUSE:Factory 
checked in at 2014-12-05 21:04:58

Comparing /work/SRC/openSUSE:Factory/rubygem-hub (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-hub.new (New)


Package is rubygem-hub

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-hub/rubygem-hub.changes  2014-12-01 
14:01:16.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-hub.new/rubygem-hub.changes 
2014-12-05 21:05:12.0 +0100
@@ -1,0 +2,6 @@
+Fri Dec  5 14:08:09 UTC 2014 - tampak...@opensuse.org
+
+- Copy the manpage from the correct dir
+- Replace the PreReq with Requires, since the former creates circular 
dependency issue
+
+---



Other differences:
--
++ rubygem-hub.spec ++
--- /var/tmp/diff_new_pack.XmdqqS/_old  2014-12-05 21:05:13.0 +0100
+++ /var/tmp/diff_new_pack.XmdqqS/_new  2014-12-05 21:05:13.0 +0100
@@ -29,7 +29,7 @@
 %define mod_name hub
 %define mod_full_name %{mod_name}-%{version}
 # MANUAL
-PreReq: rubygem(%{mod_name})
+Requires: rubygem(%{mod_name})
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  ruby-macros = 5
@@ -71,7 +71,7 @@
 install -Dm0644 %{SOURCE1} 
%{buildroot}%{_datadir}/bash-completion/completions/%{mod_name}
 install -Dm0644 %{SOURCE2} 
%{buildroot}%{_datadir}/zsh/site-functions/_%{mod_name}
 gemdir=$(gem env gemdir)
-install -Dm444 $gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
+install -Dm444 %{buildroot}$gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
 # /MANUAL
 
 

++ gem2rpm.yml ++
--- /var/tmp/diff_new_pack.XmdqqS/_old  2014-12-05 21:05:13.0 +0100
+++ /var/tmp/diff_new_pack.XmdqqS/_new  2014-12-05 21:05:13.0 +0100
@@ -4,7 +4,7 @@
 Requires:   rubygem-%{mod_name}
 Recommends: rubygem(%{rb_default_ruby_abi}:%{mod_name})
 :preamble: |-
-  PreReq: rubygem(%{mod_name})
+  Requires: rubygem(%{mod_name})
 :sources:
   - '%{mod_name}.bash_completion.sh'
   - '%{mod_name}.zsh_completion'
@@ -12,7 +12,7 @@
   install -Dm0644 %{SOURCE1} 
%{buildroot}%{_datadir}/bash-completion/completions/%{mod_name}
   install -Dm0644 %{SOURCE2} 
%{buildroot}%{_datadir}/zsh/site-functions/_%{mod_name}
   gemdir=$(gem env gemdir)
-  install -Dm444 $gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
+  install -Dm444 %{buildroot}$gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
 :filelist: |-
   %dir %{_datadir}/bash-completion/completions
   %dir %{_datadir}/zsh

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit rubygem-hub for openSUSE:Factory

2014-12-01 Thread h_root
Hello community,

here is the log from the commit of package rubygem-hub for openSUSE:Factory 
checked in at 2014-12-01 14:01:07

Comparing /work/SRC/openSUSE:Factory/rubygem-hub (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-hub.new (New)


Package is rubygem-hub

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-hub/rubygem-hub.changes  2014-11-24 
11:08:54.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-hub.new/rubygem-hub.changes 
2014-12-01 14:01:16.0 +0100
@@ -1,0 +2,16 @@
+Sat Nov 29 12:39:56 UTC 2014 - tampak...@opensuse.org
+
+- Install the manpage under %{_mandir}
+- Version bump 1.12.3:
+  * Fix hub --noop clone output for repos user has push access to
+  * Fix hub browse help output when not in any repo
+  * Tweak URI implementation for compatibility with stdlib
+  * Ensure branch names with funky characters are shell-escaped
+
+---
+Fri Nov 28 16:31:51 UTC 2014 - tampak...@opensuse.org
+
+- Fix the requires between the versioned and unversion packages
+- Move the Provides to the versioned pkg
+
+---

Old:

  hub-1.12.2.gem

New:

  hub-1.12.3.gem



Other differences:
--
++ rubygem-hub.spec ++
--- /var/tmp/diff_new_pack.NKJfBT/_old  2014-12-01 14:01:17.0 +0100
+++ /var/tmp/diff_new_pack.NKJfBT/_new  2014-12-01 14:01:17.0 +0100
@@ -24,13 +24,12 @@
 #
 
 Name:   rubygem-hub
-Version:1.12.2
+Version:1.12.3
 Release:0
 %define mod_name hub
 %define mod_full_name %{mod_name}-%{version}
 # MANUAL
-Requires: rubygem(hub)
-Provides: hub = %{version}-%{release}
+PreReq: rubygem(%{mod_name})
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  ruby-macros = 5
@@ -71,6 +70,8 @@
 # MANUAL
 install -Dm0644 %{SOURCE1} 
%{buildroot}%{_datadir}/bash-completion/completions/%{mod_name}
 install -Dm0644 %{SOURCE2} 
%{buildroot}%{_datadir}/zsh/site-functions/_%{mod_name}
+gemdir=$(gem env gemdir)
+install -Dm444 $gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
 # /MANUAL
 
 
@@ -81,6 +82,7 @@
 %dir %{_datadir}/zsh/site-functions
 %{_datadir}/bash-completion/completions/%{mod_name}
 %{_datadir}/zsh/site-functions/_%{mod_name}
+%{_mandir}/man1/%{mod_name}.1.gz
 
 %gem_packages
 

++ gem2rpm.yml ++
--- /var/tmp/diff_new_pack.NKJfBT/_old  2014-12-01 14:01:17.0 +0100
+++ /var/tmp/diff_new_pack.NKJfBT/_new  2014-12-01 14:01:17.0 +0100
@@ -1,15 +1,22 @@
+:main:
+  :preamble: |-
+Provides:   %{mod_name} = %{version}-%{release}
+Requires:   rubygem-%{mod_name}
+Recommends: rubygem(%{rb_default_ruby_abi}:%{mod_name})
+:preamble: |-
+  PreReq: rubygem(%{mod_name})
 :sources:
   - '%{mod_name}.bash_completion.sh'
   - '%{mod_name}.zsh_completion'
 :post_install: |-
   install -Dm0644 %{SOURCE1} 
%{buildroot}%{_datadir}/bash-completion/completions/%{mod_name}
   install -Dm0644 %{SOURCE2} 
%{buildroot}%{_datadir}/zsh/site-functions/_%{mod_name}
-:preamble: |-
-  Requires: rubygem(hub)
-  Provides: hub = %{version}-%{release}
+  gemdir=$(gem env gemdir)
+  install -Dm444 $gemdir/gems/%{mod_full_name}/man/%{mod_name}.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
 :filelist: |-
   %dir %{_datadir}/bash-completion/completions
   %dir %{_datadir}/zsh
   %dir %{_datadir}/zsh/site-functions
   %{_datadir}/bash-completion/completions/%{mod_name}
   %{_datadir}/zsh/site-functions/_%{mod_name}
+  %{_mandir}/man1/%{mod_name}.1.gz

++ hub-1.12.2.gem - hub-1.12.3.gem ++
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/hub/commands.rb new/lib/hub/commands.rb
--- old/lib/hub/commands.rb 2014-07-11 21:05:58.0 +0200
+++ new/lib/hub/commands.rb 2014-11-28 01:34:21.0 +0100
@@ -86,7 +86,7 @@
 abort Aborted: the origin remote doesn't point to a GitHub 
repository.
   end
 
-  unless sha = local_repo.git_command(rev-parse -q #{ref})
+  unless sha = local_repo.git_command(rev-parse -q '%s' % ref.gsub(', 
\\'))
 abort Aborted: no revision could be determined from '#{ref}'
   end
 
@@ -228,8 +228,11 @@
 else
   format = '%h (%aN, %ar)%n%w(78,3,3)%s%n%+b'
   default_message = nil
-  commit_summary = git_command log --no-color --format='%s' --cherry 
%s...%s %
-[format, base_branch, remote_branch]
+  commit_summary = git_command log --no-color --format='%s' --cherry 
'%s...%s' % [
+format,
+base_branch.to_s.gsub(', \\'),
+

commit rubygem-hub for openSUSE:Factory

2014-11-24 Thread h_root
Hello community,

here is the log from the commit of package rubygem-hub for openSUSE:Factory 
checked in at 2014-11-24 11:08:46

Comparing /work/SRC/openSUSE:Factory/rubygem-hub (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-hub.new (New)


Package is rubygem-hub

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-hub/rubygem-hub.changes  2014-11-15 
12:27:39.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-hub.new/rubygem-hub.changes 
2014-11-24 11:08:54.0 +0100
@@ -1,0 +2,5 @@
+Wed Nov 19 16:02:55 UTC 2014 - tampak...@opensuse.org
+
+- Update specfile to the new gem2spec schema
+
+---

New:

  gem2rpm.yml



Other differences:
--
++ rubygem-hub.spec ++
--- /var/tmp/diff_new_pack.sKb4hh/_old  2014-11-24 11:08:55.0 +0100
+++ /var/tmp/diff_new_pack.sKb4hh/_new  2014-11-24 11:08:55.0 +0100
@@ -16,23 +16,36 @@
 #
 
 
-%define gem_base %(%{_bindir}/ruby -rrubygems -e 'print 
Gem::Specification.new.base_dir')
-%define mod_name hub
+#
+# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
+# All sections marked as MANUAL, license headers, summaries and descriptions
+# can be maintained in that file. Please consult this file before editing any
+# of those fields
+#
+
 Name:   rubygem-hub
 Version:1.12.2
 Release:0
-Summary:Command-line wrapper for Git and GitHub
-License:MIT
-Group:  Development/Languages/Ruby
+%define mod_name hub
+%define mod_full_name %{mod_name}-%{version}
+# MANUAL
+Requires: rubygem(hub)
+Provides: hub = %{version}-%{release}
+# /MANUAL
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  ruby-macros = 5
+BuildRequires:  %{ruby}
+BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  update-alternatives
 Url:http://hub.github.com/
-Source0:https://rubygems.org/downloads/%{mod_name}-%{version}.gem
+Source: http://rubygems.org/gems/%{mod_full_name}.gem
 Source1:%{mod_name}.bash_completion.sh
 Source2:%{mod_name}.zsh_completion
-BuildRequires:  ruby-macros
-BuildRequires:  update-alternatives
-Requires:   git = 1.7.3
-Provides:   %{mod_name}
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Source3:gem2rpm.yml
+Summary:Command-line wrapper for git and GitHub
+License:MIT
+Group:  Development/Languages/Ruby
+PreReq: update-alternatives
 
 %description
 `hub` is a command line utility which adds GitHub knowledge to `git`.
@@ -44,43 +57,31 @@
 Wrapping `git`:
 $ git clone rack/rack
 Expands to:
-$ git clone git://github.com/rack/rack.git
-
-%package doc
-Summary:RDoc documentation for %{mod_name}
-Group:  Development/Languages/Ruby
-
-%description doc
-Documenation generated at gem installation time.
-Usually in RDoc and RI formats.
+$ git clone git://github.com/rack/rack.git.
 
 %prep
 
 %build
 
 %install
-%{gem_install} %{SOURCE0}
-install -D -m 0644 
%{buildroot}%{gem_base}/gems/%{mod_name}-%{version}/man/hub.1 
%{buildroot}%{_mandir}/man1/%{mod_name}.1
-%{gem_cleanup}
-install -D -m 0644 %{SOURCE1} 
%{buildroot}%{_datadir}/bash-completion/completions/%{mod_name}
-install -D -m 0644 %{SOURCE2} 
%{buildroot}%{_datadir}/zsh/site-functions/_%{mod_name}
+%gem_install \
+  --symlink-binaries \
+  --doc-files=LICENSE README.md \
+  -f
+# MANUAL
+install -Dm0644 %{SOURCE1} 
%{buildroot}%{_datadir}/bash-completion/completions/%{mod_name}
+install -Dm0644 %{SOURCE2} 
%{buildroot}%{_datadir}/zsh/site-functions/_%{mod_name}
+# /MANUAL
+
 
 %files
 %defattr(-,root,root,-)
-%{_bindir}/%{mod_name}
-%{gem_base}/cache/%{mod_name}-%{version}.gem
-%{gem_base}/gems/%{mod_name}-%{version}/
-%{gem_base}/specifications/%{mod_name}-%{version}.gemspec
-%dir %{_datadir}/bash-completion
 %dir %{_datadir}/bash-completion/completions
 %dir %{_datadir}/zsh
 %dir %{_datadir}/zsh/site-functions
 %{_datadir}/bash-completion/completions/%{mod_name}
 %{_datadir}/zsh/site-functions/_%{mod_name}
-%{_mandir}/man1/%{mod_name}.1.gz
 
-%files doc
-%defattr(-,root,root,-)
-%doc %{gem_base}/doc
+%gem_packages
 
 %changelog

++ gem2rpm.yml ++
:sources:
  - '%{mod_name}.bash_completion.sh'
  - '%{mod_name}.zsh_completion'
:post_install: |-
  install -Dm0644 %{SOURCE1} 
%{buildroot}%{_datadir}/bash-completion/completions/%{mod_name}
  install -Dm0644 %{SOURCE2} 
%{buildroot}%{_datadir}/zsh/site-functions/_%{mod_name}
:preamble: |-
  Requires: rubygem(hub)
  Provides: hub = %{version}-%{release}
:filelist: |-
  %dir %{_datadir}/bash-completion/completions
  %dir %{_datadir}/zsh
  %dir %{_datadir}/zsh/site-functions
  %{_datadir}/bash-completion/completions/%{mod_name}