# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate servo_arc Name: rust-servo_arc Version: 0.1.1 Release: %autorelease Summary: Fork of std::sync::Arc with some extra functionality and without weak references # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/servo_arc Source: %{crates_source} # Backported from upstream to add license files # https://bugzilla.redhat.com/show_bug.cgi?id=2124361 # https://github.com/servo/servo/pull/28967 Patch: 28967.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Fork of std::sync::Arc with some extra functionality and without weak references.} %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 components/servo_arc/LICENSE-APACHE %license components/servo_arc/LICENSE-MIT %{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}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+servo-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+servo-devel %{_description} This package contains library source intended for building other packages which use the "servo" feature of the "%{crate}" crate. %files -n %{name}+servo-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