diff --git a/.gitignore b/.gitignore index f175dbc..e40bfbb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /serde_yaml-0.8.4.crate /serde_yaml-0.8.5.crate /serde_yaml-0.8.6.crate +/serde_yaml-0.8.7.crate diff --git a/rust-serde_yaml.spec b/rust-serde_yaml.spec index 5005098..dc9db74 100644 --- a/rust-serde_yaml.spec +++ b/rust-serde_yaml.spec @@ -5,7 +5,7 @@ %global crate serde_yaml Name: rust-%{crate} -Version: 0.8.6 +Version: 0.8.7 Release: 1%{?dist} Summary: YAML support for Serde @@ -17,30 +17,47 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(dtoa) >= 0.4.0 with crate(dtoa) < 0.5.0) -BuildRequires: (crate(linked-hash-map) >= 0.5.0 with crate(linked-hash-map) < 0.6.0) -BuildRequires: (crate(serde) >= 1.0.60 with crate(serde) < 2.0.0) -BuildRequires: (crate(yaml-rust) >= 0.4.0 with crate(yaml-rust) < 0.5.0) +BuildRequires: (crate(dtoa/default) >= 0.4.0 with crate(dtoa/default) < 0.5.0) +BuildRequires: (crate(linked-hash-map/default) >= 0.5.0 with crate(linked-hash-map/default) < 0.6.0) +BuildRequires: (crate(serde/default) >= 1.0.60 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(yaml-rust/default) >= 0.4.0 with crate(yaml-rust/default) < 0.5.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0) -BuildRequires: (crate(unindent) >= 0.1.0 with crate(unindent) < 0.2.0) -BuildRequires: (crate(version-sync) >= 0.5.0 with crate(version-sync) < 0.6.0) +BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0) +BuildRequires: (crate(unindent/default) >= 0.1.0 with crate(unindent/default) < 0.2.0) +BuildRequires: (crate(version-sync/default) >= 0.5.0 with crate(version-sync/default) < 0.6.0) %endif -%description -%{summary}. +%global _description \ +YAML support for Serde. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -YAML support for Serde. +%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 LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/travis.sh + +%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 %prep %autosetup -n %{crate}-%{version} -p1 @@ -57,13 +74,11 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/travis.sh - %changelog +* Sat Nov 10 2018 Josh Stone - 0.8.7-1 +- Update to 0.8.7 +- Adapt to new packaging + * Mon Oct 22 2018 Josh Stone - 0.8.6-1 - Update to 0.8.6 diff --git a/sources b/sources index 8f9f1ae..b1f1ef7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (serde_yaml-0.8.6.crate) = 3aa4ac53470bb4c8e8e3d7b5f0fec89976132daf4ce6432adbc93b010e44d42ab84f576988ffdb085ec0b65695a5f7d040bc8b20a32329d829796caa934f9caa +SHA512 (serde_yaml-0.8.7.crate) = c9bf698cb20cd101dee4a12e9ace348d9087cb0ff2e35fdc80777b0f821542f5272070942a7e8534319cb6256e74aa0457cc6644161d57bd85469690a3fba866