From 99e7c3a7b36f60919e510836e759f28881188244 Mon Sep 17 00:00:00 2001
From: MSVSphere Packaging Team <packager@msvsphere-os.ru>
Date: Fri, 20 Dec 2024 15:03:24 +0300
Subject: [PATCH] import rust-cbc-0.1.2-4.el10

---
 .gitignore          |   1 +
 .rust-cbc.metadata  |   1 +
 SPECS/rust-cbc.spec | 143 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 145 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 .rust-cbc.metadata
 create mode 100644 SPECS/rust-cbc.spec

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a191adb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+SOURCES/cbc-0.1.2.crate
diff --git a/.rust-cbc.metadata b/.rust-cbc.metadata
new file mode 100644
index 0000000..ad55404
--- /dev/null
+++ b/.rust-cbc.metadata
@@ -0,0 +1 @@
+bf581e5a00bd7d3237b2b887f1252924eb99ae87  SOURCES/cbc-0.1.2.crate
diff --git a/SPECS/rust-cbc.spec b/SPECS/rust-cbc.spec
new file mode 100644
index 0000000..42676b2
--- /dev/null
+++ b/SPECS/rust-cbc.spec
@@ -0,0 +1,143 @@
+## START: Set by rpmautospec
+## (rpmautospec version 0.7.2)
+## RPMAUTOSPEC: autorelease, autochangelog
+%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
+    release_number = 4;
+    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 cbc
+
+Name:           rust-cbc
+Version:        0.1.2
+Release:        %autorelease
+Summary:        Cipher Block Chaining (CBC) block cipher mode of operation
+
+License:        MIT OR Apache-2.0
+URL:            https://crates.io/crates/cbc
+Source:         %{crates_source}
+
+BuildRequires:  rust-packaging >= 21
+
+%global _description %{expand:
+Cipher Block Chaining (CBC) block cipher mode of operation.}
+
+%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}+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}+block-padding-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+block-padding-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "block-padding" feature of the "%{crate}" crate.
+
+%files       -n %{name}+block-padding-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
+
+%package     -n %{name}+zeroize-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+zeroize-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "zeroize" feature of the "%{crate}" crate.
+
+%files       -n %{name}+zeroize-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 <packager@msvsphere-os.ru> - 0.1.2-4
+- Rebuilt for MSVSphere 10
+
+## START: Generated by rpmautospec
+* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
+* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
+* Wed Jun 07 2023 Fabio Valentini <decathorpe@gmail.com> - 0.1.2-1
+- Initial import (#2211916)
+## END: Generated by rpmautospec