diff --git a/.gitignore b/.gitignore index 84ff277..a9ee043 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /tempfile-3.0.9.crate /tempfile-3.1.0.crate /tempfile-3.2.0.crate +/tempfile-3.3.0.crate diff --git a/rust-tempfile.spec b/rust-tempfile.spec index 96717e6..8ea06fd 100644 --- a/rust-tempfile.spec +++ b/rust-tempfile.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 19 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate tempfile Name: rust-%{crate} -Version: 3.2.0 +Version: 3.3.0 Release: %autorelease Summary: Library for managing temporary files and directories @@ -20,9 +20,6 @@ Source: %{crates_source} Patch0: tempfile-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -38,7 +35,7 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT @@ -52,11 +49,23 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which -use "the default" feature of the "%{crate}" crate. +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%package -n %{name}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly" feature of the "%{crate}" crate. + +%files -n %{name}+nightly-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep diff --git a/sources b/sources index 3431b79..956a157 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tempfile-3.2.0.crate) = 56d1c5af7cb6863f9eac990354126979534aae7bf298bc8b1c918c7317ce2ba31f53089aaa1ecf8baa4a39d4111d74f4450be82b509b3c2aa0428880029e663a +SHA512 (tempfile-3.3.0.crate) = ba6faafb2dd56d694efe424752099a2efb50316afc0a4db9fdb7620ae3f1a31dfbb2a7b41724878cb977fa11f7568a406bd3b6a4f7cfc0b88b86b2cc616b953e diff --git a/tempfile-fix-metadata.diff b/tempfile-fix-metadata.diff index cbf3639..9e04d33 100644 --- a/tempfile-fix-metadata.diff +++ b/tempfile-fix-metadata.diff @@ -1,15 +1,20 @@ ---- tempfile-3.2.0/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ tempfile-3.2.0/Cargo.toml 2021-05-19T13:25:52.185573+00:00 -@@ -29,11 +29,6 @@ - version = "0.8" +--- tempfile-3.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tempfile-3.3.0/Cargo.toml 2022-02-09T21:58:33.159873+00:00 +@@ -28,7 +28,7 @@ + version = "1.6.0" [dependencies.remove_dir_all] -version = "0.5" --[target."cfg(target_os = \"redox\")".dependencies.redox_syscall] --version = "0.2" +version = "0.7" - [target."cfg(unix)".dependencies.libc] + [dev-dependencies.doc-comment] + version = "0.3" + +@@ -36,8 +36,3 @@ + nightly = [] + [target."cfg(any(unix, target_os = \"wasi\"))".dependencies.libc] version = "0.2.27" +-[target."cfg(target_os = \"redox\")".dependencies.redox_syscall] +-version = "0.2.9" -[target."cfg(windows)".dependencies.winapi] -version = "0.3" -features = ["fileapi", "handleapi", "winbase"]