## START: Set by rpmautospec ## (rpmautospec version 0.7.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 27 %bcond check 1 %global debug_package %{nil} %global crate rustix Name: rust-rustix Version: 1.0.1 Release: %autorelease Summary: Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls License: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT URL: https://crates.io/crates/rustix Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: rustix-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop dependencies on compiler internals Patch: rustix-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls.} %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}/COPYRIGHT %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-Apache-2.0_WITH_LLVM-exception %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGES.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/ORG_CODE_OF_CONDUCT.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/SECURITY.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}+all-apis-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+all-apis-devel %{_description} This package contains library source intended for building other packages which use the "all-apis" feature of the "%{crate}" crate. %files -n %{name}+all-apis-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+event-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+event-devel %{_description} This package contains library source intended for building other packages which use the "event" feature of the "%{crate}" crate. %files -n %{name}+event-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fs-devel %{_description} This package contains library source intended for building other packages which use the "fs" feature of the "%{crate}" crate. %files -n %{name}+fs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+io_uring-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+io_uring-devel %{_description} This package contains library source intended for building other packages which use the "io_uring" feature of the "%{crate}" crate. %files -n %{name}+io_uring-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libc-devel %{_description} This package contains library source intended for building other packages which use the "libc" feature of the "%{crate}" crate. %files -n %{name}+libc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+libc_errno-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+libc_errno-devel %{_description} This package contains library source intended for building other packages which use the "libc_errno" feature of the "%{crate}" crate. %files -n %{name}+libc_errno-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+linux_4_11-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+linux_4_11-devel %{_description} This package contains library source intended for building other packages which use the "linux_4_11" feature of the "%{crate}" crate. %files -n %{name}+linux_4_11-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+linux_5_1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+linux_5_1-devel %{_description} This package contains library source intended for building other packages which use the "linux_5_1" feature of the "%{crate}" crate. %files -n %{name}+linux_5_1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+linux_5_11-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+linux_5_11-devel %{_description} This package contains library source intended for building other packages which use the "linux_5_11" feature of the "%{crate}" crate. %files -n %{name}+linux_5_11-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+linux_latest-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+linux_latest-devel %{_description} This package contains library source intended for building other packages which use the "linux_latest" feature of the "%{crate}" crate. %files -n %{name}+linux_latest-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mm-devel %{_description} This package contains library source intended for building other packages which use the "mm" feature of the "%{crate}" crate. %files -n %{name}+mm-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mount-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mount-devel %{_description} This package contains library source intended for building other packages which use the "mount" feature of the "%{crate}" crate. %files -n %{name}+mount-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+net-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+net-devel %{_description} This package contains library source intended for building other packages which use the "net" feature of the "%{crate}" crate. %files -n %{name}+net-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+param-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+param-devel %{_description} This package contains library source intended for building other packages which use the "param" feature of the "%{crate}" crate. %files -n %{name}+param-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pipe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pipe-devel %{_description} This package contains library source intended for building other packages which use the "pipe" feature of the "%{crate}" crate. %files -n %{name}+pipe-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+process-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+process-devel %{_description} This package contains library source intended for building other packages which use the "process" feature of the "%{crate}" crate. %files -n %{name}+process-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pty-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pty-devel %{_description} This package contains library source intended for building other packages which use the "pty" feature of the "%{crate}" crate. %files -n %{name}+pty-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rand-devel %{_description} This package contains library source intended for building other packages which use the "rand" feature of the "%{crate}" crate. %files -n %{name}+rand-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+runtime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+runtime-devel %{_description} This package contains library source intended for building other packages which use the "runtime" feature of the "%{crate}" crate. %files -n %{name}+runtime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+shm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+shm-devel %{_description} This package contains library source intended for building other packages which use the "shm" feature of the "%{crate}" crate. %files -n %{name}+shm-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 %package -n %{name}+stdio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+stdio-devel %{_description} This package contains library source intended for building other packages which use the "stdio" feature of the "%{crate}" crate. %files -n %{name}+stdio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+system-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+system-devel %{_description} This package contains library source intended for building other packages which use the "system" feature of the "%{crate}" crate. %files -n %{name}+system-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+termios-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+termios-devel %{_description} This package contains library source intended for building other packages which use the "termios" feature of the "%{crate}" crate. %files -n %{name}+termios-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+thread-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+thread-devel %{_description} This package contains library source intended for building other packages which use the "thread" feature of the "%{crate}" crate. %files -n %{name}+thread-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+time-devel %{_description} This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+try_close-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+try_close-devel %{_description} This package contains library source intended for building other packages which use the "try_close" feature of the "%{crate}" crate. %files -n %{name}+try_close-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use-explicitly-provided-auxv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use-explicitly-provided-auxv-devel %{_description} This package contains library source intended for building other packages which use the "use-explicitly-provided-auxv" feature of the "%{crate}" crate. %files -n %{name}+use-explicitly-provided-auxv-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use-libc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use-libc-devel %{_description} This package contains library source intended for building other packages which use the "use-libc" feature of the "%{crate}" crate. %files -n %{name}+use-libc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use-libc-auxv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use-libc-auxv-devel %{_description} This package contains library source intended for building other packages which use the "use-libc-auxv" feature of the "%{crate}" crate. %files -n %{name}+use-libc-auxv-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a %if %{with check} %check # * skip three tests with harmless failures: # https://github.com/bytecodealliance/rustix/issues/1398 %{cargo_test -a -- -- --exact %{shrink: --skip buffer::tests::test_slice --skip buffer::tests::test_slice_uninit --skip buffer::tests::test_spare_capacity }} %endif %changelog ## START: Generated by rpmautospec * Fri Mar 07 2025 Fabio Valentini - 1.0.1-1 - Update to version 1.0.1; Fixes RHBZ#2350467 * Sun Feb 16 2025 Fabio Valentini - 0.38.44-1 - Update to version 0.38.44; Fixes RHBZ#2339384 * Sun Jan 19 2025 Fedora Release Engineering - 0.38.43-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Jan 14 2025 Fabio Valentini - 0.38.43-1 - Update to version 0.38.43; Fixes RHBZ#2336270 * Mon Dec 09 2024 Fabio Valentini - 0.38.42-1 - Update to version 0.38.42; Fixes RHBZ#2331061 * Tue Nov 26 2024 Fabio Valentini - 0.38.41-1 - Update to version 0.38.41; Fixes RHBZ#2327141 * Wed Nov 13 2024 Fabio Valentini - 0.38.40-1 - Update to version 0.38.40; Fixes RHBZ#2323760 * Mon Nov 04 2024 Fabio Valentini - 0.38.38-1 - Update to version 0.38.38; Fixes RHBZ#2322011 * Wed Sep 18 2024 Fabio Valentini - 0.38.37-1 - Update to version 0.38.37; Fixes RHBZ#2308266 * Sat Jul 20 2024 Fedora Release Engineering - 0.38.34-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Apr 25 2024 Fabio Valentini - 0.38.34-1 - Update to version 0.38.34; Fixes RHBZ#2276512 * Mon Apr 22 2024 Fabio Valentini - 0.38.33-1 - Update to version 0.38.33; Fixes RHBZ#2270360 * Thu Feb 01 2024 Fabio Valentini - 0.38.31-1 - Update to version 0.38.31; Fixes RHBZ#2262279 * Fri Jan 26 2024 Fedora Release Engineering - 0.38.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 13 2024 Fabio Valentini - 0.38.30-1 - Update to version 0.38.30; Fixes RHBZ#2258153 * Sun Dec 31 2023 Fabio Valentini - 0.38.28-1 - Update to version 0.38.28; Fixes RHBZ#2252348 * Sat Nov 25 2023 Fabio Valentini - 0.38.25-1 - Update to version 0.38.25; Fixes RHBZ#2249563 * Fri Nov 10 2023 Fabio Valentini - 0.38.21-1 - Update to version 0.38.21; Fixes RHBZ#2242860 * Sat Oct 07 2023 Fabio Valentini - 0.38.17-1 - Update to version 0.38.17; Fixes RHBZ#2239900 * Sun Sep 17 2023 Fabio Valentini - 0.38.13-1 - Update to version 0.38.13; Fixes RHBZ#2214055 * Fri Jul 21 2023 Fedora Release Engineering - 0.37.23-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Fabio Valentini - 0.37.23-1 - Update to version 0.37.23 * Mon May 08 2023 Fabio Valentini - 0.37.19-1 - Update to version 0.37.19; Fixes RHBZ#2191748 * Fri Apr 28 2023 Fabio Valentini - 0.37.15-1 - Update to version 0.37.15; Fixes RHBZ#2188207 * Wed Apr 19 2023 Fabio Valentini - 0.37.12-1 - Update to version 0.37.12; Fixes RHBZ#2187825 * Mon Apr 10 2023 Fabio Valentini - 0.37.11-2 - Re-enable tests * Mon Apr 10 2023 Fabio Valentini - 0.37.11-1 - Update to version 0.37.11; Fixes RHBZ#2175271 * Sun Mar 26 2023 Fabio Valentini - 0.36.11-1 - Update to version 0.36.11 * Thu Mar 16 2023 Fabio Valentini - 0.36.9-1 - Update to version 0.36.9 * Mon Feb 06 2023 Fabio Valentini - 0.36.8-1 - Update to version 0.36.8; Fixes RHBZ#2167031 * Sat Jan 28 2023 Fabio Valentini - 0.36.7-1 - Update to version 0.36.7; Fixes RHBZ#2156503 * Sat Jan 21 2023 Fedora Release Engineering - 0.36.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Dec 11 2022 Fabio Valentini - 0.36.5-1 - Update to version 0.36.5; Fixes RHBZ#2139555 * Thu Nov 10 2022 Fabio Valentini - 0.35.13-1 - Update to version 0.35.13 * Mon Nov 07 2022 Fabio Valentini - 0.35.12-2 - Manually drop windows dependencies to work around rust2rpm bug * Fri Oct 28 2022 Fabio Valentini - 0.35.12-1 - Update to version 0.35.12; Fixes RHBZ#2050429 * Sat Jul 23 2022 Fedora Release Engineering - 0.33.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Apr 15 2022 Fabio Valentini - 0.33.6-3 - Include backported patch to fix vDSO parsing on ppc64le * Thu Apr 14 2022 Fabio Valentini - 0.33.6-2 - Skip tests that are broken on ppc64le with this version * Wed Apr 13 2022 Fabio Valentini - 0.33.6-1 - Update to version 0.33.6 * Fri Feb 04 2022 Fabio Valentini - 0.31.3-1 - Update to version 0.31.3 * Fri Jan 21 2022 Fedora Release Engineering - 0.29.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 03 2021 Olivier Lemasle - 0.29.1-1 - Update to upstream 0.29.1 - Remove Obsoletes for rust-posish * Sun Nov 28 2021 Olivier Lemasle - 0.27.1-1 - Initial package ## END: Generated by rpmautospec