# Generated by rust2rpm %bcond_with check %global debug_package %{nil} %global crate time Name: rust-%{crate} Version: 0.1.42 Release: 4%{?dist} Summary: Utilities for working with time-related functions in Rust # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/time Source: %{crates_source} # Initial patched metadata # * No windows/redox # * Exclude CI files, https://github.com/rust-lang-deprecated/time/pull/170 Patch0: time-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(libc/default) >= 0.2.1 with crate(libc/default) < 0.3.0) %if %{with check} BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0) %endif %global _description \ Utilities for working with time-related functions in Rust. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %package -n %{name}+default-devel Summary: %{summary} 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. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+rustc-serialize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustc-serialize-devel %{_description} This package contains library source intended for building other packages which use "rustc-serialize" feature of "%{crate}" crate. %files -n %{name}+rustc-serialize-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sun Mar 10 2019 Igor Gnatenko - 0.1.42-4 - Do not pull optional dependencies * Tue Mar 05 2019 Igor Gnatenko - 0.1.42-3 - Run tests in infrastructure * Sat Feb 02 2019 Fedora Release Engineering - 0.1.42-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 08 2019 Josh Stone - 0.1.42-1 - Update to 0.1.42 * Thu Dec 13 2018 Josh Stone - 0.1.41-1 - Update to 0.1.41 * Wed Oct 31 2018 Igor Gnatenko - 0.1.40-3 - Adapt to new packaging * Sat Jul 14 2018 Fedora Release Engineering - 0.1.40-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat May 12 2018 Igor Gnatenko - 0.1.40-1 - Update to 0.1.40 * Fri Feb 09 2018 Fedora Release Engineering - 0.1.39-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.1.39-2 - Rebuild for rust-packaging v5 * Thu Jan 04 2018 Igor Gnatenko - 0.1.39-1 - Update to 0.1.39 * Mon Nov 06 2017 Igor Gnatenko - 0.1.38-2 - Exclude unneeded files * Fri Jul 07 2017 Igor Gnatenko - 0.1.38-1 - Update to 0.1.38 * Wed Jun 14 2017 Igor Gnatenko - 0.1.36-3 - Port to use rust-packaging * Fri Feb 24 2017 Igor Gnatenko - 0.1.36-2 - Use rich dependencies * Sat Feb 18 2017 Igor Gnatenko - 0.1.36-1 - Initial package