diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-09 14:45:58 -0800 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-09 14:45:58 -0800 |
commit | e5a2f4361e91a66a6c1f5c3a1d4f98d250f0ba60 (patch) | |
tree | f32a062cf06bb348649550d0fb9c564c83e6a5a0 | |
parent | f9d44daa39a8daab0e0fdefe20f73f958201e10d (diff) | |
download | specs-e5a2f4361e91a66a6c1f5c3a1d4f98d250f0ba60.tar.gz specs-e5a2f4361e91a66a6c1f5c3a1d4f98d250f0ba60.tar.xz specs-e5a2f4361e91a66a6c1f5c3a1d4f98d250f0ba60.zip |
+ rust
* nu-completion
* is_executable (dep)
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r-- | rust/rust-is_executable.spec | 74 | ||||
-rw-r--r-- | rust/rust-nu-completion.spec | 69 |
2 files changed, 143 insertions, 0 deletions
diff --git a/rust/rust-is_executable.spec b/rust/rust-is_executable.spec new file mode 100644 index 0000000..f450bff --- /dev/null +++ b/rust/rust-is_executable.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 20 +# README up-to-date check fails +%bcond_with check +%global debug_package %{nil} + +%global crate is_executable + +Name: rust-%{crate} +Version: 1.0.1 +Release: %autorelease +Summary: Is there an executable file at the given path? + +# Upstream license specification: Apache-2.0/MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/is_executable +Source: %{crates_source} +# Remove Windows dependencies +Patch0: is_executable-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Is there an executable file at the given path?.} + +%description %{_description} + +%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 +%license LICENSE-APACHE LICENSE-MIT +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 diff --git a/rust/rust-nu-completion.spec b/rust/rust-nu-completion.spec new file mode 100644 index 0000000..6fdd7bf --- /dev/null +++ b/rust/rust-nu-completion.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate nu-completion + +Name: rust-%{crate} +Version: 0.42.0 +Release: %autorelease +Summary: Completions for nushell + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/nu-completion +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Completions for nushell.} + +%description %{_description} + +%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 +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/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 |