diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cf80244 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tracing_chromium-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_chromium.spec b/rust-tracing_chromium.spec new file mode 100644 index 0000000..c944812 --- /dev/null +++ b/rust-tracing_chromium.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate tracing_chromium + +Name: rust-tracing_chromium +Version: 0.1.0 +Release: %autorelease +Summary: Chromium tracing implementation for tracing_facade + +License: 0BSD +URL: https://crates.io/crates/tracing_chromium +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: +Chromium tracing implementation for tracing_facade.} + +%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..3c0c144 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tracing_chromium-0.1.0.crate) = 16cc7ac56a48dcd74e7dad516d4e9d104c5446453c98954d0337175dfae42c5fb6612ea58813f7ec9e1d6b6a8d4f465434cf646313d059d4f71ef57e51bfe260