Skip to content

Commit

Permalink
Merge pull request #740 from jsrain/SLE-15-GA
Browse files Browse the repository at this point in the history
display proper release notes for product (bsc#1096138)
  • Loading branch information
jsrain committed Jun 6, 2018
2 parents 7a930a0 + cd38a37 commit 2f60eb7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
Expand Up @@ -94,7 +94,8 @@ def release_notes_package
package_name = release_notes_packages.sort.find do |name|
dependencies = Yast::Pkg.ResolvableDependencies(name, :package, "").first["deps"]
dependencies.any? do |dep|
dep["provides"].to_s.match(/release-notes\(\)\s*=\s*#{product.name}\s*/)
# mind $ at the end of the regexp, otherwise for SLES you may get RNs of any SLES.* product
dep["provides"].to_s.match(/release-notes\(\)\s*=\s*#{product.name}\s*$/)
end
end
return nil if package_name.nil?
Expand Down
6 changes: 6 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 6 06:06:10 UTC 2018 - jsrain@suse.cz

- display proper release notes for product (bsc#1096138)
- 4.0.77

-------------------------------------------------------------------
Tue May 29 14:26:11 UTC 2018 - jsrain@suse.cz

Expand Down
17 changes: 9 additions & 8 deletions package/yast2.spec
@@ -1,7 +1,7 @@
#
# spec file for package yast2
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -15,11 +15,12 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name: yast2
Version: 4.0.76
Version: 4.0.77
Release: 0
Summary: YaST2 - Main Package
License: GPL-2.0
License: GPL-2.0-only
Group: System/YaST
Url: https://github.com/yast/yast-yast2
Source0: %{name}-%{version}.tar.bz2
Expand All @@ -34,8 +35,8 @@ BuildRequires: rubygem(%{rb_default_ruby_abi}:abstract_method)
# for file access using augeas
BuildRequires: rubygem(%{rb_default_ruby_abi}:cfa)
# for running scripts
BuildRequires: rubygem(%{rb_default_ruby_abi}:cheetah)
BuildRequires: update-desktop-files
BuildRequires: rubygem(%{rb_default_ruby_abi}:cheetah)
# For running RSpec tests during build
BuildRequires: rubygem(%{rb_default_ruby_abi}:rspec)
# For converting to/from punycode strings
Expand All @@ -51,8 +52,8 @@ BuildRequires: yast2-testsuite
BuildRequires: yast2-ycp-ui-bindings >= 3.2.0
# for the PackageExtractor tests, just make sure they are present,
# these should be installed in the default build anyway
BuildRequires: rpm
BuildRequires: cpio
BuildRequires: rpm

# for ag_tty (/bin/stty)
# for /usr/bin/md5sum
Expand All @@ -68,8 +69,8 @@ Requires: rubygem(%{rb_default_ruby_abi}:abstract_method)
# for file access using augeas
Requires: rubygem(%{rb_default_ruby_abi}:cfa)
# For converting to/from punycode strings
Requires: rubygem(%{rb_default_ruby_abi}:simpleidn)
Requires: sysconfig >= 0.80.0
Requires: rubygem(%{rb_default_ruby_abi}:simpleidn)
# for running scripts
Requires: rubygem(%{rb_default_ruby_abi}:cheetah)
# ag_ini section_private
Expand Down Expand Up @@ -102,8 +103,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: yast2-devel-doc
# for the PackageExtractor class, just make sure they are present,
# these should be present even in a very minimal installation
Requires: rpm
Requires: cpio
Requires: cpio
Requires: rpm

%description
This package contains scripts and data needed for SUSE Linux
Expand Down

0 comments on commit 2f60eb7

Please sign in to comment.