Sha256: de206352749cf95a05f101623ecc05e3e4be043b32af25ad7cb1225236548dbf

Contents?: true

Size: 1.52 KB

Versions: 11

Compression:

Stored size: 1.52 KB

Contents

#--
# Copyright (C) 2015 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 "packaging"
require "libyui/tasks"

target = ENV["LIBYUI_SUBMIT"] || ENV["YAST_SUBMIT"] || :factory
Libyui::Tasks.submit_to(target.to_sym)

Libyui::Tasks.configuration do |conf|
  include Libyui::Tasks::Helpers

  # read package name from spec file name because CWD can have a -branch suffix
  main_spec = Dir.glob("package/*.spec").sort.last
  conf.package_name = main_spec[/package\/(.*)\.spec$/, 1]

  conf.version = cmake_version

  conf.skip_license_check << /bootstrap.sh|ChangeLog|Makefile.cvs/
  conf.skip_license_check << /^buildtools\/.*/
  conf.skip_license_check << /\.(cmake|gv|ui|xpm|qrc)$/
  conf.skip_license_check << /^src\/lang_fonts$/
  conf.skip_license_check << /\.mng$/ # binary
end

# load libyui-rake tasks
task_path = File.expand_path("../../tasks", __FILE__)
Dir["#{task_path}/*.rake"].each do |f|
  load f
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
libyui-rake-0.1.23 lib/libyui/rake.rb
libyui-rake-0.1.22 lib/libyui/rake.rb
libyui-rake-0.1.20 lib/libyui/rake.rb
libyui-rake-0.1.19 lib/libyui/rake.rb
libyui-rake-0.1.18 lib/libyui/rake.rb
libyui-rake-0.1.17 lib/libyui/rake.rb
libyui-rake-0.1.16 lib/libyui/rake.rb
libyui-rake-0.1.15 lib/libyui/rake.rb
libyui-rake-0.1.14 lib/libyui/rake.rb
libyui-rake-0.1.13 lib/libyui/rake.rb
libyui-rake-0.1.12 lib/libyui/rake.rb