Hello community,

here is the log from the commit of package rubygem-nokogiri for 
openSUSE:Factory checked in at 2014-10-20 07:26:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-nokogiri (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-nokogiri.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-nokogiri"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-nokogiri/rubygem-nokogiri.changes        
2014-09-17 17:24:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-nokogiri.new/rubygem-nokogiri.changes   
2014-10-20 07:26:51.000000000 +0200
@@ -1,0 +2,5 @@
+Wed Oct 15 07:24:48 UTC 2014 - [email protected]
+
+- adapt to new rubygem packaging
+
+-------------------------------------------------------------------

New:
----
  gem2rpm.yml

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

Other differences:
------------------
++++++ rubygem-nokogiri.spec ++++++
--- /var/tmp/diff_new_pack.M6MvAm/_old  2014-10-20 07:26:52.000000000 +0200
+++ /var/tmp/diff_new_pack.M6MvAm/_new  2014-10-20 07:26:52.000000000 +0200
@@ -16,28 +16,33 @@
 #
 
 
+#
+# 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-nokogiri
 Version:        1.6.3.1
 Release:        0
 %define mod_name nokogiri
 %define mod_full_name %{mod_name}-%{version}
-%define mod_branch -%{version}
-%define mod_weight 10631
-
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 3
-Requires:       ruby >= 1.9.2
-BuildRequires:  ruby-devel >= 1.9.2
-BuildRequires:  update-alternatives
-BuildRequires:  rubygem(rdoc) > 3.10
-# MANUAL BEGIN
+# MANUAL
+BuildRequires:  %{rubygem mini_portile}
 BuildRequires:  libxml2-devel >= 2.6.21
 BuildRequires:  libxslt-devel
-BuildRequires:  rubygem(mini_portile)
-# MANUAL END
+# /MANUAL
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{rubydevel >= 1.9.2}
+BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  %{rubygem rdoc > 3.10}
+BuildRequires:  ruby-macros >= 5
+BuildRequires:  update-alternatives
 Url:            http://nokogiri.org
 Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        rubygem-nokogiri-rpmlintrc
+Source2:        gem2rpm.yml
 Summary:        Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
 License:        MIT
 Group:          Development/Languages/Ruby
@@ -49,74 +54,23 @@
 XML is like violence - if it doesn’t solve your problems, you are not using
 enough of it.
 
-%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
 # MANUAL
 export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
-%gem_install -f
+# /MANUAL
+%gem_install \
+  --symlink-binaries \
+  --doc-files="CHANGELOG.rdoc README.rdoc" \
+  -f
 %gem_cleanup
 # MANUAL
-rm -rf %{buildroot}%{gem_base}/gems/%{mod_full_name}/ports
+rm -rf %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ports
+# /MANUAL
 
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/nokogiri{,%{mod_branch}}
-touch %{buildroot}%{_sysconfdir}/alternatives/nokogiri
-ln -s %{_sysconfdir}/alternatives/nokogiri %{buildroot}%{_bindir}/nokogiri
-
-mkdir -p %{buildroot}%{_docdir}/%{name}
-ln -s %{gem_base}/gems/%{mod_full_name}/CHANGELOG.rdoc 
%buildroot/%{_docdir}/%{name}/CHANGELOG.rdoc
-ln -s %{gem_base}/gems/%{mod_full_name}/README.rdoc 
%buildroot/%{_docdir}/%{name}/README.rdoc
-
-%post
-/usr/sbin/update-alternatives --install \
-    %{_bindir}/nokogiri nokogiri %{_bindir}/nokogiri%{mod_branch} %{mod_weight}
-
-%preun
-if [ "$1" = 0 ] ; then
-    /usr/sbin/update-alternatives --remove nokogiri 
%{_bindir}/nokogiri%{mod_branch}
-fi
-
-%files
-%defattr(-,root,root,-)
-%{_docdir}/%{name}
-%{_bindir}/nokogiri%{mod_branch}
-%{_bindir}/nokogiri
-%ghost %{_sysconfdir}/alternatives/nokogiri
-%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
-%{gem_base}/gems/%{mod_full_name}/
-%exclude %{gem_base}/gems/%{mod_full_name}/test
-%{gem_base}/specifications/%{mod_full_name}.gemspec
-%{gem_extensions}/%{mod_full_name}
-
-%files doc
-%defattr(-,root,root,-)
-%doc %{gem_base}/doc/
-
-%files testsuite
-%defattr(-,root,root,-)
-%{gem_base}/gems/%{mod_full_name}/test
+%gem_packages
 
 %changelog

++++++ gem2rpm.yml ++++++
# ---
# ## used by gem2rpm
# :summary: this is a custom summary
# ## used by gem2rpm
# :description: |-
#   this is a custom description
#
#   it can be multiline
# ## used by gem2rpm
# :license: MIT or Ruby
# ## used by gem2rpm and gem_packages
# :version_suffix: -x_y
# ## used by gem2rpm and gem_packages
# :disable_docs: true
# ## used by gem2rpm
# :disable_automatic_rdoc_dep: true
# ## used by gem2rpm
:preamble: |-
  BuildRequires:  libxml2-devel >= 2.6.21
  BuildRequires:  libxslt-devel
  BuildRequires:  %{rubygem mini_portile}
#   BuildRequires: foobar
#   Requires: foobar
# ## used by gem2rpm
# :patches:
#   foo.patch: -p1
#   bar.patch: 
# ## used by gem2rpm
:sources:
  - rubygem-nokogiri-rpmlintrc
# - foo.desktop
# - bar.desktop
# :gem_install_args: '....'
# ## used by gem2rpm
:pre_install: |-
  export NOKOGIRI_USE_SYSTEM_LIBRARIES=1
:post_install: |-
  rm -rf %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ports
#   %if 0%{?use_system_libev}
#   export USE_VENDORED_LIBEV="no"
#   %endif
# ## used by gem2rpm
# :post_install: |-
#   # delete custom files here or do other fancy stuff
#   install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse
# ## used by gem2rpm
# :testsuite_command: |-
#   (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test)
# ## used by gem2rpm
# :filelist: |-
#   /usr/bin/gem2rpm-opensuse
# ## used by gem2rpm
# :scripts:
#   :post: |-
#     /bin/echo foo
# ## used by gem_packages
# :main:
#   :preamble: |-
#     Requires: util-linux
#     Recommends: pwgen
#   :filelist: |-
#     /usr/bin/gem2rpm-opensuse
# ## used by gem_packages
# :custom:
#   apache:
#     :preamble: |-
#       Requires: .....
#     :filelist: |-
#       /etc/apache2/conf.d/passenger.conf
#     :summary: Custom summary is optional
#     :description: |-
#       Custom description is optional
#
#       bar
#     :post: |-
#       /bin/echo foo
#
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to