The package rpms/rust-lv2-midi.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-lv2-midi.git/commit/?id=fd3d148....
Change: +ExcludeArch: ppc64le s390x
Thanks.
Full change: ============
commit fd3d1484e44851264eee61e7223c6632033c6265 Author: Davide Cavalca dcavalca@fedoraproject.org Date: Mon Jul 24 09:11:08 2023 -0700
Initial import; Fixes: RHBZ#2224769
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33d4e0f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lv2-midi-1.2.0.crate diff --git a/lv2-midi-fix-metadata.diff b/lv2-midi-fix-metadata.diff new file mode 100644 index 0000000..b15514c --- /dev/null +++ b/lv2-midi-fix-metadata.diff @@ -0,0 +1,11 @@ +--- lv2-midi-1.2.0/Cargo.toml 2020-10-23T15:19:38+00:00 ++++ lv2-midi-1.2.0/Cargo.toml 2023-07-22T17:25:56.469685+00:00 +@@ -29,7 +29,7 @@ + version = "0.1.0" + + [dependencies.wmidi] +-version = "3.1.0" ++version = "4" + optional = true + [dev-dependencies.lv2-core] + version = "3.0.0" diff --git a/rust-lv2-midi.spec b/rust-lv2-midi.spec new file mode 100644 index 0000000..dbb2a5a --- /dev/null +++ b/rust-lv2-midi.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate lv2-midi + +Name: rust-lv2-midi +Version: 1.2.0 +Release: %autorelease +Summary: Rust-lv2's MIDI processing library + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/lv2-midi +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump wmidi to 4 +Patch: lv2-midi-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +# Not supported by rust-lv2 +ExcludeArch: ppc64le s390x + +%global _description %{expand: +Rust-lv2's MIDI processing library.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+wmidi-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+wmidi-devel %{_description} + +This package contains library source intended for building other packages which +use the "wmidi" feature of the "%{crate}" crate. + +%files -n %{name}+wmidi-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires -a + +%build +%cargo_build -a + +%install +%cargo_install -a + +%if %{with check} +%check +%cargo_test -a +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..d38a1bb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lv2-midi-1.2.0.crate) = 499e1a77c2853d33acbbb5ee13d79d3bc0f1712ce0cbe4b04824c35dccaa3c2936eaf6c66360c311a4a5ef106bf7d43d4c5c2c63ff7cf4a00fae39d5146f78ba
arch-excludes@lists.fedoraproject.org