You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-bankstown-lv2/rust-bankstown-lv2.spec

62 lines
1.2 KiB

# 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