## START: Set by rpmautospec ## (rpmautospec version 0.8.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 28 %bcond check 1 %global debug_package %{nil} # prevent executables from being installed %global cargo_install_bin 0 %global crate uu_expr Name: rust-uu_expr Version: 0.7.0 Release: %autorelease Summary: expr ~ (uutils) display the value of EXPRESSION License: MIT URL: https://crates.io/crates/uu_expr Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * relax onig requirement from ~6.5.1 to 6.4, undoing #7976 and #7973 Patch: uu_expr-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: expr ~ (uutils) display the value of EXPRESSION.} %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 %doc %{crate_instdir}/README.package.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 %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %if 0%{?fedora} %cargo_test %else # * fails on EPEL 9 and 10 with: # ---- syntax_tree::test::starting_stars_become_escaped stdout ---- # thread 'syntax_tree::test::starting_stars_become_escaped' panicked at src/syntax_tree.rs:1116:14: # called `Result::unwrap()` on an `Err` value: InvalidRegexExpression %cargo_test -- -- --exact --skip syntax_tree::test::starting_stars_become_escaped %endif %endif %changelog ## START: Generated by rpmautospec * Wed Apr 01 2026 Michel Lind - 0.7.0-2 - Undo onig version bump in #7976 and #7973, only needed to match systems where oniguruma is newer, but for us we keep onig matched with oniguruma already - Skip one regex test on EPEL * Mon Mar 16 2026 Michel Lind - 0.7.0-1 - Update to version 0.7.0; Resolves RHBZ#2326794 * Sat Jan 17 2026 Fedora Release Engineering - 0.0.27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 0.0.27-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 0.0.27-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Aug 01 2024 Michel Lind - 0.0.27-1 - Update to version 0.0.27; Fixes: RHBZ#2260211 * Sat Jul 20 2024 Fedora Release Engineering - 0.0.23-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Fabio Valentini - 0.0.23-3 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Sat Jan 27 2024 Fedora Release Engineering - 0.0.23-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 12 2024 Michel Lind - 0.0.23-1 - Initial package (rhbz#2257525) ## END: Generated by rpmautospec