Hello community,

here is the log from the commit of package rubygem-packaging_rake_tasks for 
openSUSE:Factory checked in at 2017-09-25 13:55:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-packaging_rake_tasks (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-packaging_rake_tasks.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-packaging_rake_tasks"

Mon Sep 25 13:55:14 2017 rev:15 rq:528046 version:1.4.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-packaging_rake_tasks/rubygem-packaging_rake_tasks.changes
        2017-04-17 10:24:06.540927060 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-packaging_rake_tasks.new/rubygem-packaging_rake_tasks.changes
   2017-09-25 13:55:18.745479911 +0200
@@ -1,0 +2,32 @@
+Thu Sep 21 10:52:56 UTC 2017 - [email protected]
+
+- Added "build_dependencies" tasks to easily install the build
+  dependencies required for development (bsc#1020033)
+- 1.4.0
+
+-------------------------------------------------------------------
+Thu Jul 13 09:25:16 UTC 2017 - [email protected]
+
+- check:syntax: Do not print "Syntax OK" for every file.
+- 1.3.4
+
+-------------------------------------------------------------------
+Thu Jul 13 07:30:27 UTC 2017 - [email protected]
+
+- If package is missing in target sr repository consider it like
+  different version and do not crash ( needed for SLE15 submission
+  so part of bsc#1044312)
+- 1.3.3
+
+-------------------------------------------------------------------
+Mon May 29 11:17:34 UTC 2017 - [email protected]
+
+- If parallel.gem is available, use it to speed up check:syntax
+- 1.3.2
+
+-------------------------------------------------------------------
+Mon May 22 09:39:11 UTC 2017 - [email protected]
+
+- sync the gem2rpm.yml changes from IBS
+
+-------------------------------------------------------------------

Old:
----
  packaging_rake_tasks-1.3.1.gem

New:
----
  packaging_rake_tasks-1.4.0.gem

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

Other differences:
------------------
++++++ rubygem-packaging_rake_tasks.spec ++++++
--- /var/tmp/diff_new_pack.bav4W1/_old  2017-09-25 13:55:20.645212624 +0200
+++ /var/tmp/diff_new_pack.bav4W1/_new  2017-09-25 13:55:20.649212062 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           rubygem-packaging_rake_tasks
-Version:        1.3.1
+Version:        1.4.0
 Release:        0
 %define mod_name packaging_rake_tasks
 %define mod_full_name %{mod_name}-%{version}
@@ -25,6 +25,7 @@
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
+Suggests:       %{rubygem parallel}
 Url:            http://github.org/openSUSE/packaging_tasks
 Source:         http://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml

++++++ gem2rpm.yml ++++++
--- /var/tmp/diff_new_pack.bav4W1/_old  2017-09-25 13:55:20.697205309 +0200
+++ /var/tmp/diff_new_pack.bav4W1/_new  2017-09-25 13:55:20.697205309 +0200
@@ -23,7 +23,7 @@
 #   foo.patch: -p1
 #   bar.patch: 
 # ## used by gem2rpm
-:sources:
+# :sources:
 # - foo.desktop
 # - bar.desktop
 # :gem_install_args: '....'
@@ -68,3 +68,5 @@
 #     :post: |-
 #       /bin/echo foo
 #
+---
+:license: LGPL-2.1

++++++ packaging_rake_tasks-1.3.1.gem -> packaging_rake_tasks-1.4.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2015-05-06 10:39:43.000000000 +0200
+++ new/VERSION 2017-09-21 14:04:46.000000000 +0200
@@ -1 +1 @@
-1.3.1
+1.4.0
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tasks/build_dependencies.rake 
new/lib/tasks/build_dependencies.rake
--- old/lib/tasks/build_dependencies.rake       1970-01-01 01:00:00.000000000 
+0100
+++ new/lib/tasks/build_dependencies.rake       2017-09-21 14:04:46.000000000 
+0200
@@ -0,0 +1,61 @@
+#--
+# Yast rake
+#
+# Copyright (C) 2017 SUSE LLC
+#   This library is free software; you can redistribute it and/or modify
+# it only under the terms of version 2.1 of the GNU Lesser General Public
+# License as published by the Free Software Foundation.
+#
+#   This library is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+#   You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#++
+
+require "shellwords"
+require "open3"
+
+namespace :build_dependencies do
+  def buildrequires
+    buildrequires = []
+
+    config = Packaging::Configuration.instance
+    Dir.glob("#{config.package_dir}/*.spec").each do |spec_file|
+      # get the BuildRequires from the spec files, this also expands the RPM 
macros like %{rubygem}
+      # use Open3 as the command produces some bogus error messages on stderr 
even on success,
+      # but in case of error it provides a hint what failed
+      stdout, stderr, status = Open3.capture3("rpmspec", "-q", 
"--buildrequires", spec_file)
+
+      raise "Parsing #{spec_file} failed:\n#{stderr}" unless status.success?
+
+      buildrequires.concat(stdout.split("\n"))
+    end
+
+    # remove the duplicates and sort the packages for easier reading
+    buildrequires.uniq!
+    buildrequires.sort!
+
+    buildrequires
+  end
+
+  desc "Print the packages required for building"
+  task :list do
+    puts buildrequires.join(" ")
+  end
+
+  desc "Install the packages required for building"
+  task :install do
+    escaped_list = buildrequires.map { |b| Shellwords.escape(b) }.join(" ")
+
+    if escaped_list.empty?
+      puts "Nothing to install, *.spec file not found or no build dependencies 
defined"
+    else
+      cmd = "sudo zypper install #{escaped_list}"
+      sh(cmd)
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tasks/check_syntax.rake 
new/lib/tasks/check_syntax.rake
--- old/lib/tasks/check_syntax.rake     2015-05-06 10:39:43.000000000 +0200
+++ new/lib/tasks/check_syntax.rake     2017-09-21 14:04:46.000000000 +0200
@@ -15,6 +15,15 @@
 #++
 
 require 'rake'
+begin
+  require 'parallel'
+rescue LoadError
+  module Parallel
+    def self.each(enum, options = {}, &block)
+      enum.each(&block)
+    end
+  end
+end
 
 namespace :check do
   desc "Check syntax of all Ruby (*.rb) files"
@@ -22,7 +31,8 @@
     puts "* Starting syntax check..." if verbose
 
     # check all *.rb files
-    Dir.glob("**/*.rb").each do |file|
+    files = Dir.glob("**/*.rb")
+    Parallel.each(files) do |file|
       # skip rspec files as it is not pure ruby scripts and ruby -c failed
       begin
         next unless File.readlines(file, $\, :encoding => 
"UTF-8").grep(/^#!.*rspec/).empty?
@@ -34,7 +44,8 @@
       end
 
       res = `ruby -c -w #{file}`
-      puts "#{file}: #{res}" if verbose
+      res = res.lines.reject { |s| s == "Syntax OK\n" }.join ""
+      puts res unless res.empty?
       raise "Syntax error found in file '#{file}'" unless $?.exitstatus.zero?
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tasks/osc.rake new/lib/tasks/osc.rake
--- old/lib/tasks/osc.rake      2015-05-06 10:39:43.000000000 +0200
+++ new/lib/tasks/osc.rake      2017-09-21 14:04:46.000000000 +0200
@@ -78,7 +78,12 @@
     begin
       file = Tempfile.new('yast-rake')
       file.close
-      sh "osc -A '#{obs_api}' cat '#{obs_sr_project}' '#{package_name}' 
'#{package_name}.spec' > #{file.path}"
+      sh "osc -A '#{obs_api}' cat '#{obs_sr_project}' '#{package_name}' 
'#{package_name}.spec' > #{file.path}" do |ok, res|
+        if !ok
+          puts "Version cannot be compared, so act like it is different" if 
verbose
+          return true
+        end
+      end
       original_version = version_from_spec(file.path)
       new_version      = version_from_spec(updated_spec_file)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-04-10 16:24:15.000000000 +0200
+++ new/metadata        2017-09-21 14:05:52.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: packaging_rake_tasks
 version: !ruby/object:Gem::Version
-  version: 1.3.1
+  version: 1.4.0
 platform: ruby
 authors:
 - Josef Reidinger
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-04-10 00:00:00.000000000 Z
+date: 2017-09-21 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
@@ -36,6 +36,7 @@
 - lib/packaging.rb
 - lib/packaging/configuration.rb
 - lib/packaging/tasks.rb
+- lib/tasks/build_dependencies.rake
 - lib/tasks/check_changelog.rake
 - lib/tasks/check_committed.rake
 - lib/tasks/check_doc.rake
@@ -45,7 +46,7 @@
 - lib/tasks/osc.rake
 - lib/tasks/package.rake
 - lib/tasks/tarball.rake
-homepage: http://github.org/openSUSE/packaging_tasks
+homepage: https://github.com/openSUSE/packaging_rake_tasks
 licenses:
 - LGPL v2.1
 metadata: {}
@@ -65,9 +66,10 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.4.5.2
+rubygems_version: 2.2.5
 signing_key: 
 specification_version: 4
 summary: Rake tasks providing tasks to package project in git and integration 
with
   build service
 test_files: []
+has_rdoc: 


Reply via email to