# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate lcms2-sys Name: rust-lcms2-sys Version: 4.0.1 Release: %autorelease Summary: Bindings for liblcms2 License: MIT URL: https://crates.io/crates/lcms2-sys Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop vendoring and static library features # * include license file Patch: lcms2-sys-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: Bindings for liblcms2 (Little CMS) with support for Linux, macOS, and Windows. See lcms2 crate for a safe Rust wrapper.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: lcms2-devel %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 %package -n %{name}+cc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cc-devel %{_description} This package contains library source intended for building other packages which use the "cc" feature of the "%{crate}" crate. %files -n %{name}+cc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dynamic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dynamic-devel %{_description} This package contains library source intended for building other packages which use the "dynamic" feature of the "%{crate}" crate. %files -n %{name}+dynamic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+parallel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+parallel-devel %{_description} This package contains library source intended for building other packages which use the "parallel" feature of the "%{crate}" crate. %files -n %{name}+parallel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pkg-config-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pkg-config-devel %{_description} This package contains library source intended for building other packages which use the "pkg-config" feature of the "%{crate}" crate. %files -n %{name}+pkg-config-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp -p vendor/COPYING . rm -r vendor %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'lcms2-devel' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog