From 18b851a496671350e388786f18d3ec18c610d603 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Oct 27 2018 09:47:14 +0000 Subject: Adapt to new packaging Signed-off-by: Igor Gnatenko --- diff --git a/rust-vec_map.spec b/rust-vec_map.spec index 1077115..a6b0c0f 100644 --- a/rust-vec_map.spec +++ b/rust-vec_map.spec @@ -7,31 +7,77 @@ Name: rust-%{crate} Version: 0.8.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Simple map based on a vector for small integer keys +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/vec_map Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Exclude unneeded files, https://github.com/contain-rs/vec-map/pull/41 +Patch0: vec_map-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/derive)) +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(serde/derive) >= 1.0.0 with crate(serde/derive) < 2.0.0) -%description -%{summary}. +%global _description \ +A simple map based on a vector for small integer keys. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A simple map based on a vector for small integer keys. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.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 %{crate} from crates.io. +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+eders-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+eders-devel %{_description} + +This package contains library source intended for building other packages +which use "eders" feature of "%{crate}" crate. + +%files -n %{name}+eders-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 @@ -48,13 +94,10 @@ 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}/deploy-docs.sh - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 0.8.1-4 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.8.1-3 - Run tests in infrastructure diff --git a/vec_map-fix-metadata.diff b/vec_map-fix-metadata.diff new file mode 100644 index 0000000..59c2525 --- /dev/null +++ b/vec_map-fix-metadata.diff @@ -0,0 +1,10 @@ +--- vec_map-0.8.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ vec_map-0.8.1/Cargo.toml 2018-10-27T11:45:37.594038+02:00 +@@ -21,6 +21,7 @@ + keywords = ["data-structures", "collections", "vecmap", "vec_map", "contain-rs"] + license = "MIT/Apache-2.0" + repository = "https://github.com/contain-rs/vec-map" ++exclude = ["/deploy-docs.sh"] + [dependencies.serde] + version = "1.0" + features = ["derive"]