## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 Name: sudo-rs Version: 0.2.15 Release: %autorelease Summary: Memory safe implementation of sudo and su # sudo-rs and all its dependencies are "Apache-2.0 OR MIT" licensed License: Apache-2.0 OR MIT # LICENSE.dependencies contains a full license breakdown URL: https://github.com/trifectatechfoundation/sudo-rs Source: %{url}/archive/v%{version}/sudo-rs-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: pam-devel %if %{with check} BuildRequires: /usr/bin/pkill %endif # depends on shared sudo configuration Requires: sudo %description A memory safe implementation of sudo and su. %prep %autosetup -n sudo-rs-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -t -f pam-login %build %cargo_build -f pam-login %{cargo_license_summary -f pam-login} %{cargo_license -f pam-login} > LICENSE.dependencies %install install -Dpm 0755 target/rpm/su -T %{buildroot}/%{_bindir}/su-rs install -Dpm 0755 target/rpm/sudo -T %{buildroot}/%{_bindir}/sudo-rs install -Dpm 0755 target/rpm/visudo -T %{buildroot}/%{_bindir}/visudo-rs %if %{with check} %check # * skip a test that fails due to inconsistency between mockbuild user / mock group: # https://github.com/trifectatechfoundation/sudo-rs/issues/1293 # https://github.com/rpm-software-management/mock/issues/1643 %cargo_test -f pam-login -- -- --exact --skip common::context::tests::test_build_run_context %endif %files %license COPYRIGHT %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %doc CHANGELOG.md %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc README.md %doc SECURITY.md %attr(4755, root, root) %{_bindir}/su-rs %attr(4111, root, root) %{_bindir}/sudo-rs %attr(0755, root, root) %{_bindir}/visudo-rs %changelog ## START: Generated by rpmautospec * Sat Sep 05 2026 KairikiFedora <13278297951@sina.cn> - 0.2.15-1 - Update to version 0.2.15 * Fri Jul 17 2026 Fedora Release Engineering - 0.2.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jun 25 2026 Fabio Valentini - 0.2.14-1 - Update to version 0.2.14; Fixes RHBZ#2491513 * Thu Mar 19 2026 Fabio Valentini - 0.2.13-1 - Update to version 0.2.13; Fixes RHBZ#2446290 * Tue Feb 10 2026 Fabio Valentini - 0.2.12-1 - Update to version 0.2.12; Fixes RHBZ#2438235 * Sat Jan 17 2026 Fedora Release Engineering - 0.2.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sat Dec 20 2025 Fabio Valentini - 0.2.11-2 - Install executables correctly * Thu Dec 18 2025 Fabio Valentini - 0.2.11-1 - Update to version 0.2.11; Fixes RHBZ#2422786 * Mon Nov 17 2025 Fabio Valentini - 0.2.10-1 - Update to version 0.2.10; Fixes RHBZ#2413768 * Fri Oct 17 2025 Fabio Valentini - 0.2.9-1 - Update to version 0.2.9; Fixes RHBZ#2395769 * Fri Jul 25 2025 Fedora Release Engineering - 0.2.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue May 13 2025 Fabio Valentini - 0.2.6-1 - Update to version 0.2.6; Fixes RHBZ#2356685 * Mon Mar 17 2025 Fabio Valentini - 0.2.4-1 - Update to version 0.2.4; Fixes RHBZ#2347522 * Sun Jan 19 2025 Fedora Release Engineering - 0.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Jul 22 2024 Fabio Valentini - 0.2.3-1 - Update to version 0.2.3; Fixes RHBZ#2298066 * Sat Jul 20 2024 Fedora Release Engineering - 0.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Fabio Valentini - 0.2.2-3 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Tue Mar 19 2024 Fabio Valentini - 0.2.2-2 - Regenerate with rust2rpm v26 * Sat Feb 24 2024 Fabio Valentini - 0.2.2-1 - Initial import (#2264457) ## END: Generated by rpmautospec