From 9e5467d9f373330a89c5e585f12ea44d7981692a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 28 Apr 2023 21:49:16 +0200 Subject: [PATCH] Initial import (#2186547) --- .gitignore | 1 + README.md | 3 -- rust-openpgp-cert-d.spec | 69 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-openpgp-cert-d.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ec13147 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/openpgp-cert-d-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 899e903..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-openpgp-cert-d - -The rust-openpgp-cert-d package diff --git a/rust-openpgp-cert-d.spec b/rust-openpgp-cert-d.spec new file mode 100644 index 0000000..e82ea50 --- /dev/null +++ b/rust-openpgp-cert-d.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +# * files required for compiling tests are not included in published crates +%bcond_with check +%global debug_package %{nil} + +%global crate openpgp-cert-d + +Name: rust-openpgp-cert-d +Version: 0.1.0 +Release: %autorelease +Summary: Shared OpenPGP Certificate Directory + +License: MIT +URL: https://crates.io/crates/openpgp-cert-d +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Shared OpenPGP Certificate Directory.} + +%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.txt +%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 + +%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..77766e5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (openpgp-cert-d-0.1.0.crate) = bef579a914438ee62ae92f150e3b6297a523f67a7374333b2ae37eb2a263c6e0787064aba49d91ee0c4805d6d0a205308f118028f8ee9942cc6c241c4a5d17ee