diff --git a/rust-crypto-hash.spec b/rust-crypto-hash.spec index f9d8a54..7d72bd8 100644 --- a/rust-crypto-hash.spec +++ b/rust-crypto-hash.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.3.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Wrapper for OS-level cryptographic hash functions License: MIT @@ -19,22 +19,40 @@ Patch0: crypto-hash-0.3.1-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(hex) >= 0.3.0 with crate(hex) < 0.4.0) -BuildRequires: (crate(openssl) >= 0.10.0 with crate(openssl) < 0.11.0) +BuildRequires: (crate(hex/default) >= 0.3.0 with crate(hex/default) < 0.4.0) +BuildRequires: (crate(openssl/default) >= 0.10.0 with crate(openssl/default) < 0.11.0) -%description -%{summary}. +%global _description \ +A wrapper for OS-level cryptographic hash functions. + +%description %{_description} %package devel Summary: %{summary} BuildArch: noarch -%description devel -A wrapper for OS-level cryptographic hash functions. +%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 CONTRIBUTING.md NEWS.md README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/Makefile + +%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 @@ -51,13 +69,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%doc CONTRIBUTING.md NEWS.md README.md -%{cargo_registry}/%{crate}-%{version}/ -%exclude %{cargo_registry}/%{crate}-%{version}/Makefile - %changelog +* Tue Nov 13 2018 Josh Stone - 0.3.1-3 +- Adapt to new packaging + * Sat Jul 14 2018 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild