From 2f1d7c2d9f5bfdbfeeb3a95821428d77399037f6 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 15 Jun 2023 11:39:01 -0500 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-cool_asserts.spec | 68 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 rust-cool_asserts.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6d9cd6c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cool_asserts-1.1.1.crate diff --git a/rust-cool_asserts.spec b/rust-cool_asserts.spec new file mode 100644 index 0000000..0665fad --- /dev/null +++ b/rust-cool_asserts.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate cool_asserts + +Name: rust-cool_asserts +Version: 1.1.1 +Release: %autorelease +Summary: Collection of useful testing assertions and utilities + +License: MPL-2.0 +URL: https://crates.io/crates/cool_asserts +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A collection of useful testing assertions and utilities.} + +%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 + +%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..6f7ac51 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cool_asserts-1.1.1.crate) = 2cfb7afac1916796398e9e84e1793de8d9ab10d3c11db26381e1c57ef2ffa0adb01e0bfded5f066d9366cbe3bb3e6fed30670cf9214bf5e192b6ade1e4231417