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.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-hub.new/rubygem-hub.changes 2016-09-17 14:39:22.000000000 +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.000000000 +0200 +++ /var/tmp/diff_new_pack.qSNnJG/_new 2016-09-17 14:39:23.000000000 +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.000000000 +0200 +++ /var/tmp/diff_new_pack.qSNnJG/_new 2016-09-17 14:39:23.000000000 +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: |- + %{_datadir}/zsh/site-functions/_%{mod_name}