diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..321fca7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gif-0.10.1.crate diff --git a/rust-gif.spec b/rust-gif.spec new file mode 100644 index 0000000..356c8db --- /dev/null +++ b/rust-gif.spec @@ -0,0 +1,111 @@ +# Generated by rust2rpm +# https://github.com/PistonDevelopers/image-gif/issues/51 +%bcond_with check +%global debug_package %{nil} + +%global crate gif + +Name: rust-%{crate} +Version: 0.10.1 +Release: 1%{?dist} +Summary: GIF de- and encoder + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/gif +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(color_quant/default) >= 1.0.0 with crate(color_quant/default) < 2.0.0) +BuildRequires: (crate(lzw/default) >= 0.10.0 with crate(lzw/default) < 0.11.0) +%if %{with check} +BuildRequires: (crate(glob/default) >= 0.2.10 with crate(glob/default) < 0.3.0) +%endif + +%global _description \ +GIF de- and encoder. + +%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}+c_api-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+c_api-devel %{_description} + +This package contains library source intended for building other packages +which use "c_api" feature of "%{crate}" crate. + +%files -n %{name}+c_api-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+libc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libc-devel %{_description} + +This package contains library source intended for building other packages +which use "libc" feature of "%{crate}" crate. + +%files -n %{name}+libc-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+raii_no_panic-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+raii_no_panic-devel %{_description} + +This package contains library source intended for building other packages +which use "raii_no_panic" feature of "%{crate}" crate. + +%files -n %{name}+raii_no_panic-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 +* Fri Mar 15 2019 Igor Gnatenko - 0.10.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6091fee --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gif-0.10.1.crate) = 6a64d871f4430b2fa270c8a73031757a2ca9629362e7c3dff90e1ef2f785733c7dceb98fd93576b97b04b2d4cb920cb25deedf866a5e9e5ec902d4e72f39b82f 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..0ca5766 --- /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-gif