From b4927153db7eed5ee02f1372e0c80290f9dc259a Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Tue, 25 Jul 2023 12:12:15 -0700 Subject: [PATCH] Initial import; Fixes: RHBZ#2224767 --- .gitignore | 1 + lv2-state-fix-metadata.diff | 11 ++++++ rust-lv2-state.spec | 75 +++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 88 insertions(+) create mode 100644 .gitignore create mode 100644 lv2-state-fix-metadata.diff create mode 100644 rust-lv2-state.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..339115b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lv2-state-2.0.0.crate diff --git a/lv2-state-fix-metadata.diff b/lv2-state-fix-metadata.diff new file mode 100644 index 0000000..d0189b2 --- /dev/null +++ b/lv2-state-fix-metadata.diff @@ -0,0 +1,11 @@ +--- lv2-state-2.0.0/Cargo.toml 2020-10-23T15:19:57+00:00 ++++ lv2-state-2.0.0/Cargo.toml 2023-07-22T17:21:13.702257+00:00 +@@ -34,7 +34,7 @@ + version = "2.1.0" + + [dev-dependencies.mktemp] +-version = "0.4.0" ++version = "0.5" + [badges.maintenance] + status = "passively-maintained" + diff --git a/rust-lv2-state.spec b/rust-lv2-state.spec new file mode 100644 index 0000000..0df7231 --- /dev/null +++ b/rust-lv2-state.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate lv2-state + +Name: rust-lv2-state +Version: 2.0.0 +Release: %autorelease +Summary: Rust-lv2's state handling library + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/lv2-state +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump mktemp to 0.5 +Patch: lv2-state-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +# Not supported by rust-lv2 +ExcludeArch: ppc64le s390x + +%global _description %{expand: +Rust-lv2's state handling 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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..d4205d0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lv2-state-2.0.0.crate) = f40b705deda782fcb2028c2cf44b7d5348373433211f56d1bfc669e37480c41482f8fd679b4869fa4fbc7216f80eb0cca4c9eb7f238b7fa1410baf844beff20d