commit 4f6e700e7ec6d419f0ed9a64747324c169cd93f8 Author: MSVSphere Packaging Team Date: Fri Dec 20 16:51:38 2024 +0300 import rust-raw-window-handle-0.6.2-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c5a2975 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/raw-window-handle-0.6.2.crate diff --git a/.rust-raw-window-handle.metadata b/.rust-raw-window-handle.metadata new file mode 100644 index 0000000..4f55774 --- /dev/null +++ b/.rust-raw-window-handle.metadata @@ -0,0 +1 @@ +4414aed83f99a924dd1262cc3acfd2d4032f5060 SOURCES/raw-window-handle-0.6.2.crate diff --git a/SOURCES/raw-window-handle-fix-metadata-auto.diff b/SOURCES/raw-window-handle-fix-metadata-auto.diff new file mode 100644 index 0000000..884f260 --- /dev/null +++ b/SOURCES/raw-window-handle-fix-metadata-auto.diff @@ -0,0 +1,15 @@ +--- raw-window-handle-0.6.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ raw-window-handle-0.6.2/Cargo.toml 2024-06-11T14:04:20.080911+00:00 +@@ -45,12 +45,6 @@ + alloc = [] + std = ["alloc"] + wasm-bindgen-0-2 = [ +- "wasm-bindgen", + "std", + ] + +-[target."cfg(target_family = \"wasm\")".dependencies.wasm-bindgen] +-version = "0.2.87" +-features = ["std"] +-optional = true +-default-features = false diff --git a/SOURCES/raw-window-handle-fix-metadata.diff b/SOURCES/raw-window-handle-fix-metadata.diff new file mode 100644 index 0000000..c755b6f --- /dev/null +++ b/SOURCES/raw-window-handle-fix-metadata.diff @@ -0,0 +1,10 @@ +--- raw-window-handle-0.6.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ raw-window-handle-0.6.2/Cargo.toml 2024-06-11T14:04:27.234942+00:00 +@@ -44,7 +44,3 @@ + [features] + alloc = [] + std = ["alloc"] +-wasm-bindgen-0-2 = [ +- "std", +-] +- diff --git a/SPECS/rust-raw-window-handle.spec b/SPECS/rust-raw-window-handle.spec new file mode 100644 index 0000000..335a070 --- /dev/null +++ b/SPECS/rust-raw-window-handle.spec @@ -0,0 +1,162 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate raw-window-handle + +Name: rust-raw-window-handle +Version: 0.6.2 +Release: %autorelease +Summary: Interoperability library for Rust Windowing applications + +License: MIT OR Apache-2.0 OR Zlib +URL: https://crates.io/crates/raw-window-handle +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: raw-window-handle-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * remove wasm-specific features +Patch: raw-window-handle-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Interoperability library for Rust Windowing applications.} + +%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.md +%license %{crate_instdir}/LICENSE-MIT.md +%license %{crate_instdir}/LICENSE-ZLIB.md +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-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} -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.2-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 0.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jun 11 2024 Fabio Valentini - 0.6.2-1 +- Update to version 0.6.2; Fixes RHBZ#2281049 + +* Tue Apr 23 2024 Fabio Valentini - 0.6.1-1 +- Update to version 0.6.1; Fixes RHBZ#2276241 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Dec 23 2023 Aleksei Bavshin - 0.6.0-1 +- Update to 0.6.0 (rhbz#2241591) + +* Fri Jul 21 2023 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun May 07 2023 Aleksei Bavshin - 0.5.2-1 +- Update to 0.5.2 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.4.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Mar 29 2022 Fabio Valentini - 0.4.3-1 +- Update to version 0.4.3; Fixes RHBZ#2069801 + +* Fri Feb 25 2022 Zbigniew Jędrzejewski-Szmek - 0.4.2-1 +- Version 0.4.2 (rhbz#2023470) + +* Fri Jan 21 2022 Fedora Release Engineering - 0.3.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 17:24:38 CEST 2020 returntrip - 0.3.3-1 +- Initial package + +## END: Generated by rpmautospec