From 8f631452d047287f5d21e1e89083e60cd815157f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 13 2017 14:09:39 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a4841a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/encoding-index-korean-1.20141219.5.crate diff --git a/encoding-index-korean-1.20141219.5-fix-metadata.diff b/encoding-index-korean-1.20141219.5-fix-metadata.diff new file mode 100644 index 0000000..c5d9340 --- /dev/null +++ b/encoding-index-korean-1.20141219.5-fix-metadata.diff @@ -0,0 +1,11 @@ +--- encoding-index-korean-1.20141219.5/Cargo.toml 2015-04-14T03:31:07+02:00 ++++ encoding-index-korean-1.20141219.5/Cargo.toml 2017-11-12T11:00:43.125164+01:00 +@@ -12,7 +12,6 @@ + name = "encoding_index_korean" + path = "lib.rs" + +-[dependencies.encoding_index_tests] ++[dev-dependencies.encoding_index_tests] + # TODO consider using dev-dependencies instead (Cargo issue #860) + version = "0.1.4" +-path = "../tests" diff --git a/rust-encoding-index-korean.spec b/rust-encoding-index-korean.spec new file mode 100644 index 0000000..00e1af8 --- /dev/null +++ b/rust-encoding-index-korean.spec @@ -0,0 +1,63 @@ +# Generated by rust2rpm +# Tests require nightly compiler +%bcond_with check +%global debug_package %{nil} + +%global crate encoding-index-korean + +Name: rust-%{crate} +Version: 1.20141219.5 +Release: 1%{?dist} +Summary: Index tables for Korean character encodings + +# https://github.com/lifthrasiir/rust-encoding/issues/111 +License: CC0 +URL: https://crates.io/crates/encoding-index-korean +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No paths +# * Make dev-dependency as dev one +Patch0: encoding-index-korean-1.20141219.5-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(encoding_index_tests) >= 0.1.4 with crate(encoding_index_tests) < 0.2.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Index tables for Korean 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 +* Sun Nov 12 2017 Igor Gnatenko - 1.20141219.5-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..024168d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (encoding-index-korean-1.20141219.5.crate) = 0e79eb9b01fe0354532dc7a8ca55e6332add19827905340560ef9b0e4725becda68ffedd5d18b9ac9d0c4a1b64fb337a9a31de5891b9e6469478fc974e5f9884