diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-04-04 14:48:27 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-04-04 14:48:27 -0700 |
| commit | d267bf02d22b8a70376955c77882c1c1bb868652 (patch) | |
| tree | b941cbfae17be407167b815efa3b999be7c1d4ee /rust | |
| parent | 2e22f08059897422b174e680257617d62e571f77 (diff) | |
| download | specs-d267bf02d22b8a70376955c77882c1c1bb868652.tar.gz specs-d267bf02d22b8a70376955c77882c1c1bb868652.tar.xz specs-d267bf02d22b8a70376955c77882c1c1bb868652.zip | |
+ nu-utils
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/rust-nu-utils.spec | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/rust/rust-nu-utils.spec b/rust/rust-nu-utils.spec new file mode 100644 index 0000000..15a3c32 --- /dev/null +++ b/rust/rust-nu-utils.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 21 +%bcond_without check + +%global crate nu-utils + +Name: rust-%{crate} +Version: 0.60.0 +Release: %autorelease +Summary: Nushell utility functions + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/nu-utils +Source: %{crates_source} +# Initial patched metadata +Patch0: nu-utils-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Nushell utility functions.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +# FIXME: no license files detected +%{_bindir}/utils + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +# FIXME: no license files detected +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog |
