add: ouch (#180)

This commit is contained in:
windowsboy111
2023-02-10 07:52:58 +08:00
committed by GitHub
parent 1832a49a18
commit 0de963e840
4 changed files with 71 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-ouch.spec"
}
}
@@ -0,0 +1,12 @@
--- ouch-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00
+++ ouch-0.4.1/Cargo.toml 1970-01-01T00:00:01+00:00
@@ -155,9 +155,6 @@
"zstd/thin",
]
-[target."cfg(not(unix))".dependencies.is_executable]
-version = "1.0.1"
-
[target."cfg(unix)".dependencies.time]
version = "0.3.17"
default-features = false
+53
View File
@@ -0,0 +1,53 @@
# Generated by rust2rpm 23
%bcond_without check
%global crate ouch
Name: rust-ouch
Version: 0.4.1
Release: %autorelease
Summary: Command-line utility for easily compressing and decompressing files and directories
License: MIT
URL: https://crates.io/crates/ouch
Source: %{crates_source}
# Automatically generated patch to strip foreign dependencies
Patch: ouch-fix-metadata-auto.diff
BuildRequires: anda-srpm-macros rust-packaging >= 21
%global _description %{expand:
Command-line utility for easily compressing and decompressing files and
directories.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%doc CHANGELOG.md
%doc CONTRIBUTING.md
%doc README.md
%{_bindir}/ouch
%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("ouch"));