Hello community,

here is the log from the commit of package rubygem-RedCloth for 
openSUSE:Factory checked in at 2014-02-12 20:54:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-RedCloth (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-RedCloth.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-RedCloth"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-RedCloth/rubygem-RedCloth.changes        
2012-07-23 10:39:40.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-RedCloth.new/rubygem-RedCloth.changes   
2014-02-12 20:54:30.000000000 +0100
@@ -1,0 +2,5 @@
+Sat Jan 18 13:36:53 UTC 2014 - [email protected]
+
+- use new macros
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-RedCloth.spec ++++++
--- /var/tmp/diff_new_pack.cP05ni/_old  2014-02-12 20:54:30.000000000 +0100
+++ /var/tmp/diff_new_pack.cP05ni/_new  2014-02-12 20:54:30.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-RedCloth
 #
-# Copyright (c) 2012 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
@@ -21,20 +21,21 @@
 Release:        0
 %define mod_name RedCloth
 %define mod_full_name %{mod_name}-%{version}
-#
-#
+%define mod_branch -%{version}
+%define mod_weight 40209
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  fastjar
-BuildRequires:  fdupes
-BuildRequires:  rubygems_with_buildroot_patch
-%rubygems_requires
-#
+BuildRequires:  ruby-devel
+BuildRequires:  ruby-macros >= 3
+BuildRequires:  update-alternatives
+BuildRequires:  rubygem(rdoc) > 3.10
 Url:            http://redcloth.org
-Source:         %{mod_full_name}.gem
-#
+Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Summary:        Textile parser for Ruby
 License:        BSD-3-Clause
 Group:          Development/Languages/Ruby
+PreReq:         update-alternatives
 
 %description
 Textile parser for Ruby.
@@ -57,29 +58,52 @@
 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}
+%gem_install -f
 %gem_cleanup
-%fdupes 
%{buildroot}/%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
-
-%clean
-%{__rm} -rf %{buildroot}
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/redcloth{,%{mod_branch}}
+touch %{buildroot}%{_sysconfdir}/alternatives/redcloth
+ln -s %{_sysconfdir}/alternatives/redcloth %{buildroot}%{_bindir}/redcloth
+
+mkdir -p %{buildroot}%{_docdir}/%{name}
+ln -s %{gem_base}/gems/%{mod_full_name}/CHANGELOG 
%buildroot/%{_docdir}/%{name}/CHANGELOG
+ln -s %{gem_base}/gems/%{mod_full_name}/COPYING 
%buildroot/%{_docdir}/%{name}/COPYING
+ln -s %{gem_base}/gems/%{mod_full_name}/README.rdoc 
%buildroot/%{_docdir}/%{name}/README.rdoc
+
+%post
+/usr/sbin/update-alternatives --install \
+    %{_bindir}/redcloth redcloth %{_bindir}/redcloth%{mod_branch} %{mod_weight}
+
+%preun
+if [ "$1" = 0 ] ; then
+    /usr/sbin/update-alternatives --remove redcloth 
%{_bindir}/redcloth%{mod_branch}
+fi
 
 %files
 %defattr(-,root,root,-)
+%{_docdir}/%{name}
+%{_bindir}/redcloth%{mod_branch}
 %{_bindir}/redcloth
-%{_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/redcloth
+%{gem_base}/cache/%{mod_full_name}.gem
+%{gem_base}/gems/%{mod_full_name}/
+%{gem_extensions}/%{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]

Reply via email to