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.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-hub.new/rubygem-hub.changes     
2014-11-24 11:08:54.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Nov 19 16:02:55 UTC 2014 - [email protected]
+
+- 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.000000000 +0100
+++ /var/tmp/diff_new_pack.sKb4hh/_new  2014-11-24 11:08:55.000000000 +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}
  %{_datadir}/zsh/site-functions/_%{mod_name}
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to