diff --git a/rust-libgit2-sys.spec b/rust-libgit2-sys.spec index ae0edfb..535bf70 100644 --- a/rust-libgit2-sys.spec +++ b/rust-libgit2-sys.spec @@ -12,7 +12,7 @@ Summary: Native bindings to the libgit2 library # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/libgit2-sys -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Doesn't seem to be upstreamable Patch0: 0001-build.rs-always-use-pkg-config.patch @@ -149,10 +149,9 @@ which use "ssh_key_from_memory" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -N +%autosetup -n %{crate}-%{version_no_tilde} -p2 # Bundled deps rm -vrf libgit2 -%autopatch -p2 %cargo_prep %build diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..f2353ae --- /dev/null +++ b/tests/tests.yml @@ -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-libgit2-sys