From c00b210ce56411ea61c58f003f71e75deeaffbcc Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 15 Dec 2020 20:47:41 +0100 Subject: [PATCH] initial import (#1902866) --- .gitignore | 4 +++ README.md | 3 -- rust-utf8-width.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-utf8-width.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..711cefa --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/utf8-width-0.1.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 6561ac1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-utf8-width - -The rust-utf8-width package diff --git a/rust-utf8-width.spec b/rust-utf8-width.spec new file mode 100644 index 0000000..f48a9ea --- /dev/null +++ b/rust-utf8-width.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate utf8-width + +Name: rust-%{crate} +Version: 0.1.4 +Release: 1%{?dist} +Summary: Determine the width of a UTF-8 character by providing its first byte + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/utf8-width +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Determine the width of a UTF-8 character by providing its first byte.} + +%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 +%license LICENSE +%doc README.md +%{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 +* Mon Nov 30 2020 Fabio Valentini - 0.1.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c0ec742 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (utf8-width-0.1.4.crate) = 4777d0f4c971c33eedd808c110e48fdedc92336c17292e6df0704637c8d63905e1b0b6825fe958eef8e4e98327aac7126897b8681b80fb22c916b3a352ae0660