commit 4c782391704d0a544447ffa55ef656ed60e94040 Author: MSVSphere Packaging Team Date: Fri Dec 20 14:48:58 2024 +0300 import rust-async-io-2.4.0-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbe7dec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/async-io-2.4.0.crate diff --git a/.rust-async-io.metadata b/.rust-async-io.metadata new file mode 100644 index 0000000..dd9c383 --- /dev/null +++ b/.rust-async-io.metadata @@ -0,0 +1 @@ +4ee297a2a07dc56048d4dd2ec094e1152c429252 SOURCES/async-io-2.4.0.crate diff --git a/SOURCES/async-io-fix-metadata-auto.diff b/SOURCES/async-io-fix-metadata-auto.diff new file mode 100644 index 0000000..cb82e5b --- /dev/null +++ b/SOURCES/async-io-fix-metadata-auto.diff @@ -0,0 +1,18 @@ +--- async-io-2.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ async-io-2.4.0/Cargo.toml 2024-11-09T23:36:13.619389+00:00 +@@ -161,14 +161,8 @@ + [target.'cfg(target_os = "linux")'.dev-dependencies.timerfd] + version = "1" + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.59.0" +-features = ["Win32_Foundation"] +- +-[target."cfg(windows)".dev-dependencies.uds_windows] +-version = "1" +- + [lints.rust.unexpected_cfgs] + level = "warn" + priority = 0 + check-cfg = ["cfg(polling_test_poll_backend)"] ++ diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..fc3a216 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["resolve circular dependency between async-{channel,net} and async-io"] + diff --git a/SPECS/rust-async-io.spec b/SPECS/rust-async-io.spec new file mode 100644 index 0000000..76609bb --- /dev/null +++ b/SPECS/rust-async-io.spec @@ -0,0 +1,158 @@ +## 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 26 +# * resolve circular dependency between async-{channel,net} and async-io +%bcond_with check +%global debug_package %{nil} + +%global crate async-io + +Name: rust-async-io +Version: 2.4.0 +Release: %autorelease +Summary: Async I/O and timers + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/async-io +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: async-io-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Async I/O and timers.} + +%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}/CHANGELOG.md +%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 +* Fri Dec 20 2024 MSVSphere Packaging Team - 2.4.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Nov 09 2024 Fabio Valentini - 2.4.0-1 +- Update to version 2.4.0; Fixes RHBZ#2324492 + +* Tue Sep 17 2024 Fabio Valentini - 2.3.4-1 +- Update to version 2.3.4; Fixes RHBZ#2303988 + +* Fri Jul 19 2024 Fedora Release Engineering - 2.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jun 05 2024 Fabio Valentini - 2.3.3-1 +- Update to version 2.3.3; Fixes RHBZ#2284208 + +* Thu Apr 25 2024 Fabio Valentini - 2.3.2-1 +- Update to version 2.3.2; Fixes RHBZ#2268748 + +* Tue Jan 30 2024 Fabio Valentini - 2.3.1-1 +- Update to version 2.3.1; Fixes RHBZ#2258541 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 05 2024 Fabio Valentini - 2.2.2-1 +- Update to version 2.2.2; Fixes RHBZ#2244763 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.13.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Apr 17 2023 Fabio Valentini - 1.13.0-1 +- Update to version 1.13.0; Fixes RHBZ#2180942 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Dec 21 2022 Fabio Valentini - 1.12.0-1 +- Update to version 1.12.0; Fixes RHBZ#2138383 + +* Fri Sep 02 2022 Fabio Valentini - 1.9.0-1 +- Update to version 1.9.0; Fixes RHBZ#2123364 + +* Sat Aug 20 2022 Fabio Valentini - 1.8.0-1 +- Update to version 1.8.0; Fixes RHBZ#2119201 + +* Sat Jul 23 2022 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Fabio Valentini - 1.7.0-1 +- Update to version 1.7.0; Fixes RHBZ#2090541 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jul 08 2021 Fabio Valentini - 1.6.0-1 +- Update to version 1.6.0; Fixes RHBZ#1977770 + +* Wed Apr 28 2021 Fabio Valentini - 1.4.1-1 +- Update to version 1.4.1. +- Fixes RHBZ#1953161 + +* Fri Apr 16 2021 Fabio Valentini - 1.4.0-1 +- Update to version 1.4.0. +- Fixes RHBZ#1950433 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 06 2021 Fabio Valentini - 1.3.1-1 +- Initial package + +## END: Generated by rpmautospec