diff --git a/rust-unicode-segmentation.spec b/rust-unicode-segmentation.spec index df9bfd1..154aa8a 100644 --- a/rust-unicode-segmentation.spec +++ b/rust-unicode-segmentation.spec @@ -1,25 +1,28 @@ -# Generated by rust2rpm 9 -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate unicode-segmentation Name: rust-%{crate} Version: 1.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Grapheme Cluster, Word and Sentence boundaries # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/unicode-segmentation Source: %{crates_source} +# Initial patched metadata +# * Update quickcheck to 0.8, https://github.com/unicode-rs/unicode-segmentation/pull/60 +Patch0: unicode-segmentation-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%if %{with check} -BuildRequires: (crate(quickcheck/default) >= 0.7.0 with crate(quickcheck/default) < 0.8.0) -%endif %global _description %{expand: Grapheme Cluster, Word and Sentence boundaries according to Unicode Standard @@ -31,9 +34,7 @@ Annex #29 rules.} Summary: %{summary} BuildArch: noarch -%description devel -This crate provides Grapheme Cluster and Word boundaries according to Unicode -Standard Annex #29 rules. +%description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. @@ -69,8 +70,11 @@ which use "no_std" feature of "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +rm -vr ./scripts/ %cargo_prep -rm -r ./scripts/ + +%generate_buildrequires +%cargo_generate_buildrequires %build %cargo_build @@ -84,6 +88,9 @@ rm -r ./scripts/ %endif %changelog +* Sun Jun 23 11:31:15 CEST 2019 Igor Gnatenko - 1.3.0-2 +- Regenerate + * Wed May 15 20:00:27 CEST 2019 Igor Gnatenko - 1.3.0-1 - Update to 1.3.0 diff --git a/unicode-segmentation-fix-metadata.diff b/unicode-segmentation-fix-metadata.diff new file mode 100644 index 0000000..57b3d7f --- /dev/null +++ b/unicode-segmentation-fix-metadata.diff @@ -0,0 +1,11 @@ +--- unicode-segmentation-1.3.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ unicode-segmentation-1.3.0/Cargo.toml 2019-06-23T09:31:15.368751+00:00 +@@ -23,7 +23,7 @@ + license = "MIT/Apache-2.0" + repository = "https://github.com/unicode-rs/unicode-segmentation" + [dev-dependencies.quickcheck] +-version = "0.7" ++version = "0.8" + + [features] + no_std = []