diff --git a/rust-base64.spec b/rust-base64.spec index 9c8a2d8..38924f1 100644 --- a/rust-base64.spec +++ b/rust-base64.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.9.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Encodes ands decode base64 as bytes or utf8 # Upstream license specification: MIT/Apache-2.0 @@ -18,26 +18,42 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(byteorder) >= 1.1.0 with crate(byteorder) < 2.0.0) -BuildRequires: (crate(safemem) >= 0.3.0 with crate(safemem) < 0.4.0) +BuildRequires: (crate(byteorder/default) >= 1.1.0 with crate(byteorder/default) < 2.0.0) +BuildRequires: (crate(safemem/default) >= 0.3.0 with crate(safemem/default) < 0.4.0) %if %{with check} -# [dev-dependencies] -BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) +BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0) %endif -%description -%{summary}. +%global _description \ +Encodes and decodes base64 as bytes or utf8. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -Encodes and decodes base64 as bytes or utf8. +%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 RELEASE-NOTES.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 @@ -54,12 +70,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md RELEASE-NOTES.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Sun Oct 28 2018 Igor Gnatenko - 0.9.3-2 +- Adapt to new packaging + * Mon Sep 17 2018 Josh Stone - 0.9.3-1 - Update to 0.9.3