diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2aa1912 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/untrusted-0.6.0.crate diff --git a/rust-untrusted.spec b/rust-untrusted.spec new file mode 100644 index 0000000..c8a4e45 --- /dev/null +++ b/rust-untrusted.spec @@ -0,0 +1,59 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate untrusted + +Name: rust-%{crate} +Version: 0.6.0 +Release: 1%{?dist} +Summary: Safe and fast parsing of untrusted inputs in Rust + +License: ISC +URL: https://crates.io/crates/untrusted +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 +Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of untrusted +inputs in Rust. + +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.txt +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Fri Sep 22 2017 Igor Gnatenko - 0.6.0-1 +- Update to 0.6.0 + +* Fri Jun 16 2017 Igor Gnatenko - 0.5.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2c952ec --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (untrusted-0.6.0.crate) = d4291df85739cd1fa1a43007dbe3dabc99e8e44aa65cb276b6305e3f18cea68349e13f45c6b5ef4c9784d94fedcd85cd0c5baff60dd1e06b7df85c78c62ad7e4