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.
243 lines
6.4 KiB
243 lines
6.4 KiB
2 years ago
|
# Generated by rust2rpm 24
|
||
|
%bcond_without check
|
||
|
%global debug_package %{nil}
|
||
|
|
||
|
%global crate lv2
|
||
|
|
||
|
Name: rust-lv2
|
||
|
Version: 0.6.0
|
||
|
Release: %autorelease
|
||
|
Summary: Safe, fast, and ergonomic framework to create LV2 plugins
|
||
|
|
||
|
License: MIT OR Apache-2.0
|
||
|
URL: https://crates.io/crates/lv2
|
||
|
Source: %{crates_source}
|
||
|
|
||
|
BuildRequires: rust-packaging >= 21
|
||
|
|
||
|
# Not supported by rust-lv2
|
||
|
ExcludeArch: ppc64le s390x
|
||
|
|
||
|
%global _description %{expand:
|
||
|
A safe, fast, and ergonomic framework to create LV2 plugins.}
|
||
|
|
||
|
%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
|
||
|
%license %{crate_instdir}/docs/LICENSE.md
|
||
|
%doc %{crate_instdir}/CONTRIBUTING.md
|
||
|
%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}+full-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+full-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "full" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+full-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+lv2-atom-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-atom-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-atom" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-atom-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
|
||
|
|
||
|
%package -n %{name}+lv2-midi-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-midi-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-midi" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-midi-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+lv2-state-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-state-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-state" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-state-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+lv2-sys-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-sys-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-sys" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-sys-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+lv2-time-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-time-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-time" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-time-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+lv2-units-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-units-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-units" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-units-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+lv2-urid-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-urid-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-urid" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-urid-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+lv2-worker-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+lv2-worker-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "lv2-worker" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+lv2-worker-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+minimal_plugin-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+minimal_plugin-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "minimal_plugin" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+minimal_plugin-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+plugin-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+plugin-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "plugin" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+plugin-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+urid-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+urid-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "urid" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+urid-devel
|
||
|
%ghost %{crate_instdir}/Cargo.toml
|
||
|
|
||
|
%package -n %{name}+wmidi-devel
|
||
|
Summary: %{summary}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description -n %{name}+wmidi-devel %{_description}
|
||
|
|
||
|
This package contains library source intended for building other packages which
|
||
|
use the "wmidi" feature of the "%{crate}" crate.
|
||
|
|
||
|
%files -n %{name}+wmidi-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
|