From 55c32782844a26371ba0e43c5815d1a9207f2fcb Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 10 Nov 2017 19:41:44 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-encoding_index_tests.spec | 54 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 rust-encoding_index_tests.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..02ba5b9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/encoding_index_tests-0.1.4.crate diff --git a/rust-encoding_index_tests.spec b/rust-encoding_index_tests.spec new file mode 100644 index 0000000..1a0d866 --- /dev/null +++ b/rust-encoding_index_tests.spec @@ -0,0 +1,54 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate encoding_index_tests + +Name: rust-%{crate} +Version: 0.1.4 +Release: 1%{?dist} +Summary: Helper macros used to test index tables for character encodings + +# https://github.com/lifthrasiir/rust-encoding/issues/111 +License: CC0 +URL: https://crates.io/crates/encoding_index_tests +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 +Helper macros used to test index tables for character encodings. + +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 +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Fri Nov 10 2017 Igor Gnatenko - 0.1.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..d012e7b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (encoding_index_tests-0.1.4.crate) = 0635e6a879d59aa3373e1c0cae6f61b9bd11138691a1113f3639a1d16ba894c1554f29a6d347353f02395508be4da8a4b16b17db3339cf970a62267874fe93a6