From a62fcc6fdadedc3d2da4cd542ec3208f8398010a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 8 Jun 2023 11:22:37 +0200 Subject: [PATCH] Initial import (#2213209) --- .gitignore | 1 + README.md | 3 -- rust-serdect.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 2 + sources | 1 + 5 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-serdect.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6544bc6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serdect-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 24c6445..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serdect - -The rust-serdect package diff --git a/rust-serdect.spec b/rust-serdect.spec new file mode 100644 index 0000000..9a8c63f --- /dev/null +++ b/rust-serdect.spec @@ -0,0 +1,96 @@ +# Generated by rust2rpm 24 +# * missing dev-dependencies: serde-json-core ^0.5 +%bcond_with check +%global debug_package %{nil} + +%global crate serdect + +Name: rust-serdect +Version: 0.2.0 +Release: %autorelease +Summary: Constant-time serde serializer/deserializer helpers for data that potentially contains secrets + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/serdect +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Constant-time serde serializer/deserializer helpers for data that +potentially contains secrets (e.g. cryptographic keys).} + +%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}+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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..48ce7fe --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Constant-time serializer/deserializer helpers for serde diff --git a/sources b/sources new file mode 100644 index 0000000..5a79625 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serdect-0.2.0.crate) = b96d631dae093e9852c2c71efd4fcf6f183e72817cb60944bfe7c90281e8e25b4167c3c71c7184bf8a42c23fade704b28c30d03d429cfd028d8a75eed4e2e0e6