# Copyright (c) 2020 Dave Love, University of Manchester # Licence: MIT %global commit 01df60e08469e2cd748aa9cc061a80cfbcb32cd4 %global shortcommit %(c=%commit; echo ${c:0:7}) Name: one-tools Version: 0 Release: 1.git%shortcommit%{?dist} Summary: Collection of OpenNebula CLI scripts that improve the user experience in the shell License: ASL 2.0 URL: https://github.com/tinova/one-tools Source0: https://github.com/tinova/one-tools/archive/%commit/one-tools-%shortcommit.tar.gz BuildRequires: ruby-devel Requires: opennebula-ruby BuildArch: noarch %description Collection of OpenNebula CLI scripts that improve the user experience in the shell. %prep %setup -q -n %name-%commit %build %install mkdir -p %buildroot/%ruby_libdir %buildroot/%_bindir install -m644 *.rb %buildroot/%ruby_libdir install -m755 one* %buildroot/%_bindir %files %doc README.md bootstrap %license LICENSE %_bindir/* %ruby_libdir/*.rb %changelog * Fri Feb 28 2020 Dave love - 0-1.git%(c=%commit; echo ${c:0:7}) - Initial packaging