Blame rust-md5.spec

39b3d56
# Generated by rust2rpm
39b3d56
%bcond_without check
39b3d56
%global debug_package %{nil}
39b3d56
39b3d56
%global crate md5
39b3d56
39b3d56
Name:           rust-%{crate}
39b3d56
Version:        0.3.6
b8bfd7b
Release:        2%{?dist}
39b3d56
Summary:        MD5 hash function
39b3d56
39b3d56
License:        ASL 2.0 or MIT
39b3d56
URL:            https://crates.io/crates/md5
39b3d56
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
39b3d56
39b3d56
ExclusiveArch:  %{rust_arches}
39b3d56
39b3d56
BuildRequires:  rust-packaging
39b3d56
39b3d56
%description
39b3d56
%{summary}.
39b3d56
39b3d56
%package        devel
39b3d56
Summary:        %{summary}
39b3d56
BuildArch:      noarch
39b3d56
39b3d56
%description    devel
39b3d56
The package provides the MD5 hash function.
39b3d56
39b3d56
This package contains library source intended for building other packages
39b3d56
which use %{crate} from crates.io.
39b3d56
39b3d56
%prep
39b3d56
%autosetup -n %{crate}-%{version} -p1
39b3d56
%cargo_prep
39b3d56
39b3d56
%build
39b3d56
%cargo_build
39b3d56
39b3d56
%install
39b3d56
%cargo_install
39b3d56
39b3d56
%if %{with check}
39b3d56
%check
39b3d56
%cargo_test
39b3d56
%endif
39b3d56
39b3d56
%files          devel
39b3d56
%license LICENSE.md
39b3d56
%doc README.md
39b3d56
%{cargo_registry}/%{crate}-%{version}/
39b3d56
39b3d56
%changelog
b8bfd7b
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.6-2
b8bfd7b
- Rebuild for rust-packaging v5
b8bfd7b
39b3d56
* Wed Nov 29 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.6-1
39b3d56
- Initial package