diff --git a/.gitignore b/.gitignore index 780b3a4..e921810 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /mime-0.3.13.crate /mime-0.3.14.crate /mime-0.3.16.crate +/mime-0.3.17.crate diff --git a/README.md b/README.md deleted file mode 100644 index 0a86665..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-mime - -The rust-mime package \ No newline at end of file diff --git a/rust-mime.spec b/rust-mime.spec index aa0920f..5dafe23 100644 --- a/rust-mime.spec +++ b/rust-mime.spec @@ -1,25 +1,19 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate mime -Name: rust-%{crate} -Version: 0.3.16 +Name: rust-mime +Version: 0.3.17 Release: %autorelease Summary: Strongly Typed Mimes -# Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/mime Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Strongly Typed Mimes.} @@ -32,13 +26,15 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md CONTRIBUTING.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +42,11 @@ 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. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -67,7 +63,8 @@ which use "default" feature of "%{crate}" crate. %if %{with check} %check -%cargo_test +# * skip a broken test: https://github.com/hyperium/mime/issues/146 +%cargo_test -- -- --skip parse::test_parse_iterator_all_invalid %endif %changelog diff --git a/sources b/sources index 48da6df..62a4cc3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mime-0.3.16.crate) = cb1d691610cb82720e553247336fc5eab63407ad37febf2eb50aaa4e329cca70959ecd8bb8c7af5753acec2c8e86fc9a0f8ad9ad2de93fe9295ce84033d6054c +SHA512 (mime-0.3.17.crate) = e6d2ca92bb58fc747c1bb65a7f9023e5dbf4b94966003a72e4913bcaaeccdd6752725cdbd5081e0fd69d9e8f364d79664fcbe70061737d5c39e5b3e3a154a0d1