diff --git a/encoding_rs-fix-metadata.diff b/encoding_rs-fix-metadata.diff index 559f3f8..43e6dc4 100644 --- a/encoding_rs-fix-metadata.diff +++ b/encoding_rs-fix-metadata.diff @@ -1,5 +1,5 @@ --- encoding_rs-0.8.10/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ encoding_rs-0.8.10/Cargo.toml 2018-10-07T11:34:29.893481+02:00 ++++ encoding_rs-0.8.10/Cargo.toml 2018-10-28T02:08:19.986694+01:00 @@ -22,6 +22,7 @@ categories = ["text-processing", "encoding", "web-programming", "email"] license = "MIT/Apache-2.0" diff --git a/rust-encoding_rs.spec b/rust-encoding_rs.spec index b4e73c2..fe34395 100644 --- a/rust-encoding_rs.spec +++ b/rust-encoding_rs.spec @@ -1,5 +1,5 @@ # Generated by rust2rpm -# Tests are run in infrastructure +# * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.8.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Gecko-oriented implementation of the Encoding Standard # Upstream license specification: MIT/Apache-2.0 @@ -22,28 +22,92 @@ Patch0: encoding_rs-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0) -BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) +BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0) +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(bincode) >= 0.8.0 with crate(bincode) < 0.9.0) -BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0) -BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) +BuildRequires: (crate(bincode/default) >= 0.8.0 with crate(bincode/default) < 0.9.0) +BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0) +BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) %endif -%description -%{summary}. +%global _description \ +A Gecko-oriented implementation of the Encoding Standard. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A Gecko-oriented implementation of the Encoding Standard. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "%{crate}" crate. + +%files devel +%license COPYRIGHT LICENSE-MIT LICENSE-APACHE +%doc README.md CONTRIBUTING.md Ideas.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/Cargo.toml + +%package -n %{name}+less-slow-big5-hanzi-encode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+less-slow-big5-hanzi-encode-devel %{_description} + +This package contains library source intended for building other packages +which use "less-slow-big5-hanzi-encode" feature of "%{crate}" crate. + +%files -n %{name}+less-slow-big5-hanzi-encode-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+less-slow-gb-hanzi-encode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+less-slow-gb-hanzi-encode-devel %{_description} + +This package contains library source intended for building other packages +which use "less-slow-gb-hanzi-encode" feature of "%{crate}" crate. + +%files -n %{name}+less-slow-gb-hanzi-encode-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+less-slow-kanji-encode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+less-slow-kanji-encode-devel %{_description} + +This package contains library source intended for building other packages +which use "less-slow-kanji-encode" feature of "%{crate}" crate. + +%files -n %{name}+less-slow-kanji-encode-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -60,12 +124,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license COPYRIGHT LICENSE-MIT LICENSE-APACHE -%doc README.md CONTRIBUTING.md Ideas.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Oct 28 2018 Igor Gnatenko - 0.8.10-2 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.8.10-1 - Update to 0.8.10