Skip to content

Commit

Permalink
Switch from Autotools to the Rake build system
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Feb 19, 2020
1 parent 6f9de94 commit fec4b10
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 93 deletions.
23 changes: 0 additions & 23 deletions Makefile.cvs

This file was deleted.

8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
require "yast/rake"
require "shellwords"

Yast::Tasks.configuration do |conf|
# lets ignore license check for now
conf.skip_license_check << /.*/

conf.install_locations["control/*.xml"] = Packaging::Configuration::YAST_DIR + "/control/"
end

task "test:unit" do
sh "xmllint --noout --relaxng #{Packaging::Configuration::YAST_DIR.shellescape}/control/control.rng control/update.xml"
end

12 changes: 0 additions & 12 deletions configure.in.in

This file was deleted.

8 changes: 0 additions & 8 deletions control/Makefile.am

This file was deleted.

5 changes: 5 additions & 0 deletions package/yast2-update.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 19 14:43:22 UTC 2020 - Ladislav Slezák <lslezak@suse.cz>

- Switch from Autotools based build to Rake

-------------------------------------------------------------------
Wed Feb 19 09:57:26 UTC 2020 - Stefan Hundhammer <shundhammer@suse.com>

Expand Down
7 changes: 6 additions & 1 deletion package/yast2-update.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ BuildRequires: libxml2-tools
BuildRequires: yast2-installation-control
# Needed for tests
BuildRequires: rubygem(%{rb_default_ruby_abi}:rspec)
BuildRequires: rubygem(%{rb_default_ruby_abi}:yast-rake)
# Y2Storage::Crypttab.save_encryption_names
BuildRequires: yast2-storage-ng >= 4.2.42

Expand Down Expand Up @@ -87,7 +88,9 @@ Use this component if you wish to update your system.
%setup -q

%build
%yast_build

%check
%yast_check

%install
%yast_install
Expand Down Expand Up @@ -115,5 +118,7 @@ Use this component if you wish to update your system.
%{yast_clientdir}/update.rb
%{yast_clientdir}/run_update.rb
%license COPYING
%doc %{yast_docdir}/README.md
%doc %{yast_docdir}/CONTRIBUTING.md

%changelog
37 changes: 0 additions & 37 deletions src/Makefile.am

This file was deleted.

12 changes: 0 additions & 12 deletions test/Makefile.am

This file was deleted.

0 comments on commit fec4b10

Please sign in to comment.