From 90f650934470b087e41c14d0b8ac6251919ba0a5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 13 Jun 2023 12:05:17 +0200 Subject: [PATCH] Initial import (#2210896) --- .gitignore | 1 + README.md | 3 - rust-ed25519-compact.spec | 212 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 214 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-ed25519-compact.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b09eda --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ed25519-compact-2.0.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 3fe2117..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ed25519-compact - -The rust-ed25519-compact package diff --git a/rust-ed25519-compact.spec b/rust-ed25519-compact.spec new file mode 100644 index 0000000..8157ab4 --- /dev/null +++ b/rust-ed25519-compact.spec @@ -0,0 +1,212 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate ed25519-compact + +Name: rust-ed25519-compact +Version: 2.0.4 +Release: %autorelease +Summary: Small, self-contained, wasm-friendly Ed25519 implementation + +License: MIT +URL: https://crates.io/crates/ed25519-compact +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A small, self-contained, wasm-friendly Ed25519 implementation.} + +%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 +%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}+blind-keys-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+blind-keys-devel %{_description} + +This package contains library source intended for building other packages which +use the "blind-keys" feature of the "%{crate}" crate. + +%files -n %{name}+blind-keys-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ct-codecs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ct-codecs-devel %{_description} + +This package contains library source intended for building other packages which +use the "ct-codecs" feature of the "%{crate}" crate. + +%files -n %{name}+ct-codecs-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+disable-signatures-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+disable-signatures-devel %{_description} + +This package contains library source intended for building other packages which +use the "disable-signatures" feature of the "%{crate}" crate. + +%files -n %{name}+disable-signatures-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+ed25519-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ed25519-devel %{_description} + +This package contains library source intended for building other packages which +use the "ed25519" feature of the "%{crate}" crate. + +%files -n %{name}+ed25519-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+getrandom-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+getrandom-devel %{_description} + +This package contains library source intended for building other packages which +use the "getrandom" feature of the "%{crate}" crate. + +%files -n %{name}+getrandom-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+opt_size-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+opt_size-devel %{_description} + +This package contains library source intended for building other packages which +use the "opt_size" feature of the "%{crate}" crate. + +%files -n %{name}+opt_size-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+pem-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+pem-devel %{_description} + +This package contains library source intended for building other packages which +use the "pem" feature of the "%{crate}" crate. + +%files -n %{name}+pem-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+random-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+random-devel %{_description} + +This package contains library source intended for building other packages which +use the "random" feature of the "%{crate}" crate. + +%files -n %{name}+random-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+self-verify-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+self-verify-devel %{_description} + +This package contains library source intended for building other packages which +use the "self-verify" feature of the "%{crate}" crate. + +%files -n %{name}+self-verify-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}+traits-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+traits-devel %{_description} + +This package contains library source intended for building other packages which +use the "traits" feature of the "%{crate}" crate. + +%files -n %{name}+traits-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+x25519-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+x25519-devel %{_description} + +This package contains library source intended for building other packages which +use the "x25519" feature of the "%{crate}" crate. + +%files -n %{name}+x25519-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..9175727 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ed25519-compact-2.0.4.crate) = 745c03c94eba7135693d259c7382589255e2204df4b890e9b1e44b9150f54579b71df6911cbe19e47a4418c154358bd9eabd73308383884ca071fc5871a0fb4b