add: detox (#216)

* add: detox

* well
This commit is contained in:
madomado
2023-02-20 12:28:59 +08:00
committed by GitHub
parent da51d99a3d
commit 678715b41e
3 changed files with 54 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-detox.spec"
}
}
+48
View File
@@ -0,0 +1,48 @@
# Generated by rust2rpm 23
%bcond_without check
%global crate detox
Name: rust-detox
Version: 0.1.2
Release: %autorelease
Summary: Quickly clean up your development directories on disk
License: MIT
URL: https://crates.io/crates/detox
Source: %{crates_source}
BuildRequires: anda-srpm-macros rust-packaging >= 21
%global _description %{expand:
Quickly clean up your development directories on disk.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/detox
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep_online
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(crates("detox"));