The package rpms/rust-witx.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-witx.git/commit/?id=48da6e8b2ee....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 48da6e8b2ee982a100f6243ad61a3ec7dd3b8902 Author: Olivier Lemasle o.lemasle@gmail.com Date: Mon Jun 28 14:40:58 2021 +0200
Initial import (#1972159)
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6332a60 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/WASI-d4d3df3072b65ce43cb01c1add72b402d69a79d1.tar.gz +/witx-0.9.1.crate diff --git a/rust-witx.spec b/rust-witx.spec new file mode 100644 index 0000000..ce665c9 --- /dev/null +++ b/rust-witx.spec @@ -0,0 +1,88 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate witx + +%global repo https://github.com/WebAssembly/WASI +%global commit d4d3df3072b65ce43cb01c1add72b402d69a79d1 + +Name: rust-%{crate} +Version: 0.9.1 +Release: 1%{?dist} +Summary: Parse and validate witx file format + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/witx +Source0: %{crates_source} +# Source tarball from git repository (used for tests) +Source1: %{repo}/archive/%{commit}/WASI-%{commit}.tar.gz + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Parse and validate witx file format.} + +%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 +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep +# Untar WASI source tarball, which contains witx files used by tests +tar zxf %{SOURCE1} +# Move it outside the crate directory +mv WASI-%{commit} ../WASI +# Patch the relative path of witx test files, to use WASI source +sed -i 's/../phases/WASI/phases/' tests/witxt/wasi.witxt + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Wed Jun 23 2021 Olivier Lemasle o.lemasle@gmail.com - 0.9.1-1 +- Update to upstream 0.9.1 + +* Tue Jun 15 2021 Olivier Lemasle o.lemasle@gmail.com - 0.9.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..24e320c --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (WASI-d4d3df3072b65ce43cb01c1add72b402d69a79d1.tar.gz) = 55f8a6c0f5118dbe85a4bea128115d0f47bd0ce0f5433d0133efe6c1296dbacbff966ef76af79ac54ea5ec3498db6959fab98b5724dfa509eedd4db1d1332e3e +SHA512 (witx-0.9.1.crate) = bd88171e5304e5249fb1429d918b6678dbb3da40eec0fd7fd1111adc097c43412c195bb4adc1ab85e112e53550a918fdcd4bb71e33ad2db028d030e7afe6d62a
arch-excludes@lists.fedoraproject.org