# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate freetype-sys Name: rust-freetype-sys Version: 0.20.0 Release: %autorelease Summary: Low level binding for FreeType font library License: MIT URL: https://crates.io/crates/freetype-sys Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Low level binding for FreeType font library.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(freetype2) >= 24.3.18 %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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # remove bundled copy of freetype2 rm -vr freetype2 %generate_buildrequires %cargo_generate_buildrequires echo 'pkgconfig(freetype2) >= 24.3.18' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog