mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 01:21:57 +00:00
54 lines
1.0 KiB
RPMSpec
54 lines
1.0 KiB
RPMSpec
# 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
|