# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate pep440_rs Name: rust-pep440_rs Version: 0.3.5 Release: %autorelease Summary: Library for python version numbers and specifiers, implementing PEP 440 License: Apache-2.0 OR BSD-2-Clause URL: https://crates.io/crates/pep440_rs Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * prevent unused shared library with C-ABI from being built Patch: pep440_rs-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: A library for python version numbers and specifiers, implementing PEP 440.} %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-BSD %doc %{crate_instdir}/Changelog.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}+pyo3-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pyo3-devel %{_description} This package contains library source intended for building other packages which use the "pyo3" feature of the "%{crate}" crate. %files -n %{name}+pyo3-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 %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