commit bf7ced96afde15e85f8e8e90b61cc4c6ed48759f Author: MSVSphere Packaging Team Date: Fri Dec 20 17:14:26 2024 +0300 import rust-sized-chunks-0.6.5-11.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a4881e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/sized-chunks-0.6.5.crate diff --git a/.rust-sized-chunks.metadata b/.rust-sized-chunks.metadata new file mode 100644 index 0000000..87a24df --- /dev/null +++ b/.rust-sized-chunks.metadata @@ -0,0 +1 @@ +0d0bf1349f8b1d1801dd201227ea6fa06926dce1 SOURCES/sized-chunks-0.6.5.crate diff --git a/SOURCES/rust2rpm.conf b/SOURCES/rust2rpm.conf new file mode 100644 index 0000000..1150bb8 --- /dev/null +++ b/SOURCES/rust2rpm.conf @@ -0,0 +1,5 @@ +[DEFAULT] +unwanted-features = + array-ops + refpool + ringbuffer diff --git a/SOURCES/sized-chunks-fix-metadata.diff b/SOURCES/sized-chunks-fix-metadata.diff new file mode 100644 index 0000000..cbd6cd0 --- /dev/null +++ b/SOURCES/sized-chunks-fix-metadata.diff @@ -0,0 +1,11 @@ +--- sized-chunks-0.6.5/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ sized-chunks-0.6.5/Cargo.toml 2023-08-22T20:15:40.898467+00:00 +@@ -21,7 +21,7 @@ + readme = "./README.md" + keywords = ["sparse-array"] + categories = ["data-structures"] +-license = "MPL-2.0+" ++license = "MPL-2.0" + repository = "https://github.com/bodil/sized-chunks" + [package.metadata.docs.rs] + all-features = true diff --git a/SPECS/rust-sized-chunks.spec b/SPECS/rust-sized-chunks.spec new file mode 100644 index 0000000..591a321 --- /dev/null +++ b/SPECS/rust-sized-chunks.spec @@ -0,0 +1,187 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 11; + 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate sized-chunks + +Name: rust-sized-chunks +Version: 0.6.5 +Release: %autorelease +Summary: Efficient sized chunk datatypes + +License: MPL-2.0 +URL: https://crates.io/crates/sized-chunks +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * fix invalid SPDX identifier in crate license: +# https://github.com/bodil/sized-chunks/issues/32 +Patch: sized-chunks-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Efficient sized chunk datatypes.} + +%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}/LICENCE.md +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/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}+arbitrary-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+arbitrary-devel %{_description} + +This package contains library source intended for building other packages which +use the "arbitrary" feature of the "%{crate}" crate. + +%files -n %{name}+arbitrary-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -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 - 0.6.5-11 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.6.5-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 0.6.5-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 22 2023 Fabio Valentini - 0.6.5-9 +- Fix invalid SPDX identifier in crate license + +* Fri Jul 21 2023 Fedora Release Engineering - 0.6.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun May 21 2023 Fabio Valentini - 0.6.5-7 +- Regenerate with rust2rpm v24 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.6.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.6.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.6.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.6.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Apr 21 2021 Fabio Valentini - 0.6.5-1 +- Update to version 0.6.5. + +* Sat Feb 27 2021 Fabio Valentini - 0.6.4-1 +- Update to version 0.6.4. +- Fixes RHBZ#1929902 + +* Sun Feb 14 2021 Fabio Valentini - 0.6.3-1 +- Update to version 0.6.3. +- Fixes RHBZ#1928475 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Dec 12 2020 Fabio Valentini - 0.6.2-4 +- Remove features with missing dependencies (array-ops, refpool). + +* Sat Aug 01 2020 Fedora Release Engineering - 0.6.2-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 16 19:43:14 CEST 2020 Igor Raits - 0.6.2-1 +- Update to 0.6.2 + +* Wed Mar 11 2020 Josh Stone - 0.5.3-1 +- Update to 0.5.3 + +* Tue Mar 10 2020 Josh Stone - 0.5.2-1 +- Update to 0.5.2 + +* Sat Feb 15 12:40:47 CET 2020 Igor Raits - 0.5.1-1 +- Update to 0.5.1 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Sep 01 17:14:29 CEST 2019 Igor Gnatenko - 0.3.2-1 +- Update to 0.3.2 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jun 09 17:55:01 CEST 2019 Igor Gnatenko - 0.3.0-1 +- Initial package + +## END: Generated by rpmautospec