# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate qlog Name: rust-qlog Version: 0.15.2 Release: %autorelease Summary: Data model for QUIC and HTTP/3 License: BSD-2-Clause URL: https://crates.io/crates/qlog Source: %{crates_source} # * Fix missing license files in published crates (except quiche) # * https://github.com/cloudflare/quiche/pull/2263 Source2: https://github.com/cloudflare/quiche/raw/refs/tags/qlog-0.15.2/COPYING BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Qlog data model for QUIC and HTTP/3.} %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}/COPYING %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 %prep %autosetup -n %{crate}-%{version} -p1 cp -pL %{SOURCE2} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog