diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..acc3fa5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/unicode-linebreak-0.1.1.crate diff --git a/rust-unicode-linebreak.spec b/rust-unicode-linebreak.spec new file mode 100644 index 0000000..b5d6055 --- /dev/null +++ b/rust-unicode-linebreak.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate unicode-linebreak + +Name: rust-%{crate} +Version: 0.1.1 +Release: %autorelease +Summary: Implementation of the Unicode Line Breaking Algorithm + +# Upstream license specification: Apache-2.0 +# https://github.com/axelf4/unicode-linebreak/issues/3 +License: ASL 2.0 +URL: https://crates.io/crates/unicode-linebreak +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Implementation of the Unicode Line Breaking Algorithm.} + +%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 +%doc LineBreak.txt +%{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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..e475166 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (unicode-linebreak-0.1.1.crate) = fe46428b27622eaf4763e1499b9f15f447ed60053b114d4f4d9cd2f952c62a8313be9f161625b6829b1d91ee1451016c2084c5854e64e32b6c1385857c60a970