From 4b3de8d753d87a75f014b4548cad9ed6d832024f Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Mon, 10 May 2021 10:29:47 -0700 Subject: [PATCH] import #1958681 --- .gitignore | 1 + rust-xi-unicode.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 rust-xi-unicode.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13582db --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/xi-unicode-0.3.0.crate diff --git a/rust-xi-unicode.spec b/rust-xi-unicode.spec new file mode 100644 index 0000000..ac31598 --- /dev/null +++ b/rust-xi-unicode.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate xi-unicode + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Unicode utilities useful for text editing, including a line breaking iterator + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/xi-unicode +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Unicode utilities useful for text editing, including a line breaking iterator.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun May 09 10:56:53 PDT 2021 Davide Cavalca - 0.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..379b042 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (xi-unicode-0.3.0.crate) = 39875839dcf90b391e76a6b2c2efb2e6f8bfdfdaa59c4815bab8f24412f840c6b01232b5bd79a8f8c6bf7733333e5915c2a7235d27f890b883d6658094bf6271