From d139cd3452315be83035e40abfd3e9ece936d84b Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 1 Aug 2023 13:11:26 -0500 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-probe.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-probe.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..791d1b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/probe-0.5.1.crate diff --git a/rust-probe.spec b/rust-probe.spec new file mode 100644 index 0000000..401f640 --- /dev/null +++ b/rust-probe.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate probe + +Name: rust-probe +Version: 0.5.1 +Release: %autorelease +Summary: Static instrumentation probes + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/probe +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Static instrumentation probes.} + +%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}/AUTHORS.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..6750b6e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (probe-0.5.1.crate) = 19dd7fbec54f4a8b78a3cd27a09a92237a2f59e95aa8225ce3b82a75ef6355e489e998f37befc7f478e5bede89e5099a55062f73ff70c506dbb8846f5743d145