## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate num-modular Name: rust-num-modular Version: 0.6.1 Release: %autorelease Summary: A generic implementation of integer division and modular arithmetics License: Apache-2.0 URL: https://crates.io/crates/num-modular Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Implementation of efficient integer division and modular arithmetic operations with generic number types. Supports various backends including num-bigint, etc..} %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.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}+num-bigint-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-bigint-devel %{_description} This package contains library source intended for building other packages which use the "num-bigint" feature of the "%{crate}" crate. %files -n %{name}+num-bigint-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-integer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-integer-devel %{_description} This package contains library source intended for building other packages which use the "num-integer" feature of the "%{crate}" crate. %files -n %{name}+num-integer-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-traits-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-traits-devel %{_description} This package contains library source intended for building other packages which use the "num-traits" feature of the "%{crate}" crate. %files -n %{name}+num-traits-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-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 # * fails intermittently with `attempt to calculate the remainder with a divisor # of zero` %cargo_test -- -- --exact --skip reduced::tests::test_against_prim stdout %endif %changelog ## START: Generated by rpmautospec * Mon Mar 16 2026 Michel Lind - 0.6.1-1 - Update to version 0.6.1 * Sat Jan 17 2026 Fedora Release Engineering - 0.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 0.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Aug 02 2024 Michel Lind - 0.5.1-2 - Disable intermittently failing test * Fri Aug 02 2024 Michel Lind - 0.5.1-1 - Initial package (rhbz#2302439) ## END: Generated by rpmautospec