commit 0dfae65fb810059848c6aecc401bbcb516880cb1 Author: tigro Date: Mon Jan 15 21:14:00 2024 +0300 import rust-fd-lock-4.0.2-1.el9 diff --git a/.rust-fd-lock.metadata b/.rust-fd-lock.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/fd-lock-4.0.2.crate b/SOURCES/fd-lock-4.0.2.crate new file mode 100644 index 0000000..8974b05 Binary files /dev/null and b/SOURCES/fd-lock-4.0.2.crate differ diff --git a/SOURCES/fd-lock-fix-metadata-auto.diff b/SOURCES/fd-lock-fix-metadata-auto.diff new file mode 100644 index 0000000..3f1b22f --- /dev/null +++ b/SOURCES/fd-lock-fix-metadata-auto.diff @@ -0,0 +1,13 @@ +--- fd-lock-4.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fd-lock-4.0.2/Cargo.toml 2024-01-03T10:40:32.700682+00:00 +@@ -44,10 +44,3 @@ + version = "0.38.0" + features = ["fs"] + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.52.0" +-features = [ +- "Win32_Foundation", +- "Win32_Storage_FileSystem", +- "Win32_System_IO", +-] diff --git a/SPECS/rust-fd-lock.spec b/SPECS/rust-fd-lock.spec new file mode 100644 index 0000000..8c615b3 --- /dev/null +++ b/SPECS/rust-fd-lock.spec @@ -0,0 +1,115 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate fd-lock + +Name: rust-fd-lock +Version: 4.0.2 +Release: %autorelease +Summary: Advisory cross-platform lock on a file using a file descriptor to it + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/fd-lock +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: fd-lock-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Advisory cross-platform lock on a file using a file descriptor to it.} + +%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 + +%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 +* Mon Jan 15 2024 Arkady L. Shane - 4.0.2-1 +- Rebuilt for MSVSphere 9.3 + +* Wed Jan 03 2024 Fabio Valentini - 4.0.2-1 +- Update to version 4.0.2; Fixes RHBZ#2218701 + +* Fri Jul 21 2023 Fedora Release Engineering - 3.0.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Apr 10 2023 Fabio Valentini - 3.0.12-1 +- Update to version 3.0.12; Fixes RHBZ#2182621 + +* Sat Feb 25 2023 Michel Alexandre Salim - 3.0.10-1 +- Update to 3.0.10 +- Use SPDX for licenses + +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 2.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 2.0.0-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Jun 06 2021 Davide Cavalca - 2.0.0-2 +- Install license files + +* Wed Jun 02 2021 Davide Cavalca - 2.0.0-1 +- Initial package +