Add tests & Remove unneeded tz files

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel10
Igor Gnatenko 5 years ago
parent d4be910651
commit 6f6dd67f24
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -6,7 +6,7 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.5.1 Version: 0.5.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: TimeZone implementations for rust-chrono from the IANA database Summary: TimeZone implementations for rust-chrono from the IANA database
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
@ -66,6 +66,10 @@ which use "serde" feature of "%{crate}" crate.
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
mkdir .tmp
mv $(grep -Po '"\Ktz/[^"]+' build.rs) .tmp
rm -rf tz
mv .tmp tz
%cargo_prep %cargo_prep
%generate_buildrequires %generate_buildrequires
@ -83,5 +87,8 @@ which use "serde" feature of "%{crate}" crate.
%endif %endif
%changelog %changelog
* Tue Nov 12 07:43:37 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.1-2
- Remove all unneeded files from tz
* Tue Nov 05 23:23:40 EET 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.5.1-1 * Tue Nov 05 23:23:40 EET 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.5.1-1
- Initial package - Initial package

@ -0,0 +1,5 @@
---
standard-inventory-qcow2:
qemu:
# `cargo test` usually eats more than 1G.
m: 4G

@ -0,0 +1,13 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
repositories:
- repo: "https://src.fedoraproject.org/tests/rust.git"
dest: rust
tests:
- rust/cargo-test
environment:
pkg: rust-chrono-tz
Loading…
Cancel
Save