diff --git a/rust-time0.1.spec b/rust-time0.1.spec index 8dca336..1086b13 100644 --- a/rust-time0.1.spec +++ b/rust-time0.1.spec @@ -1,12 +1,12 @@ # Generated by rust2rpm 13 -%bcond_without check +%bcond_with check %global debug_package %{nil} %global crate time Name: rust-%{crate}0.1 Version: 0.1.42 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Utilities for working with time-related functions in Rust # Upstream license specification: MIT/Apache-2.0 @@ -18,10 +18,6 @@ Source: %{crates_source} # * Exclude CI files, https://github.com/rust-lang-deprecated/time/pull/170 Patch0: time-fix-metadata.diff -# * Don't deny warnings -# * Adjust the recent/future test dates -Patch1: time-0.1-fix-tests.patch - ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch @@ -91,5 +87,8 @@ which use "rustc-serialize" feature of "%{crate}" crate. %endif %changelog +* Tue Feb 18 04:00:23 CET 2020 Igor Raits - 0.1.42-2 +- Disable tests + * Mon Jan 27 2020 Josh Stone - 0.1.42-1 - Initial package diff --git a/time-0.1-fix-tests.patch b/time-0.1-fix-tests.patch deleted file mode 100644 index da9e645..0000000 --- a/time-0.1-fix-tests.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/src/lib.rs b/src/lib.rs -index ef44f3a1255e..be0ce334aef3 100644 ---- a/src/lib.rs -+++ b/src/lib.rs -@@ -34,7 +34,6 @@ - html_favicon_url = "https://www.rust-lang.org/favicon.ico", - html_root_url = "https://doc.rust-lang.org/time/")] - #![allow(trivial_numeric_casts)] --#![cfg_attr(test, deny(warnings))] - - #[cfg(target_os = "redox")] extern crate syscall; - #[cfg(unix)] extern crate libc; -@@ -694,8 +693,8 @@ mod tests { - - #[test] - fn test_get_time() { -- static SOME_RECENT_DATE: i64 = 1325376000i64; // 2012-01-01T00:00:00Z -- static SOME_FUTURE_DATE: i64 = 1577836800i64; // 2020-01-01T00:00:00Z -+ static SOME_RECENT_DATE: i64 = 1577836800i64; // 2020-01-01T00:00:00Z -+ static SOME_FUTURE_DATE: i64 = 1893456000i64; // 2030-01-01T00:00:00Z - - let tv1 = get_time(); - debug!("tv1={} sec + {} nsec", tv1.sec, tv1.nsec);