diff --git a/rust-scroll_derive.spec b/rust-scroll_derive.spec index 18c5649..01bffc9 100644 --- a/rust-scroll_derive.spec +++ b/rust-scroll_derive.spec @@ -7,7 +7,7 @@ Name: rust-%{crate} Version: 0.9.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Macros 1.1 derive implementation for Pread and Pwrite traits from scroll crate License: MIT @@ -17,28 +17,44 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(proc-macro2) >= 0.4.0 with crate(proc-macro2) < 0.5.0) -BuildRequires: (crate(quote) >= 0.6.0 with crate(quote) < 0.7.0) -BuildRequires: (crate(syn) >= 0.15.0 with crate(syn) < 0.16.0) +BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0) +BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0) +BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(scroll) >= 0.9.0 with crate(scroll) < 0.10.0) +BuildRequires: (crate(scroll/default) >= 0.9.0 with crate(scroll/default) < 0.10.0) %endif -%description -%{summary}. +%global _description \ +A macros 1.1 derive implementation for Pread and Pwrite traits from the scroll\ +crate. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A macros 1.1 derive implementation for Pread and Pwrite traits from the scroll -crate. +%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 +%{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 @@ -55,12 +71,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Tue Nov 13 2018 Josh Stone - 0.9.5-2 +- Adapt to new packaging + * Fri Sep 28 2018 Josh Stone - 0.9.5-1 - Update to 0.9.5