From 407aca183959d2c9f2b03441169bcff2871e6b06 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 16:52:33 +0300 Subject: [PATCH] import rust-ref-cast-1.0.23-2.el10 --- .gitignore | 1 + .rust-ref-cast.metadata | 1 + SOURCES/rust2rpm.toml | 4 + SPECS/rust-ref-cast.spec | 167 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 173 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-ref-cast.metadata create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-ref-cast.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..35d403a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ref-cast-1.0.23.crate diff --git a/.rust-ref-cast.metadata b/.rust-ref-cast.metadata new file mode 100644 index 0000000..d5115cc --- /dev/null +++ b/.rust-ref-cast.metadata @@ -0,0 +1 @@ +185238c36c7c7e246faa62d1369a3d05ad483962 SOURCES/ref-cast-1.0.23.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..553347c --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["tests can only be run in-tree"] + diff --git a/SPECS/rust-ref-cast.spec b/SPECS/rust-ref-cast.spec new file mode 100644 index 0000000..f970e5b --- /dev/null +++ b/SPECS/rust-ref-cast.spec @@ -0,0 +1,167 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## 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 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +%global crate ref-cast + +Name: rust-ref-cast +Version: 1.0.23 +Release: %autorelease +Summary: Safely cast &T to &U where the struct U contains a single field of type T + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/ref-cast +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Safely cast &T to &U where the struct U contains a single field of type +T.} + +%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}/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 - 1.0.23-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 1.0.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue May 07 2024 Fabio Valentini - 1.0.23-1 +- Update to version 1.0.23; Fixes RHBZ#2279448 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.0.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jan 03 2024 Fabio Valentini - 1.0.22-1 +- Update to version 1.0.22; Fixes RHBZ#2254419 + +* Sun Aug 27 2023 Fabio Valentini - 1.0.20-1 +- Update to version 1.0.20; Fixes RHBZ#2232467 + +* Sat Jul 29 2023 Fabio Valentini - 1.0.19-1 +- Update to version 1.0.19; Fixes RHBZ#2224478 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.0.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jul 07 2023 Fabio Valentini - 1.0.18-1 +- Update to version 1.0.18; Fixes RHBZ#2219448 + +* Wed Mar 22 2023 Fabio Valentini - 1.0.16-1 +- Update to version 1.0.16; Fixes RHBZ#2179483 + +* Tue Mar 07 2023 Fabio Valentini - 1.0.15-1 +- Update to version 1.0.15; Fixes RHBZ#2175345 + +* Fri Feb 03 2023 Fabio Valentini - 1.0.14-1 +- Update to version 1.0.14; Fixes RHBZ#2154591 + +* Sat Jan 21 2023 Fedora Release Engineering - 1.0.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Dec 12 2022 Fabio Valentini - 1.0.13-1 +- Update to version 1.0.13; Fixes RHBZ#2133344 + +* Sat Aug 06 2022 Fabio Valentini - 1.0.9-1 +- Update to version 1.0.9; Fixes RHBZ#2114938 + +* Sat Jul 23 2022 Fedora Release Engineering - 1.0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Jul 17 2022 Fabio Valentini - 1.0.8-1 +- Update to version 1.0.8; Fixes RHBZ#2107779 + +* Wed May 25 2022 Fabio Valentini - 1.0.7-1 +- Update to version 1.0.7; Fixes RHBZ#2078256 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 29 22:12:24 CET 2020 Igor Raits - 1.0.6-1 +- Update to 1.0.6 (Fixes: RHBZ#1911514) + +* Sun Dec 27 08:54:56 CET 2020 Igor Raits - 1.0.5-1 +- Update to 1.0.5 + +* Thu Nov 12 2020 Fabio Valentini - 1.0.3-1 +- Update to version 1.0.3. +- Fixes RHBZ#1892516 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 19 2020 Josh Stone - 1.0.2-1 +- Update to 1.0.2 + +* Mon Mar 23 19:32:42 CET 2020 Igor Raits - 1.0.1-1 +- Update to 1.0.1 + +* Mon Mar 23 18:53:43 CET 2020 Igor Raits - 1.0.0-1 +- Initial package + +## END: Generated by rpmautospec