diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be97215 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bankstown-lv2-1.0.0.crate diff --git a/rust-bankstown-lv2.spec b/rust-bankstown-lv2.spec new file mode 100644 index 0000000..4d93216 --- /dev/null +++ b/rust-bankstown-lv2.spec @@ -0,0 +1,61 @@ +# Generated by rust2rpm 25 +%bcond_without check + +%global crate bankstown-lv2 + +Name: rust-bankstown-lv2 +Version: 1.0.0 +Release: %autorelease +Summary: Barebones, fast LV2 bass enhancement plugin + +License: MIT +URL: https://crates.io/crates/bankstown-lv2 +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: make + +# Not supported by rust-lv2 +ExcludeArch: ppc64le s390x + +%global _description %{expand: +Bankstown is a barebones, fast LV2 bass enhancement plugin implementing +halfway-decent three-stage psychoacoustic bass approximation.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +License: MIT OR Apache-2.0 +Requires: lv2 + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc README.md +%{_libdir}/lv2/bankstown.lv2/ + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies + +%install +%make_install LIBDIR="%{_libdir}" + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..a3525e3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (bankstown-lv2-1.0.0.crate) = 6518891d3c611b41b9f42c534dd60568c001ba9e60fd5c8bf2318aef2c35838ef5b076eeb6ef94223017181c5c9a37e618d7d43830f14a026d68c09f7fa330a1