mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 09:52:18 +00:00
add: ouch (#180)
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(crates("ouch"));
|
||||
Reference in New Issue
Block a user