Skip to content

Commit

Permalink
fix: youki
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Oct 30, 2023
1 parent f30f3c2 commit a616822
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 64 deletions.
2 changes: 1 addition & 1 deletion anda/rust/youki/anda.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project pkg {
rpm {
spec = "youki.spec"
spec = "rust-youki.spec"

// enable_scm = true

Expand Down
58 changes: 58 additions & 0 deletions anda/rust/youki/rust-youki.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by rust2rpm 25
#bcond_without check

%global crate youki

Name: rust-youki
Version: 0.3.0
Release: %autorelease
Summary: Container runtime written in Rust

License: None
URL: https://crates.io/crates/youki
Source: %{crates_source}

BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24
BuildRequires: pkg-config
BuildRequires: systemd-devel
BuildRequires: dbus-devel
BuildRequires: libseccomp-devel
BuildRequires: elfutils-libelf-devel
BuildRequires: binutils

%global _description %{expand:
A container runtime written in Rust.}

%description %{_description}

%package -n %{crate}
Summary: %{summary}
License: Apache-2.0

%description -n %{crate} %{_description}

%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%{_bindir}/youki

%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep_online

%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%changelog
%autochangelog
2 changes: 1 addition & 1 deletion anda/rust/youki/update.rhai
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rpm.version(gh("containers/youki"));
rpm.version(crates("youki"));
62 changes: 0 additions & 62 deletions anda/rust/youki/youki.spec

This file was deleted.

0 comments on commit a616822

Please sign in to comment.