diff --git a/lazycell-fix-metadata.diff b/lazycell-fix-metadata.diff index 026dda3..40b8ff0 100644 --- a/lazycell-fix-metadata.diff +++ b/lazycell-fix-metadata.diff @@ -1,5 +1,5 @@ ---- lazycell-1.0.0/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ lazycell-1.0.0/Cargo.toml 2018-06-15T14:10:09.199669+02:00 +--- lazycell-1.2.0/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ lazycell-1.2.0/Cargo.toml 2018-11-04T17:10:09.098108+01:00 @@ -21,10 +21,3 @@ keywords = ["lazycell", "lazy", "cell", "library"] license = "MIT/Apache-2.0" diff --git a/rust-lazycell.spec b/rust-lazycell.spec index da88c73..ad219b0 100644 --- a/rust-lazycell.spec +++ b/rust-lazycell.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 1.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library providing a lazily filled Cell struct # Upstream license specification: MIT/Apache-2.0 @@ -21,18 +21,36 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -%description -%{summary}. +%global _description \ +A library providing a lazily filled Cell struct. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A library providing a lazily filled Cell struct. +%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 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 @@ -49,12 +67,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Nov 04 2018 Igor Gnatenko - 1.2.0-2 +- Adapt to new packaging + * Thu Sep 20 2018 Josh Stone - 1.2.0-1 - Update to 1.2.0