diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..60078cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/shell-words-0.1.0.crate diff --git a/rust-shell-words.spec b/rust-shell-words.spec new file mode 100644 index 0000000..3f4a21c --- /dev/null +++ b/rust-shell-words.spec @@ -0,0 +1,56 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate shell-words + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Process command line according to parsing rules of UNIX shell + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/shell-words +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Process command line according to parsing rules of UNIX shell. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Mon Sep 10 2018 Igor Gnatenko - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..a35c6a6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (shell-words-0.1.0.crate) = 5a62a625866b04bbc3df8f89dc2bead16ab83691caafd140a8e4df4f7f2dd3e5d61218b447b15f3253173067ec070fdae004f2869aef9ea03c1a1ead5b180731