## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate taskchampion Name: rust-taskchampion Version: 0.9.0 Release: %autorelease Summary: Personal task-tracking License: MIT URL: https://crates.io/crates/taskchampion Source: %{crates_source} # * Use license from upstream repo Source1: https://raw.githubusercontent.com/GothenburgBitFactory/taskchampion/v0.9.0/LICENSE # Manually created patch for downstream crate metadata changes # * Loosen bounds to match versions available in Fedora # * Do not use bundled rusqulite Patch: taskchampion-fix-metadata.diff 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 %{crate_instdir}/ %license LICENSE %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 %package -n %{name}+sync-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sync-devel %{_description} This package contains library source intended for building other packages which use the "sync" feature of the "%{crate}" crate. %files -n %{name}+sync-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tls-native-roots-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tls-native-roots-devel %{_description} This package contains library source intended for building other packages which use the "tls-native-roots" feature of the "%{crate}" crate. %files -n %{name}+tls-native-roots-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp %SOURCE1 . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Nov 28 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.9.0-2 - feat: use rust2rpm.toml file * Thu Nov 28 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.9.0-1 - feat: update as per review comments * Tue Aug 27 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.6.0-2 - feat: loosen deps * Fri Aug 23 2024 Ankur Sinha (Ankur Sinha Gmail) - 0.6.0-1 - init ## END: Generated by rpmautospec