## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate cfg-expr Name: rust-%{crate} Version: 0.10.3 Release: %autorelease Summary: Parser and evaluator for Rust `cfg()` expressions # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/cfg-expr Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Parser and evaluator for Rust `cfg()` expressions.} %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}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %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}+target-lexicon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+target-lexicon-devel %{_description} This package contains library source intended for building other packages which use the "target-lexicon" feature of the "%{crate}" crate. %files -n %{name}+target-lexicon-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+targets-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+targets-devel %{_description} This package contains library source intended for building other packages which use the "targets" feature of the "%{crate}" crate. %files -n %{name}+targets-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Mon May 23 2022 Fabio Valentini 0.10.3-1 - Update to version 0.10.3; Fixes RHBZ#2088293 * Fri Feb 25 2022 Fabio Valentini 0.10.2-1 - Update to version 0.10.2; Fixes RHBZ#2050634 * Wed Feb 02 2022 Rémi Lauzier 0.9.1-1 - Update to version 0.9.1; Fixes RHBZ#2048915 * Fri Jan 21 2022 Fedora Release Engineering 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 15 2021 Rémi Lauzier 0.9.0-1 - Update to version 0.9.0; Fixes RHBZ#1999486 * Thu Aug 05 2021 Rémi Lauzier 0.8.1-1 - Update to version 0.8.1; Fixes RHBZ#1990578 * Fri Jul 23 2021 Fedora Release Engineering 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun Jul 18 2021 Rémi Lauzier 0.8.0-3 - Relax target-lexicon to version 0.12; Fixes RHBZ#1983368 * Fri Jul 16 2021 Rémi Lauzier 0.8.0-1 - Update to version 0.8.0; Fixes RHBZ#1982978 * Mon Jul 12 2021 Rémi Lauzier 0.7.4-2 - Update for target-lexicon 0.12; Fixes RHBZ#1981348 * Sat Jul 10 2021 Rémi Lauzier 0.7.4-1 - Initial package; Fixes RHBZ#1976529