diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7e3f6ec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lv2-core-derive-2.1.1.crate diff --git a/rust-lv2-core-derive.spec b/rust-lv2-core-derive.spec new file mode 100644 index 0000000..10dc982 --- /dev/null +++ b/rust-lv2-core-derive.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate lv2-core-derive + +Name: rust-lv2-core-derive +Version: 2.1.1 +Release: %autorelease +Summary: Procedural macros for lv2-core + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/lv2-core-derive +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Procedural macros for lv2-core.} + +%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..489fc2c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lv2-core-derive-2.1.1.crate) = bcea40f70591c765001626cc93fa09cac25f2921372539e5311a8d7e38fc3ca466082b44c043dd503c3fe847a26e152808fec0679736eaa1b66f95a2ba38d581