Hello community, here is the log from the commit of package rubygem-yast-rake for openSUSE:Factory checked in at 2015-10-25 15:10:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-yast-rake (Old) and /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-yast-rake" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-yast-rake/rubygem-yast-rake.changes 2015-05-07 08:27:57.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-yast-rake.new/rubygem-yast-rake.changes 2015-10-25 15:10:17.000000000 +0100 @@ -1,0 +2,5 @@ +Fri Oct 16 14:59:38 UTC 2015 - igonzalezs...@suse.com + +- add a submit_to method to simplify OBS configuration + +------------------------------------------------------------------- Old: ---- yast-rake-0.2.3.gem New: ---- yast-rake-0.2.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-yast-rake.spec ++++++ --- /var/tmp/diff_new_pack.s4FeaT/_old 2015-10-25 15:10:18.000000000 +0100 +++ /var/tmp/diff_new_pack.s4FeaT/_new 2015-10-25 15:10:18.000000000 +0100 @@ -17,7 +17,7 @@ Name: rubygem-yast-rake -Version: 0.2.3 +Version: 0.2.4 Release: 0 %define mod_name yast-rake %define mod_full_name %{mod_name}-%{version} ++++++ yast-rake-0.2.3.gem -> yast-rake-0.2.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/VERSION new/VERSION --- old/VERSION 2015-04-29 10:53:52.000000000 +0200 +++ new/VERSION 2015-10-20 13:07:48.000000000 +0200 @@ -1 +1 @@ -0.2.3 +0.2.4 Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/data/targets.yml new/data/targets.yml --- old/data/targets.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/data/targets.yml 2015-10-20 13:07:48.000000000 +0200 @@ -0,0 +1,18 @@ +:sle12: + obs_api: "https://api.suse.de/" + obs_project: "Devel:YaST:SLE-12" + obs_sr_project: "SUSE:SLE-12:Update" + obs_target: "SLE_12" +:leap_42_1: + obs_api: "https://api.opensuse.org" + obs_target: "openSUSE_Leap_42.1" + obs_sr_project: "openSUSE:Leap:42.1" + obs_project: "YaST:openSUSE:42.1" +:sle12sp1: + obs_api: "https://api.suse.de/" + obs_project: "Devel:YaST:Head" + obs_sr_project: "SUSE:SLE-12-SP1:GA" + obs_target: "SLE-12-SP1" +:factory: + obs_project: "YaST:Head" + obs_sr_project: "openSUSE:Factory" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yast/rake.rb new/lib/yast/rake.rb --- old/lib/yast/rake.rb 2015-04-29 10:53:52.000000000 +0200 +++ new/lib/yast/rake.rb 2015-10-20 13:07:48.000000000 +0200 @@ -16,24 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #++ require "packaging" - -# create wrapper to Packaging Configuration -module Yast - # Yast::Task module contains helper methods - module Tasks - def self.configuration(&block) - ::Packaging.configuration(&block) - end - - # read the version from spec file - def self.spec_version - # use the first *.spec file found, assume all spec files - # contain the same version - File.readlines(Dir.glob("package/*.spec").first) - .grep(/^\s*Version:\s*/).first.sub("Version:", "").strip - end - end -end +require_relative "tasks" # yast integration testing takes too long and require osc:build so it create # circle, so replace test dependency with test:unit @@ -43,9 +26,10 @@ task.enhance(prerequisites) +yast_submit = ENV["YAST_SUBMIT"] || :factory +Yast::Tasks.submit_to(yast_submit.to_sym) + Yast::Tasks.configuration do |conf| - conf.obs_project = "YaST:Head" - conf.obs_sr_project = "openSUSE:Factory" conf.package_name = File.read("RPMNAME").strip if File.exist?("RPMNAME") conf.version = Yast::Tasks.spec_version if !Dir.glob("package/*.spec").empty? conf.skip_license_check << /spell.dict$/ # skip license check for spelling dictionaries diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/yast/tasks.rb new/lib/yast/tasks.rb --- old/lib/yast/tasks.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/yast/tasks.rb 2015-10-20 13:07:48.000000000 +0200 @@ -0,0 +1,51 @@ +#-- +# Yast rake +# +# Copyright (C) 2009-2013 Novell, Inc. +# 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 "yaml" + +# create wrapper to Packaging Configuration +module Yast + # Yast::Task module contains helper methods + module Tasks + # Targets definition + TARGETS_FILE = File.expand_path("../../../data/targets.yml", __FILE__) + + def self.configuration(&block) + ::Packaging.configuration(&block) + end + + # read the version from spec file + def self.spec_version + # use the first *.spec file found, assume all spec files + # contain the same version + File.readlines(Dir.glob("package/*.spec").first) + .grep(/^\s*Version:\s*/).first.sub("Version:", "").strip + end + + def self.submit_to(target, file = TARGETS_FILE) + targets = YAML.load_file(file) + config = targets[target] + raise "Not configuration found for #{target}" if config.nil? + Yast::Tasks.configuration do |conf| + config.each do |meth, val| + conf.public_send("#{meth}=", val) + end + end + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-04-29 10:55:55.000000000 +0200 +++ new/metadata 2015-10-20 13:08:00.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: yast-rake version: !ruby/object:Gem::Version - version: 0.2.3 + version: 0.2.4 platform: ruby authors: - Josef Reidinger autorequire: bindir: bin cert_chain: [] -date: 2015-04-29 00:00:00.000000000 Z +date: 2015-10-20 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -49,6 +49,7 @@ files: - COPYING - VERSION +- data/targets.yml - lib/tasks/install.rake - lib/tasks/pot.rake - lib/tasks/run.rake @@ -58,6 +59,7 @@ - lib/tasks/test_unit.rake - lib/tasks/version.rake - lib/yast/rake.rb +- lib/yast/tasks.rb homepage: http://github.org/openSUSE/yast-rake licenses: - LGPL v2.1 @@ -78,7 +80,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.2.2 +rubygems_version: 2.4.5.1 signing_key: specification_version: 4 summary: Rake tasks providing basic work-flow for Yast development