|
|
|
# Generated by rust2rpm 10
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate time
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.1.42
|
|
|
|
Release: 6%{?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}
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
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
|
|
|
|
sed -i -e '/#!\[.*deny(warnings).*\]/d' src/lib.rs
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Fri Jun 21 22:09:19 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.42-6
|
|
|
|
- Regenerate
|
|
|
|
|
|
|
|
* Sun Jun 09 21:44:41 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.42-5
|
|
|
|
- Regenerate
|
|
|
|
|
|
|
|
* Sun Mar 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.42-4
|
|
|
|
- Do not pull optional dependencies
|
|
|
|
|
|
|
|
* Tue Mar 05 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.42-3
|
|
|
|
- Run tests in infrastructure
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.42-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jan 08 2019 Josh Stone <jistone@redhat.com> - 0.1.42-1
|
|
|
|
- Update to 0.1.42
|
|
|
|
|
|
|
|
* Thu Dec 13 2018 Josh Stone <jistone@redhat.com> - 0.1.41-1
|
|
|
|
- Update to 0.1.41
|
|
|
|
|
|
|
|
* Wed Oct 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.40-3
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.40-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat May 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.40-1
|
|
|
|
- Update to 0.1.40
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.39-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.39-2
|
|
|
|
- Rebuild for rust-packaging v5
|
|
|
|
|
|
|
|
* Thu Jan 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.39-1
|
|
|
|
- Update to 0.1.39
|
|
|
|
|
|
|
|
* Mon Nov 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.38-2
|
|
|
|
- Exclude unneeded files
|
|
|
|
|
|
|
|
* Fri Jul 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.38-1
|
|
|
|
- Update to 0.1.38
|
|
|
|
|
|
|
|
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.36-3
|
|
|
|
- Port to use rust-packaging
|
|
|
|
|
|
|
|
* Fri Feb 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.36-2
|
|
|
|
- Use rich dependencies
|
|
|
|
|
|
|
|
* Sat Feb 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.36-1
|
|
|
|
- Initial package
|