# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate tiger-digest Name: rust-%{crate} Version: 0.1.1 Release: 1%{?dist} Summary: Tiger implementation following the Rust Digest Traits # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: https://crates.io/crates/tiger-digest Source: %{crates_source} # Initial patched metadata # * Cargo.toml changes from patches below Patch0: tiger-digest-fix-metadata.diff Patch0001: 0001-Drop-Digest-re-export-in-favor-of-exposing-built-in-.patch Patch0002: 0002-Cargo-fmt.patch # https://gitlab.com/rawler/tiger/-/merge_requests/1 Patch0003: 0003-Add-LICENSE.patch Patch0004: 0004-chore-Update-block-buffer-to-0.7.patch # Technically this is breaking change, but given the amount of usage, # we can do that. Patch0005: 0005-chore-Upgrade-digest-to-0.8.patch Patch0006: 0006-chore-Port-to-Rust-2018.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Tiger implementation following the Rust Digest Traits.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed May 13 12:59:53 CEST 2020 Igor Raits - 0.1.1-1 - Initial package