Hello community,
here is the log from the commit of package rubygem-rest-client for
openSUSE:Factory checked in at 2014-03-30 12:14:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rest-client (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rest-client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rest-client"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rest-client/rubygem-rest-client.changes
2012-12-05 14:07:44.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-rest-client.new/rubygem-rest-client.changes
2014-03-30 12:27:44.000000000 +0200
@@ -0,0 +1,5 @@
+------------------------------------------------------------------
+Fri Mar 28 06:35:09 UTC 2014 - [email protected]
+
+- regenerate with new template
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rest-client.spec ++++++
--- /var/tmp/diff_new_pack.eEnY0B/_old 2014-03-30 12:27:46.000000000 +0200
+++ /var/tmp/diff_new_pack.eEnY0B/_new 2014-03-30 12:27:46.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-rest-client
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,36 +15,34 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
+
Name: rubygem-rest-client
Version: 1.6.7
Release: 0
%define mod_name rest-client
%define mod_full_name %{mod_name}-%{version}
-#
-Group: Development/Languages/Ruby
-License: MIT
-#
+%define mod_branch -%{version}
+%define mod_weight 10607
+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: rubygems_with_buildroot_patch
-%rubygems_requires
-# mime-types >= 1.16
-BuildRequires: rubygem-mime-types >= 1.16
-Requires: rubygem-mime-types >= 1.16
-#
-Provides: %{name}-1_6 = %{version}-%{release}
-#
+BuildRequires: ruby-macros >= 3
+BuildRequires: update-alternatives
Url: http://github.com/archiloque/rest-client
-Source: %{mod_full_name}.gem
-#
-Summary: Simple HTTP and REST client for Ruby, inspired by
microframework syntax for specifying actions
+Source: http://rubygems.org/gems/%{mod_full_name}.gem
+Summary: Simple HTTP and REST client for Ruby, inspired by
microframework
+License: MIT
+Group: Development/Languages/Ruby
+PreReq: update-alternatives
+
%description
-A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework
style of specifying actions: get, put, post, delete.
+A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework
+style of specifying actions: get, put, post, delete.
%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.
@@ -53,31 +51,54 @@
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 %{S:0}
-%clean
-%{__rm} -rf %{buildroot}
+%install
+%gem_install -f
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/restclient{,%{mod_branch}}
+touch %{buildroot}%{_sysconfdir}/alternatives/restclient
+ln -s %{_sysconfdir}/alternatives/restclient %{buildroot}%{_bindir}/restclient
+
+mkdir -p %{buildroot}%{_docdir}/%{name}
+ln -s %{gem_base}/gems/%{mod_full_name}/README.rdoc
%buildroot/%{_docdir}/%{name}/README.rdoc
+ln -s %{gem_base}/gems/%{mod_full_name}/history.md
%buildroot/%{_docdir}/%{name}/history.md
+
+%post
+/usr/sbin/update-alternatives --install \
+ %{_bindir}/restclient restclient %{_bindir}/restclient%{mod_branch}
%{mod_weight}
+
+%preun
+if [ "$1" = 0 ] ; then
+ /usr/sbin/update-alternatives --remove restclient
%{_bindir}/restclient%{mod_branch}
+fi
%files
%defattr(-,root,root,-)
+%{_docdir}/%{name}
+%{_bindir}/restclient%{mod_branch}
%{_bindir}/restclient
-%{_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
+%ghost %{_sysconfdir}/alternatives/restclient
+%{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 %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/
+%doc %{gem_base}/doc
%files testsuite
%defattr(-,root,root,-)
-%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
+%{gem_base}/gems/%{mod_full_name}/spec
%changelog
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]