## 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 fs4 Name: rust-fs4 Version: 0.12.0 Release: %autorelease Summary: No libc, pure Rust cross-platform file locks License: MIT OR Apache-2.0 URL: https://crates.io/crates/fs4 Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: fs4-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * Disable feature 'smol' (missing dependencies: smol, smol-potat) # * Port tests from tempdir to tempfile: # https://github.com/al8n/fs4-rs/pull/35 Patch: fs4-fix-metadata.diff Patch: 0001-Port-from-tempdir-to-tempfile.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.} %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}/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}+async-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-std-devel %{_description} This package contains library source intended for building other packages which use the "async-std" feature of the "%{crate}" crate. %files -n %{name}+async-std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fs-err2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fs-err2-devel %{_description} This package contains library source intended for building other packages which use the "fs-err2" feature of the "%{crate}" crate. %files -n %{name}+fs-err2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fs-err2-tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fs-err2-tokio-devel %{_description} This package contains library source intended for building other packages which use the "fs-err2-tokio" feature of the "%{crate}" crate. %files -n %{name}+fs-err2-tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fs-err3-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fs-err3-devel %{_description} This package contains library source intended for building other packages which use the "fs-err3" feature of the "%{crate}" crate. %files -n %{name}+fs-err3-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fs-err3-tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fs-err3-tokio-devel %{_description} This package contains library source intended for building other packages which use the "fs-err3-tokio" feature of the "%{crate}" crate. %files -n %{name}+fs-err3-tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sync-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sync-devel %{_description} This package contains library source intended for building other packages which use the "sync" feature of the "%{crate}" crate. %files -n %{name}+sync-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-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 %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sat Feb 01 2025 Aleksei Bavshin - 0.12.0-1 - Uncommitted changes * Sat Feb 01 2025 Aleksei Bavshin - 0.9.1-1 - Update to 0.9.1 * Mon Jan 20 2025 Fabio Valentini - 0.8.4-4 - Port from tempdir to tempfile * Sun Jan 19 2025 Fedora Release Engineering - 0.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 0.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 16 2024 Fabio Valentini - 0.8.4-1 - Update to version 0.8.4; Fixes RHBZ#2291278 * Sat Apr 13 2024 Aleksei Bavshin - 0.8.2-1 - Update to 0.8.2 (#2272617) * Wed Mar 20 2024 Aleksei Bavshin - 0.8.1-1 - Initial import (rhbz#2267095) ## END: Generated by rpmautospec