The package rpms/rust-qrcode.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/rust-qrcode.git/commit/?id=ec68596c7....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit ec68596c7bdf910c1714b7c00e66532b26e9eb3e Author: Igor Gnatenko ignatenkobrain@fedoraproject.org Date: Fri Mar 15 10:58:27 2019 +0100
Initial import
Signed-off-by: Igor Gnatenko ignatenkobrain@fedoraproject.org
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..61d8b13 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/qrcode-0.9.0.crate diff --git a/qrcode-fix-metadata.diff b/qrcode-fix-metadata.diff new file mode 100644 index 0000000..f7c90aa --- /dev/null +++ b/qrcode-fix-metadata.diff @@ -0,0 +1,11 @@ +--- qrcode-0.9.0/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ qrcode-0.9.0/Cargo.toml 2019-03-15T07:16:59.890182+01:00 +@@ -39,7 +39,7 @@ + version = "1" + + [dependencies.image] +-version = "0.20" ++version = "0.21" + optional = true + + [features] diff --git a/rust-qrcode.spec b/rust-qrcode.spec new file mode 100644 index 0000000..9fdd496 --- /dev/null +++ b/rust-qrcode.spec @@ -0,0 +1,101 @@ +# Generated by rust2rpm +%bcond_with check +%global debug_package %{nil} + +# Binary is useless +%global __cargo_is_bin() false + +%global crate qrcode + +Name: rust-%{crate} +Version: 0.9.0 +Release: 1%{?dist} +Summary: QR code encoder in Rust + +# Upstream license specification: MIT / Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/qrcode +Source: %{crates_source} +# Initial patched metadata +# * Update image to 0.21, https://github.com/kennytm/qrcode-rust/pull/25 +Patch0: qrcode-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(checked_int_cast/default) >= 1.0.0 with crate(checked_int_cast/default) < 2.0.0) +BuildRequires: (crate(image/default) >= 0.21.0 with crate(image/default) < 0.22.0) + +%global _description \ +QR code encoder 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.txt LICENSE-APACHE.txt +%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}+image-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+image-devel %{_description} + +This package contains library source intended for building other packages +which use "image" feature of "%{crate}" crate. + +%files -n %{name}+image-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+svg-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+svg-devel %{_description} + +This package contains library source intended for building other packages +which use "svg" feature of "%{crate}" crate. + +%files -n %{name}+svg-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 ignatenkobrain@fedoraproject.org - 0.9.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..6b49994 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (qrcode-0.9.0.crate) = a473c3d4a7025a2295cfafa63edfdc2058c77591584e80aec76fce71aba0a2915571161a0328146dcc8055c8e5564d70739f9775f1288aff4ff73673dc2f9692 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..12be38b --- /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-qrcode
arch-excludes@lists.fedoraproject.org