Skip to content

Commit

Permalink
format spec + fix build on s390
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 10, 2016
1 parent 25e132a commit 7aa5172
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
34 changes: 18 additions & 16 deletions package/yast2-bootloader.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package yast2-bootloader
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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 @@ -23,41 +23,41 @@ Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2

Group: System/YaST
License: GPL-2.0+
Url: http://github.com/yast/yast-bootloader
BuildRequires: yast2-devtools >= 3.1.10
BuildRequires: yast2 >= 3.1.112
BuildRequires: yast2 >= 3.1.112
BuildRequires: yast2-devtools >= 3.1.10
BuildRequires: yast2-ruby-bindings >= 1.0.0
BuildRequires: yast2-storage
BuildRequires: rubygem(cfa_grub2)
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(yast-rake)
BuildRequires: rubygem(cfa_grub2)
BuildRequires: yast2-storage
BuildRequires: yast2-ruby-bindings >= 1.0.0
PreReq: /bin/sed %fillup_prereq
# Base classes for inst clients
Requires: yast2 >= 3.1.112
Requires: yast2-packager >= 2.17.24
Requires: yast2-pkg-bindings >= 2.17.25
Requires: yast2-core >= 2.18.7
Requires: yast2-storage >= 2.18.18
Requires: parted
Requires: yast2 >= 3.1.112
Requires: yast2-core >= 2.18.7
Requires: yast2-packager >= 2.17.24
Requires: yast2-pkg-bindings >= 2.17.25
Requires: yast2-storage >= 2.18.18
Requires: rubygem(cfa_grub2)

%ifarch %ix86 x86_64
Requires: syslinux
Requires: syslinux
%endif

Requires: yast2-ruby-bindings >= 1.0.0

Summary: YaST2 - Bootloader Configuration
Summary: YaST2 - Bootloader Configuration
License: GPL-2.0+
Group: System/YaST

%description
This package contains the YaST2 component for bootloader configuration.

%package devel-doc
Requires: yast2-bootloader = %version
Group: System/YaST
Summary: YaST2 - Bootloader Configuration - Development Documentation
Group: System/YaST

%description devel-doc
This package contains development documentation for using the API
Expand Down Expand Up @@ -113,3 +113,5 @@ rake install DESTDIR="%{buildroot}"
%files devel-doc
%defattr(-,root,root)
%doc %{yast_docdir}/autodocs

%changelog
3 changes: 2 additions & 1 deletion test/grub2base_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@
expect(subject.grub_default.distributor).to eq ""
end

it "proposes serial console from its usage on kernel command line" do
it "proposes serial console from its usage on kernel command line on non-s390" do
allow(Yast::Arch).to receive(:architecture).and_return("x86_64")
kernel_params = "console=ttyS1,4800n8"
allow(Yast::Kernel).to receive(:GetCmdLine).and_return(kernel_params)

Expand Down

1 comment on commit 7aa5172

@gabi2
Copy link

@gabi2 gabi2 commented on 7aa5172 Mar 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please sign in to comment.