# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate pep508_rs Name: rust-pep508_rs Version: 0.4.2 Release: %autorelease Summary: Library for python dependency specifiers, better known as PEP 508 License: Apache-2.0 OR BSD-2-Clause URL: https://crates.io/crates/pep508_rs Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused Python bindings Patch: pep508_rs-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A library for python dependency specifiers, better known as PEP 508.} %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}+non-pep508-extensions-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+non-pep508-extensions-devel %{_description} This package contains library source intended for building other packages which use the "non-pep508-extensions" feature of the "%{crate}" crate. %files -n %{name}+non-pep508-extensions-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rkyv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rkyv-devel %{_description} This package contains library source intended for building other packages which use the "rkyv" feature of the "%{crate}" crate. %files -n %{name}+rkyv-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}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tracing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tracing-devel %{_description} This package contains library source intended for building other packages which use the "tracing" feature of the "%{crate}" crate. %files -n %{name}+tracing-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog