Hello community, here is the log from the commit of package rubygem-hiera for openSUSE:Factory checked in at 2014-12-01 14:01:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-hiera (Old) and /work/SRC/openSUSE:Factory/.rubygem-hiera.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-hiera" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-hiera/rubygem-hiera.changes 2014-10-23 14:20:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-hiera.new/rubygem-hiera.changes 2014-12-01 14:01:48.000000000 +0100 @@ -1,0 +2,11 @@ +Sat Nov 29 20:11:55 UTC 2014 - tampakrap@opensuse.org + +- Move the Provides to the versioned package +- Fix the requirements between the versioned and unversioned packages + +------------------------------------------------------------------- +Wed Nov 26 21:53:54 UTC 2014 - tampakrap@opensuse.org + +- Convert to the new ruby packaging schema + +------------------------------------------------------------------- Old: ---- hiera.yaml New: ---- gem2rpm.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-hiera.spec ++++++ --- /var/tmp/diff_new_pack.MuNRKf/_old 2014-12-01 14:01:49.000000000 +0100 +++ /var/tmp/diff_new_pack.MuNRKf/_new 2014-12-01 14:01:49.000000000 +0100 @@ -16,90 +16,55 @@ # -%define mod_name hiera -%define mod_full_name %{mod_name}-%{version} -%define mod_branch -%{version} -%define mod_weight 1 +# +# 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-hiera Version: 1.3.4 Release: 0 +%define mod_name hiera +%define mod_full_name %{mod_name}-%{version} +# MANUAL +PreReq: rubygem(%{mod_name}) +# /MANUAL +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 +BuildRequires: update-alternatives +Url: https://github.com/puppetlabs/hiera +Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1: %{mod_name}.1 +Source2: gem2rpm.yml Summary: Light weight hierarchical data store License: Apache-2.0 Group: Development/Languages/Ruby -Url: https://github.com/puppetlabs/hiera -Source0: http://rubygems.org/gems/%{mod_full_name}.gem -Source1: hiera.1 -Source2: hiera.yaml -BuildRequires: ruby-macros >= 1 -# FIXME: use proper Requires(pre/post/preun/...) PreReq: update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -A pluggable data store for hierarcical data - -%package doc -Summary: RDoc documentation for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description doc -Documentation generated at gem installation time. -Usually in RDoc and RI formats. - -%package testsuite -Summary: Test suite for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description testsuite -Test::Unit or RSpec files, useful for developers. +A pluggable data store for hierarcical data. %prep -#gem_unpack -#if you need patches, apply them here and replace the # with a % sign in the surrounding lines -#gem_build %build %install -%{gem_install} -f -install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/hiera.1 -install -Dm0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/hiera.yaml -mv %{buildroot}%{_bindir}/hiera{,%{mod_branch}} -ln -s hiera%{mod_branch} %{buildroot}%{_bindir}/hiera -mkdir -p %{buildroot}%{_docdir}/%{name} -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/COPYING %{buildroot}/%{_docdir}/%{name}/COPYING -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %{buildroot}/%{_docdir}/%{name}/README.md -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %{buildroot}/%{_docdir}/%{name}/LICENSE - -%post -%{_sbindir}/update-alternatives --install \ - %{_bindir}/hiera hiera %{_bindir}/hiera%{mod_branch} %{mod_weight} - -%preun -if [ "$1" = 0 ] ; then - %{_sbindir}/update-alternatives --remove hiera %{_bindir}/hiera%{mod_branch} -fi +%gem_install \ + --symlink-binaries \ + --doc-files="COPYING LICENSE README.md" \ + -f +# MANUAL +install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{mod_name}.1 +# /MANUAL %files %defattr(-,root,root,-) -%config(noreplace) %{_sysconfdir}/hiera.yaml -%{_docdir}/%{name} -%{_bindir}/hiera%{mod_branch} -%ghost %{_bindir}/hiera -%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ -%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec -%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec -%{_mandir}/man1/hiera.1* +%{_mandir}/man1/%{mod_name}.1.gz -%files doc -%defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ - -%files testsuite -%defattr(-,root,root,-) -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec +%gem_packages %changelog ++++++ gem2rpm.yml ++++++ :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}.1' :post_install: |- install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{mod_name}.1 :filelist: |- %{_mandir}/man1/%{mod_name}.1.gz -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org