diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0e9bd3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/encoding_rs_io-0.1.1.crate diff --git a/rust-encoding_rs_io.spec b/rust-encoding_rs_io.spec new file mode 100644 index 0000000..c07b2e1 --- /dev/null +++ b/rust-encoding_rs_io.spec @@ -0,0 +1,57 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate encoding_rs_io + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Streaming transcoding for encoding_rs + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/encoding_rs_io +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(encoding_rs) >= 0.8.0 with crate(encoding_rs) < 0.9.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Streaming transcoding for encoding_rs. + +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 COPYING LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Mon Jul 30 2018 Igor Gnatenko - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..d364891 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (encoding_rs_io-0.1.1.crate) = ced3d52333f62779e7af983550ae9a4617357eb26b7b21f1e38433f9383e3b18aa647b51f3e59fe886608959914baea2256805f6c66676668e725f251fe41311