From 634d10bca0a447c4ef4cafd97a5b0f4d611a9484 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 25 Aug 2020 11:14:00 -0700 Subject: [PATCH] Actually commit the new spec --- rust-tracing-core.spec | 109 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 rust-tracing-core.spec diff --git a/rust-tracing-core.spec b/rust-tracing-core.spec new file mode 100644 index 0000000..c1f21f3 --- /dev/null +++ b/rust-tracing-core.spec @@ -0,0 +1,109 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate tracing-core + +Name: rust-%{crate} +Version: 0.1.15 +Release: 1%{?dist} +Summary: Core primitives for application-level tracing + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/tracing-core +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Core primitives for application-level tracing.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE LICENSE-lazy_static LICENSE-spin +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ +# Don't ship our manual license copies in the devel package. +%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/LICENSE-* + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+lazy_static-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+lazy_static-devel %{_description} + +This package contains library source intended for building other packages +which use "lazy_static" feature of "%{crate}" crate. + +%files -n %{name}+lazy_static-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +# These "inner" licenses are also MIT, but with different copyright statements. +# Copy them to distinct names for normal license installation. +cp -p src/lazy_static/LICENSE LICENSE-lazy_static +cp -p src/spin/LICENSE LICENSE-spin + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Tue Aug 25 2020 Josh Stone - 0.1.15-1 +- Update to 0.1.15 + +* Thu Jul 23 2020 Josh Stone - 0.1.11-1 +- Initial package