Adapt to new packaging

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent 0e656aca5d
commit 3a1928c813
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -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 <ignatenkobrain@fedoraproject.org> - 0.8.0-3
- Adapt to new packaging
* Sun Oct 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-2
- Run tests in infrastructure

@ -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"

Loading…
Cancel
Save