From 26a8f312e1db606e18329235133b8a303dce272f Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Sat, 22 Jul 2023 20:36:52 -0700 Subject: [PATCH] Initial import; Fixes: RHBZ#2224759 --- .gitignore | 1 + rust-lv2-sys.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 74 insertions(+) create mode 100644 .gitignore create mode 100644 rust-lv2-sys.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7640cc6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lv2-sys-2.0.0.crate diff --git a/rust-lv2-sys.spec b/rust-lv2-sys.spec new file mode 100644 index 0000000..e0db7bf --- /dev/null +++ b/rust-lv2-sys.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate lv2-sys + +Name: rust-lv2-sys +Version: 2.0.0 +Release: %autorelease +Summary: Rust-lv2's C header bindings + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/lv2-sys +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +# Not supported by rust-lv2 +ExcludeArch: ppc64le s390x + +%global _description %{expand: +Rust-lv2's C header bindings.} + +%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..e929da7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lv2-sys-2.0.0.crate) = f9267bf0efb547e59c39f48b7180b86515bdf67e47226f36e08309ed5e4253afc4d6a608e8d3b48a10d450ebe4e48c37aa8b63477a6186a97ca5ef17c8f1959f