# Generated by rust2rpm 28 # * no tests are shipped with the published crates # * example code adds an unnecessary dependency on libc-print (not packaged) %bcond check 0 %global debug_package %{nil} %global crate dtor Name: rust-dtor Version: 0.0.6 Release: %autorelease Summary: __attribute__((destructor)) for Rust License: Apache-2.0 OR MIT URL: https://crates.io/crates/dtor Source: %{crates_source} Source2: https://github.com/mmastrac/rust-ctor/raw/117b4d1/LICENSE-APACHE Source3: https://github.com/mmastrac/rust-ctor/raw/117b4d1/LICENSE-MIT BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: __attribute__((destructor)) for Rust.} %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}+__no_warn_on_missing_unsafe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+__no_warn_on_missing_unsafe-devel %{_description} This package contains library source intended for building other packages which use the "__no_warn_on_missing_unsafe" feature of the "%{crate}" crate. %files -n %{name}+__no_warn_on_missing_unsafe-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proc_macro-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proc_macro-devel %{_description} This package contains library source intended for building other packages which use the "proc_macro" feature of the "%{crate}" crate. %files -n %{name}+proc_macro-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+used_linker-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+used_linker-devel %{_description} This package contains library source intended for building other packages which use the "used_linker" feature of the "%{crate}" crate. %files -n %{name}+used_linker-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep cp -pav %{SOURCE2} %{SOURCE3} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog