Hello community,
here is the log from the commit of package rubygem-capistrano for
openSUSE:Factory checked in at 2014-10-14 07:11:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-capistrano (Old)
and /work/SRC/openSUSE:Factory/.rubygem-capistrano.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-capistrano"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-capistrano/rubygem-capistrano.changes
2014-05-21 16:23:59.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-capistrano.new/rubygem-capistrano.changes
2014-10-14 07:12:33.000000000 +0200
@@ -1,0 +2,10 @@
+Mon Oct 13 05:46:06 UTC 2014 - [email protected]
+
+- adapt to new rubygem packaging
+
+-------------------------------------------------------------------
+Sun Oct 12 09:42:11 UTC 2014 - [email protected]
+
+- adapt to new rubygem packaging style
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-capistrano.spec ++++++
--- /var/tmp/diff_new_pack.P7DWN1/_old 2014-10-14 07:12:34.000000000 +0200
+++ /var/tmp/diff_new_pack.P7DWN1/_new 2014-10-14 07:12:34.000000000 +0200
@@ -21,11 +21,10 @@
Release: 0
%define mod_name capistrano
%define mod_full_name %{mod_name}-%{version}
-%define mod_branch -%{version}
-%define mod_weight 30201
-
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: ruby-macros >= 3
+BuildRequires: %{rubygem gem2rpm}
+BuildRequires: %{ruby}
+BuildRequires: ruby-macros >= 5
BuildRequires: update-alternatives
Url: http://capistranorb.com/
Source: http://rubygems.org/gems/%{mod_full_name}.gem
@@ -38,80 +37,16 @@
Capistrano is a utility and framework for executing commands in parallel on
multiple remote machines, via SSH.
-%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.
-
%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
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/cap{,%{mod_branch}}
-touch %{buildroot}%{_sysconfdir}/alternatives/cap
-ln -s %{_sysconfdir}/alternatives/cap %{buildroot}%{_bindir}/cap
-
-mv %{buildroot}%{_bindir}/capify{,%{mod_branch}}
-touch %{buildroot}%{_sysconfdir}/alternatives/capify
-ln -s %{_sysconfdir}/alternatives/capify %{buildroot}%{_bindir}/capify
-
-mkdir -p %{buildroot}%{_docdir}/%{name}
-ln -s %{gem_base}/gems/%{mod_full_name}/CHANGELOG.md
%buildroot/%{_docdir}/%{name}/CHANGELOG.md
-ln -s %{gem_base}/gems/%{mod_full_name}/LICENSE.txt
%buildroot/%{_docdir}/%{name}/LICENSE.txt
-ln -s %{gem_base}/gems/%{mod_full_name}/README.md
%buildroot/%{_docdir}/%{name}/README.md
-
-%post
-/usr/sbin/update-alternatives --install \
- %{_bindir}/cap cap %{_bindir}/cap%{mod_branch} %{mod_weight}
-/usr/sbin/update-alternatives --install \
- %{_bindir}/capify capify %{_bindir}/capify%{mod_branch} %{mod_weight}
-
-%preun
-if [ "$1" = 0 ] ; then
- /usr/sbin/update-alternatives --remove cap %{_bindir}/cap%{mod_branch}
-fi
-if [ "$1" = 0 ] ; then
- /usr/sbin/update-alternatives --remove capify
%{_bindir}/capify%{mod_branch}
-fi
-
-%files
-%defattr(-,root,root,-)
-%{_docdir}/%{name}
-%{_bindir}/cap%{mod_branch}
-%{_bindir}/cap
-%ghost %{_sysconfdir}/alternatives/cap
-%{_bindir}/capify%{mod_branch}
-%{_bindir}/capify
-%ghost %{_sysconfdir}/alternatives/capify
-%{gem_base}/cache/%{mod_full_name}.gem
-%{gem_base}/gems/%{mod_full_name}/
-%exclude %{gem_base}/gems/%{mod_full_name}/spec
-%{gem_base}/specifications/%{mod_full_name}.gemspec
-
-%files doc
-%defattr(-,root,root,-)
-%doc %{gem_base}/doc
-
-%files testsuite
-%defattr(-,root,root,-)
-%{gem_base}/gems/%{mod_full_name}/spec
+%gem_install \
+ --symlink-binaries \
+ --doc-files="CHANGELOG.md LICENSE.txt README.md" \
+ -f
+
+%gem_packages
%changelog
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]