commit 3a3e5748b384ba3e9773e15003ccd6ddad6ebb89 Author: tigro Date: Mon Jan 15 21:50:54 2024 +0300 import rust-memmap2-0.9.0-2.el9 diff --git a/.rust-memmap2.metadata b/.rust-memmap2.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/memmap2-0.9.0.crate b/SOURCES/memmap2-0.9.0.crate new file mode 100644 index 0000000..c327023 Binary files /dev/null and b/SOURCES/memmap2-0.9.0.crate differ diff --git a/SPECS/rust-memmap2.spec b/SPECS/rust-memmap2.spec new file mode 100644 index 0000000..95ccd3a --- /dev/null +++ b/SPECS/rust-memmap2.spec @@ -0,0 +1,160 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 memmap2 + +Name: rust-memmap2 +Version: 0.9.0 +Release: %autorelease +Summary: Cross-platform Rust API for memory-mapped file IO + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/memmap2 +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Cross-platform Rust API for memory-mapped file IO.} + +%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 + +%package -n %{name}+stable_deref_trait-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+stable_deref_trait-devel %{_description} + +This package contains library source intended for building other packages which +use the "stable_deref_trait" feature of the "%{crate}" crate. + +%files -n %{name}+stable_deref_trait-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 +# * skip a test that fails on ppc64le: +# https://github.com/RazrFalcon/memmap2-rs/issues/105 +%cargo_test -- -- --exact --skip test::advise_writes_unsafely_to_part_of_map +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.9.0-2 +- Rebuilt for MSVSphere 9.3 + +* Fri Dec 08 2023 Fabio Valentini - 0.9.0-2 +- Skip a test that fails on ppc64le + +* Fri Dec 08 2023 Fabio Valentini - 0.9.0-1 +- Update to version 0.9.0; Fixes RHBZ#2240509 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jul 06 2023 Fabio Valentini - 0.7.1-1 +- Update to version 0.7.1; Fixes RHBZ#2196659 + +* Tue Feb 28 2023 Fabio Valentini - 0.5.10-1 +- Update to version 0.5.10; Fixes RHBZ#2172628 + +* Sun Feb 19 2023 Fabio Valentini - 0.5.9-1 +- Update to version 0.5.9; Fixes RHBZ#2170919 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.5.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 11 2022 Fabio Valentini - 0.5.8-1 +- Update to version 0.5.8; Fixes RHBZ#2141382 + +* Fri Sep 02 2022 Fabio Valentini - 0.5.7-1 +- Update to version 0.5.7; Fixes RHBZ#2118353 + +* Fri Aug 12 2022 Fabio Valentini - 0.5.6-1 +- Update to version 0.5.6; Fixes RHBZ#2117716 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.5.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jul 14 2022 Fabio Valentini - 0.5.5-1 +- Update to version 0.5.5; Fixes RHBZ#2093553 + +* Thu Apr 14 2022 Fabio Valentini - 0.5.3-1 +- Update to version 0.5.3; Fixes RHBZ#2005109 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Aug 21 2021 Fabio Valentini - 0.3.1-1 +- Update to version 0.3.1; Fixes RHBZ#1993703 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 18 2021 Fabio Valentini - 0.3.0-2 +- Skip a test that does not work on 32-bit architectures. + +* Fri Jun 18 2021 Fabio Valentini - 0.3.0-1 +- Update to version 0.3.0. +- Fixes RHBZ#1909435 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Feb 29 13:45:08 CET 2020 Igor Raits - 0.1.0-1 +- Initial package +