diff --git a/.gitignore b/.gitignore index b7cab03..05c3ac5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /md5-0.3.8.crate /md5-0.6.0.crate /md5-0.6.1.crate +/md5-0.7.0.crate diff --git a/rust-md5.spec b/rust-md5.spec index ebeea0f..b1abd2f 100644 --- a/rust-md5.spec +++ b/rust-md5.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm +# Generated by rust2rpm 13 # * Tests are run in infrastructure %bcond_with check %global debug_package %{nil} @@ -6,21 +6,24 @@ %global crate md5 Name: rust-%{crate} -Version: 0.6.1 -Release: 3%{?dist} +Version: 0.7.0 +Release: 1%{?dist} Summary: MD5 hash function # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/md5 -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%global _description \ -The package provides the MD5 hash function. +%global _description %{expand: +The package provides the MD5 hash function.} %description %{_description} @@ -36,7 +39,7 @@ which use "%{crate}" crate. %files devel %license LICENSE.md %doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,12 +51,27 @@ 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 +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -66,6 +84,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Thu Jan 16 2020 Josh Stone - 0.7.0-1 +- Update to 0.7.0 + * Fri Jul 26 2019 Fedora Release Engineering - 0.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 439a825..b98f302 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (md5-0.6.1.crate) = b2d399ee2e7f0777ab891e356b1010a4cdd4a5c5b7013e59289cf4462ca7f744066f26ed97921988f913ce3de340db3514f47df5858fdd57d6a0101fa51eafb2 +SHA512 (md5-0.7.0.crate) = 569c992eafe25986a1328666a428b2335ecc5cb7a5ba142c34d7abb1247f6768c0bb3dce790121686d4ebf1b4a1832d65315136552163dfba5f799f99551544a