|
|
|
@ -7,18 +7,18 @@
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.4.7
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Library for date and time formatting and arithmetic
|
|
|
|
|
|
|
|
|
|
# https://github.com/rust-datetime/datetime/issues/20
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://crates.io/crates/datetime
|
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * No windows
|
|
|
|
|
# * No redox
|
|
|
|
|
# * Drop regex dependency, https://github.com/rust-datetime/datetime/pull/19
|
|
|
|
|
# * Bump iso8601 to 0.2, https://github.com/rust-datetime/datetime/pull/21
|
|
|
|
|
# * Bump iso8601 to 0.3, https://github.com/rust-datetime/datetime/pull/24
|
|
|
|
|
Patch0: datetime-fix-metadata.diff
|
|
|
|
|
# Really drop regex dependency
|
|
|
|
|
Patch1: 0001-drop-regex-from-dependency-set.patch
|
|
|
|
@ -26,7 +26,7 @@ Patch1: 0001-drop-regex-from-dependency-set.patch
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(iso8601/default) >= 0.2.0 with crate(iso8601/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(iso8601/default) >= 0.3.0 with crate(iso8601/default) < 0.4.0)
|
|
|
|
|
BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(locale/default) >= 0.2.0 with crate(locale/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(num-traits/default) >= 0.1.35 with crate(num-traits/default) < 0.2.0)
|
|
|
|
@ -67,7 +67,7 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -82,6 +82,9 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.7-6
|
|
|
|
|
- Update iso8601 to 0.3
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|