%bcond check 1

%global crate oru
%global debug_package %{nil}

Name:           %{crate}
Version:        0.1.5
Release:        latest%{?dist}
Summary:        Oru is a system configuration manager for Origami Linux

License:        MIT
URL:            https://crates.io/crates/oru
Source:         %{crates_source}

BuildRequires:  rust
BuildRequires:  cargo

%description
Oru is a system configuration manager for Origami Linux.

%prep
%setup

%build
cargo build --release

%install
install -Dm755 target/release/oru %{buildroot}/usr/bin/oru

%files
%license LICENSE
%doc README.md
/usr/bin/oru

%changelog
%autochangelog
