diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70bca25 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cbc-0.1.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index b9cfa23..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-cbc - -The rust-cbc package diff --git a/rust-cbc.spec b/rust-cbc.spec new file mode 100644 index 0000000..0723cd7 --- /dev/null +++ b/rust-cbc.spec @@ -0,0 +1,118 @@ +# 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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..ee57414 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cbc-0.1.2.crate) = d3b33deff64d839ad25141f1c3b5fbeaa21f71aee7b58dbed91e7d257f93e68073c8d4a63d4c4eb9775c20f00bb0ceeee714a8218e85a231f30cd7423022f820