From 3b4a5b00e142b70b8df562bcf2f23100fc7b222a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 11 Jun 2023 14:24:28 +0200 Subject: [PATCH] Initial import (#2213266) --- .gitignore | 1 + README.md | 3 -- rust-primeorder.spec | 120 +++++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 2 + sources | 1 + 5 files changed, 124 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-primeorder.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3496aa9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/primeorder-0.13.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index 3fe66ba..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-primeorder - -The rust-primeorder package diff --git a/rust-primeorder.spec b/rust-primeorder.spec new file mode 100644 index 0000000..2daff3b --- /dev/null +++ b/rust-primeorder.spec @@ -0,0 +1,120 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate primeorder + +Name: rust-primeorder +Version: 0.13.2 +Release: %autorelease +Summary: Complete addition formulas for prime order elliptic curves + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/primeorder +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Pure Rust implementation of complete addition formulas for prime order +elliptic curves (Renes-Costello-Batina 2015). Generic over field +elements and curve equation coefficients.} + +%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}+dev-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+dev-devel %{_description} + +This package contains library source intended for building other packages which +use the "dev" feature of the "%{crate}" crate. + +%files -n %{name}+dev-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serdect-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serdect-devel %{_description} + +This package contains library source intended for building other packages which +use the "serdect" feature of the "%{crate}" crate. + +%files -n %{name}+serdect-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_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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..19f70fe --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Complete addition formulas for prime order elliptic curves diff --git a/sources b/sources new file mode 100644 index 0000000..68c7c69 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (primeorder-0.13.2.crate) = 8d7005b3463442f6e982e7cce91851cf60abb9da7fa20b148a660f2727f0229c6af33411fefba6a3c956325ccaca593a8e13a0f8d905b1ea26bc3f53fcbe9b11