From dfc6a32419a67ac0dfb1a7041b5a2a4904e09f63 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 26 Dec 2022 22:24:19 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + LICENSE | 12 +++++++ rust-tracing_facade.spec | 70 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 rust-tracing_facade.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2693dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tracing_facade-0.1.0.crate diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c628c21 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright (C) 2019 by Josh Gao + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/rust-tracing_facade.spec b/rust-tracing_facade.spec new file mode 100644 index 0000000..5cfb952 --- /dev/null +++ b/rust-tracing_facade.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate tracing_facade + +Name: rust-tracing_facade +Version: 0.1.0 +Release: %autorelease +Summary: Facade for tracing + +License: 0BSD +URL: https://crates.io/crates/tracing_facade +Source: %{crates_source} +# PR to include license text: https://github.com/jmgao/tracing/pull/4 +Source1: https://raw.githubusercontent.com/jmgao/tracing/master/LICENSE + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Facade for tracing.} + +%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 +%{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 +cp -p %{SOURCE1} . +%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..01b400e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tracing_facade-0.1.0.crate) = 530e764ca4af0bac8e840d73381696cfa053e81ceb557a4e3e7ead18899383db5f7b7300d9dfea645cd654b70956b4a075066241471bb71f6bdb34acb56da363