68 lines
2.9 KiB
Ruby
68 lines
2.9 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
#
|
|
# Copyright (c) 2022-2024 SUSE LLC
|
|
#
|
|
# All Rights Reserved.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
# under the terms of version 2 of the GNU General Public License as published
|
|
# by the Free Software Foundation.
|
|
#
|
|
# This program 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 General Public License for
|
|
# more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program; if not, contact SUSE LLC.
|
|
#
|
|
# To contact SUSE LLC about this file by physical or electronic mail, you may
|
|
# find current contact information at www.suse.com.
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = "agama-yast"
|
|
|
|
# in a git checkout?
|
|
if File.exist?(File.join(__dir__, "../.git"))
|
|
# the version is <version_tag>.devel<number_of_commits_since_the_tag>
|
|
# or just <version_tag> if there are no additional commits
|
|
spec.version = `git describe --tags --match "v[0-9]*"`.chomp.sub(/^v/, "").sub(/-([0-9]+)-g(\h+)\Z/, ".devel\\1.\\2")
|
|
else
|
|
# running in yupdate script, use a fake version
|
|
spec.version = "99.yupdate"
|
|
end
|
|
|
|
spec.summary = "YaST integration service for Agama"
|
|
spec.description = "D-Bus service exposing some YaST features that are useful for Agama."
|
|
spec.author = "YaST Team"
|
|
spec.email = "yast-devel@opensuse.org"
|
|
spec.homepage = "https://github.com/agama-project/agama"
|
|
spec.license = "GPL-2.0-only"
|
|
spec.files = Dir["lib/**/*.rb", "bin/*", "share/*", "conf.d/*", "install.sh"]
|
|
spec.executables = ["agamactl", "agama-autoyast"]
|
|
spec.metadata = { "rubygems_mfa_required" => "true" }
|
|
|
|
spec.required_ruby_version = ">= 2.5.0"
|
|
|
|
spec.add_development_dependency "packaging_rake_tasks", "~> 1.5.1"
|
|
spec.add_development_dependency "rake", "~> 13.0.6"
|
|
spec.add_development_dependency "rspec", "~> 3.11.0"
|
|
spec.add_development_dependency "simplecov", "~> 0.21.2"
|
|
spec.add_development_dependency "simplecov-lcov", "~> 0.8.0"
|
|
spec.add_development_dependency "yard", "~>0.9.0"
|
|
spec.add_dependency "cfa", "~> 1.0.2"
|
|
spec.add_dependency "cfa_grub2", "~> 2.0.0"
|
|
spec.add_dependency "cheetah", "~> 1.0.0"
|
|
spec.add_dependency "eventmachine", "~> 1.2.7"
|
|
spec.add_dependency "fast_gettext", "~> 2.3.0"
|
|
spec.add_dependency "nokogiri", "~> 1.15"
|
|
spec.add_dependency "rexml", "~> 3.2"
|
|
spec.add_dependency "ruby-dbus", ">= 0.23.1", "< 1.0"
|
|
spec.add_dependency "csv", "~> 3.2"
|
|
spec.add_dependency "prime", "~> 0.1"
|
|
spec.add_dependency "logger", "~> 1.5"
|
|
# here we have problem as ruby3.2 on SLFO does not provide rubygem-ostruct, but newer ruby will separate it after 3.4
|
|
# but dynamic dependencies are not possible in gemspec
|
|
spec.add_dependency "ostruct", "~> 0.6.1" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.5")
|
|
end
|