# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate taskchampion Name: rust-taskchampion Version: 0.6.0 Release: %autorelease Summary: Personal task-tracking License: MIT URL: https://crates.io/crates/taskchampion Source: %{crates_source} # License text file Source1: https://raw.githubusercontent.com/GothenburgBitFactory/taskchampion/v0.6.0/LICENSE BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Personal task-tracking.} %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 %doc %{crate_instdir}/README.md %{crate_instdir}/ %license %{SOURCE1} %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}+cloud-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cloud-devel %{_description} This package contains library source intended for building other packages which use the "cloud" feature of the "%{crate}" crate. %files -n %{name}+cloud-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+encryption-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+encryption-devel %{_description} This package contains library source intended for building other packages which use the "encryption" feature of the "%{crate}" crate. %files -n %{name}+encryption-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+server-gcp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+server-gcp-devel %{_description} This package contains library source intended for building other packages which use the "server-gcp" feature of the "%{crate}" crate. %files -n %{name}+server-gcp-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+server-sync-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+server-sync-devel %{_description} This package contains library source intended for building other packages which use the "server-sync" feature of the "%{crate}" crate. %files -n %{name}+server-sync-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 # loosen dep bounds sed -i \ -e '/google-cloud-storage.*]$/{n;s/^version.*$/version = ">=0.15.0"/;}' \ -e '/rstest]$/{n;s/^version.*$/version = ">=0.17.0"/;}' \ -e '/rusqlite.*$/{n;s/^version.*$/version = ">=0.29.0"/;}' \ -e '/^features.*"bundled"]$/d' \ Cargo.toml %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog