# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate purl Name: rust-purl Version: 0.1.6 Release: %autorelease Summary: Package URL implementation with customizable package types License: MIT URL: https://crates.io/crates/purl Source: %{crates_source} # * Fix missing LICENSE file in published crate: # https://github.com/phylum-dev/purl/pull/33 Source10: https://github.com/phylum-dev/purl/raw/refs/tags/v%{version}/LICENSE BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A Package URL implementation with customizable package types.} %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 %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}+package-type-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+package-type-devel %{_description} This package contains library source intended for building other packages which use the "package-type" feature of the "%{crate}" crate. %files -n %{name}+package-type-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+phf-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+phf-devel %{_description} This package contains library source intended for building other packages which use the "phf" feature of the "%{crate}" crate. %files -n %{name}+phf-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}+smartstring-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smartstring-devel %{_description} This package contains library source intended for building other packages which use the "smartstring" feature of the "%{crate}" crate. %files -n %{name}+smartstring-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unicase-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unicase-devel %{_description} This package contains library source intended for building other packages which use the "unicase" feature of the "%{crate}" crate. %files -n %{name}+unicase-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp -p '%{SOURCE10}' . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog