From 3a1928c8136b290a3fadab301fbc4bf1b7d56931 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 27 Oct 2018 12:17:44 +0200 Subject: [PATCH] Adapt to new packaging Signed-off-by: Igor Gnatenko --- rust-strsim.spec | 41 ++++++++++++++++++++++++++++------------ strsim-fix-metadata.diff | 2 +- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/rust-strsim.spec b/rust-strsim.spec index e2d78c5..9d6813d 100644 --- a/rust-strsim.spec +++ b/rust-strsim.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.8.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Implementations of string similarity metrics License: MIT @@ -21,19 +21,38 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +Implementations of string similarity metrics.\ +Includes Hamming, Levenshtein, OSA, Damerau-Levenshtein, Jaro,\ +and Jaro-Winkler. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Implementations of string similarity metrics. Includes Hamming, Levenshtein, -OSA, Damerau-Levenshtein, Jaro, and Jaro-Winkler. +%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,12 +69,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sat Oct 27 2018 Igor Gnatenko - 0.8.0-3 +- Adapt to new packaging + * Sun Oct 07 2018 Igor Gnatenko - 0.8.0-2 - Run tests in infrastructure diff --git a/strsim-fix-metadata.diff b/strsim-fix-metadata.diff index d47f45c..40553f4 100644 --- a/strsim-fix-metadata.diff +++ b/strsim-fix-metadata.diff @@ -1,5 +1,5 @@ --- strsim-0.8.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ strsim-0.8.0/Cargo.toml 2018-10-07T09:42:15.866928+02:00 ++++ strsim-0.8.0/Cargo.toml 2018-10-27T12:16:39.894052+02:00 @@ -21,6 +21,7 @@ keywords = ["string", "similarity", "Hamming", "Levenshtein", "Jaro"] license = "MIT"