diff --git a/delta_e-fix-metadata.diff b/delta_e-fix-metadata.diff index a1393e6..0f2644f 100644 --- a/delta_e-fix-metadata.diff +++ b/delta_e-fix-metadata.diff @@ -1,5 +1,5 @@ --- delta_e-0.2.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ delta_e-0.2.0/Cargo.toml 2018-10-04T15:02:52.904308+02:00 ++++ delta_e-0.2.0/Cargo.toml 2018-11-03T13:13:51.275080+01:00 @@ -23,4 +23,4 @@ license = "MIT" repository = "https://github.com/elliotekj/DeltaE" diff --git a/rust-delta_e.spec b/rust-delta_e.spec index 4f324d3..cea264e 100644 --- a/rust-delta_e.spec +++ b/rust-delta_e.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Pure-Rust implementation of the CIEDE2000 algorithm License: MIT @@ -19,21 +19,38 @@ Patch0: delta_e-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(lab) >= 0.6.0 with crate(lab) < 0.7.0) +BuildRequires: (crate(lab/default) >= 0.6.0 with crate(lab/default) < 0.7.0) -%description -%{summary}. +%global _description \ +DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -DeltaE is a pure-Rust implementation of the CIEDE2000 algorithm. +%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 +%doc README.md CHANGELOG.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 %prep %autosetup -n %{crate}-%{version} -p1 @@ -50,11 +67,9 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Nov 03 2018 Igor Gnatenko - 0.2.0-2 +- Adapt to new packaging + * Thu Oct 04 2018 Igor Gnatenko - 0.2.0-1 - Initial package