diff --git a/crossbeam-epoch-fix-metadata.diff b/crossbeam-epoch-fix-metadata.diff index 9973ed5..7de0256 100644 --- a/crossbeam-epoch-fix-metadata.diff +++ b/crossbeam-epoch-fix-metadata.diff @@ -1,5 +1,5 @@ --- crossbeam-epoch-0.5.2/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ crossbeam-epoch-0.5.2/Cargo.toml 2018-09-08T11:10:33.069108+02:00 ++++ crossbeam-epoch-0.5.2/Cargo.toml 2018-10-28T01:44:42.622269+02:00 @@ -48,6 +48,5 @@ [features] diff --git a/rust-crossbeam-epoch.spec b/rust-crossbeam-epoch.spec index fb175a8..478d3dc 100644 --- a/rust-crossbeam-epoch.spec +++ b/rust-crossbeam-epoch.spec @@ -1,5 +1,5 @@ # Generated by rust2rpm -# Tests are run in infrastructure +# * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Epoch-based garbage collection # Upstream license specification: MIT/Apache-2.0 @@ -21,30 +21,83 @@ Patch0: crossbeam-epoch-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] BuildRequires: (crate(arrayvec) >= 0.4.0 with crate(arrayvec) < 0.5.0) -BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0) +BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0) BuildRequires: (crate(crossbeam-utils) >= 0.5.0 with crate(crossbeam-utils) < 0.6.0) -BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) -BuildRequires: (crate(memoffset) >= 0.2.0 with crate(memoffset) < 0.3.0) +BuildRequires: (crate(crossbeam-utils/use_std) >= 0.5.0 with crate(crossbeam-utils/use_std) < 0.6.0) +BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0) +BuildRequires: (crate(memoffset/default) >= 0.2.0 with crate(memoffset/default) < 0.3.0) BuildRequires: (crate(scopeguard) >= 0.3.0 with crate(scopeguard) < 0.4.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(rand) >= 0.5.0 with crate(rand) < 0.6.0) +BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0) %endif -%description -%{summary}. +%global _description \ +Epoch-based garbage collection. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Epoch-based garbage collection. +%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 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 + +%package -n %{name}+lazy_static-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lazy_static-devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "lazy_static" feature of "%{crate}" crate. + +%files -n %{name}+lazy_static-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+sanitize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sanitize-devel %{_description} + +This package contains library source intended for building other packages +which use "sanitize" feature of "%{crate}" crate. + +%files -n %{name}+sanitize-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+use_std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+use_std-devel %{_description} + +This package contains library source intended for building other packages +which use "use_std" feature of "%{crate}" crate. + +%files -n %{name}+use_std-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 @@ -61,12 +114,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 +* Sat Oct 27 2018 Igor Gnatenko - 0.5.2-2 +- Adapt to new packaging + * Sat Sep 08 2018 Igor Gnatenko - 0.5.2-1 - Update to 0.5.2