From 7540273e09249094f76bfcee6661b782fb7e59bf Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 9 May 2023 09:16:24 -0700 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-brownstone.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 .gitignore create mode 100644 rust-brownstone.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d45ac0f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/brownstone-3.0.0.crate diff --git a/rust-brownstone.spec b/rust-brownstone.spec new file mode 100644 index 0000000..848f95d --- /dev/null +++ b/rust-brownstone.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate brownstone + +Name: rust-brownstone +Version: 3.0.0 +Release: %autorelease +Summary: Utilities for building fixed-size arrays + +License: MPL-2.0 +URL: https://crates.io/crates/brownstone +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Utilities for building fixed-size arrays.} + +%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..568649b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (brownstone-3.0.0.crate) = 52ccf0d970fca06cd5d6585e589e61c3a455a6485f006eb74cba2357c0649c015ccd83ce8c2697953032d4e960f7b8fe23796fe4ac6f4cb43a977ee0d887007d