Skip to content

Commit

Permalink
Fixed the Rake-based RPM build.
Browse files Browse the repository at this point in the history
Use this command to test

    rake osc:build
  • Loading branch information
mvidner committed Jan 8, 2018
1 parent d42604d commit 712649d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
22 changes: 0 additions & 22 deletions Makefile.cvs

This file was deleted.

5 changes: 5 additions & 0 deletions Rakefile
@@ -1 +1,6 @@
require "yast/rake"

Yast::Tasks.configuration do |conf|
#lets ignore license check for now
conf.skip_license_check << /.*/
end
9 changes: 6 additions & 3 deletions package/yast2-iscsi-lio-server.spec
Expand Up @@ -33,7 +33,8 @@ BuildRequires: yast2
BuildRequires: yast2-devtools >= 3.1.10
BuildRequires: yast2-packagemanager-devel
BuildRequires: yast2-testsuite
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(%rb_default_ruby_abi:rspec)
BuildRequires: rubygem(%rb_default_ruby_abi:yast-rake)
Requires: python-configshell-fb
Requires: python-rtslib-fb
Requires: targetcli-fb
Expand All @@ -58,10 +59,12 @@ This package contains configuration of iSCSI LIO target
%setup -n %{name}-%{version}

%build
%yast_build

%check
rake test:unit

%install
%yast_install
rake install DESTDIR="%{buildroot}"

%files
%defattr(-,root,root)
Expand Down

1 comment on commit 712649d

@ls-zhu
Copy link
Collaborator

@ls-zhu ls-zhu commented on 712649d Jan 8, 2018

Choose a reason for hiding this comment

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

Thanks!!!!

Please sign in to comment.