commit 07c972c27cee5508c6126d9cdf9143c0e0589048 Author: tigro Date: Mon Jan 15 21:38:48 2024 +0300 import rust-io-lifetimes-2.0.3-1.el9 diff --git a/.rust-io-lifetimes.metadata b/.rust-io-lifetimes.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/io-lifetimes-2.0.3.crate b/SOURCES/io-lifetimes-2.0.3.crate new file mode 100644 index 0000000..6d6a715 Binary files /dev/null and b/SOURCES/io-lifetimes-2.0.3.crate differ diff --git a/SOURCES/io-lifetimes-fix-metadata-auto.diff b/SOURCES/io-lifetimes-fix-metadata-auto.diff new file mode 100644 index 0000000..2d79c7d --- /dev/null +++ b/SOURCES/io-lifetimes-fix-metadata-auto.diff @@ -0,0 +1,29 @@ +--- io-lifetimes-2.0.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ io-lifetimes-2.0.3/Cargo.toml 2023-12-01T22:57:11.221656+00:00 +@@ -48,8 +48,6 @@ + [features] + close = [ + "libc", +- "hermit-abi", +- "windows-sys", + ] + default = [] + +@@ -88,17 +86,3 @@ + version = "0.2.96" + optional = true + +-[target."cfg(target_os = \"hermit\")".dependencies.hermit-abi] +-version = "0.3" +-optional = true +- +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.52.0" +-features = [ +- "Win32_Foundation", +- "Win32_Storage_FileSystem", +- "Win32_Networking_WinSock", +- "Win32_Security", +- "Win32_System_IO", +-] +-optional = true diff --git a/SPECS/rust-io-lifetimes.spec b/SPECS/rust-io-lifetimes.spec new file mode 100644 index 0000000..8d80b43 --- /dev/null +++ b/SPECS/rust-io-lifetimes.spec @@ -0,0 +1,240 @@ +## 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 io-lifetimes + +Name: rust-io-lifetimes +Version: 2.0.3 +Release: %autorelease +Summary: Low-level I/O ownership and borrowing library + +License: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +URL: https://crates.io/crates/io-lifetimes +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: io-lifetimes-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A low-level I/O ownership and borrowing library.} + +%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}/CODE_OF_CONDUCT.md +%doc %{crate_instdir}/ORG_CODE_OF_CONDUCT.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 + +%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}+close-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+close-devel %{_description} + +This package contains library source intended for building other packages which +use the "close" feature of the "%{crate}" crate. + +%files -n %{name}+close-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}+mio-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+mio-devel %{_description} + +This package contains library source intended for building other packages which +use the "mio" feature of the "%{crate}" crate. + +%files -n %{name}+mio-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+os_pipe-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+os_pipe-devel %{_description} + +This package contains library source intended for building other packages which +use the "os_pipe" feature of the "%{crate}" crate. + +%files -n %{name}+os_pipe-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+socket2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+socket2-devel %{_description} + +This package contains library source intended for building other packages which +use the "socket2" feature of the "%{crate}" crate. + +%files -n %{name}+socket2-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 +* Mon Jan 15 2024 Arkady L. Shane - 2.0.3-1 +- Rebuilt for MSVSphere 9.3 + +* Fri Dec 01 2023 Fabio Valentini - 2.0.3-1 +- Update to version 2.0.3; Fixes RHBZ#2252347 + +* Sun Nov 05 2023 Fabio Valentini - 2.0.2-1 +- Update to version 2.0.2; Fixes RHBZ#2214072 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.0.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu May 25 2023 Fabio Valentini - 1.0.11-1 +- Update to version 1.0.11; Fixes RHBZ#2209753 + +* Mon Apr 10 2023 Fabio Valentini - 1.0.10-1 +- Update to version 1.0.10; Fixes RHBZ#2184547 + +* Sun Mar 26 2023 Fabio Valentini - 1.0.9-1 +- Update to version 1.0.9; Fixes RHBZ#2179572 + +* Thu Mar 16 2023 Fabio Valentini - 1.0.7-1 +- Update to version 1.0.7; Fixes RHBZ#2179132 + +* Tue Mar 07 2023 Fabio Valentini - 1.0.6-1 +- Update to version 1.0.6; Fixes RHBZ#2175912 + +* Tue Feb 07 2023 Fabio Valentini - 1.0.5-1 +- Update to version 1.0.5; Fixes RHBZ#2166488 + +* Sun Jan 29 2023 Fabio Valentini - 1.0.4-1 +- Update to version 1.0.4; Fixes RHBZ#2160544 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Dec 11 2022 Fabio Valentini - 1.0.3-1 +- Update to version 1.0.3; Fixes RHBZ#2139533 + +* Thu Nov 10 2022 Fabio Valentini - 0.7.5-1 +- Update to version 0.7.5 + +* Thu Oct 27 2022 Fabio Valentini - 0.7.4-1 +- Update to version 0.7.4; Fixes RHBZ#2094062 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.5.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Apr 12 2022 Fabio Valentini - 0.5.3-1 +- Update to version 0.5.3 + +* Fri Feb 04 2022 Fabio Valentini - 0.4.4-1 +- Update to version 0.4.4 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.4.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Nov 29 2021 Olivier Lemasle - 0.4.3-2 +- Downgrade "mio" and "os_pipe", to fix installation issues + +* Sun Nov 28 2021 Olivier Lemasle - 0.4.3-1 +- Update to upstream 0.4.3 (fixes rhbz#2019950) + +* Wed Sep 22 2021 Olivier Lemasle - 0.3.1-1 +- Update to upstream 0.3.1 (rhbz#1991767) + +* Fri Jul 23 2021 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 25 17:23:36 CEST 2021 Olivier Lemasle - 0.2.0-1 +- Initial package +