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-lv2-atom/rust-lv2-atom.spec

89 lines
1.9 KiB

# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate lv2-atom
Name: rust-lv2-atom
Version: 2.0.0
Release: %autorelease
Summary: Rust-lv2's Atom handling library
License: MIT OR Apache-2.0
URL: https://crates.io/crates/lv2-atom
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
# Not supported by rust-lv2
ExcludeArch: ppc64le s390x
%global _description %{expand:
Rust-lv2's Atom 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
%package -n %{name}+lv2-core-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+lv2-core-devel %{_description}
This package contains library source intended for building other packages which
use the "lv2-core" feature of the "%{crate}" crate.
%files -n %{name}+lv2-core-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
%ifarch aarch64
# Remove broken test that fails to compile
rm tests/atom_integration.rs
%endif
%cargo_test
%endif
%changelog
%autochangelog