From 75268ccc661494e66aa6f9c24f235805205cec2f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 8 Nov 2023 14:34:35 +0100 Subject: [PATCH] Initial import (#2247954) --- .gitignore | 1 + README.md | 3 -- rust-test-log.spec | 95 ++++++++++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 3 ++ sources | 1 + 5 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-test-log.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad8bc4c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/test-log-0.2.13.crate diff --git a/README.md b/README.md deleted file mode 100644 index cfb1274..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-test-log - -The rust-test-log package diff --git a/rust-test-log.spec b/rust-test-log.spec new file mode 100644 index 0000000..3c39534 --- /dev/null +++ b/rust-test-log.spec @@ -0,0 +1,95 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate test-log + +Name: rust-test-log +Version: 0.2.13 +Release: %autorelease +Summary: Attribute for initializing logging and/or tracing before running tests + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/test-log +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A replacement of the #[test] attribute that initializes logging and/or +tracing infrastructure before running tests.} + +%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}/CHANGELOG.md +%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 + +%package -n %{name}+log-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+log-devel %{_description} + +This package contains library source intended for building other packages which +use the "log" feature of the "%{crate}" crate. + +%files -n %{name}+log-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+trace-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+trace-devel %{_description} + +This package contains library source intended for building other packages which +use the "trace" feature of the "%{crate}" crate. + +%files -n %{name}+trace-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..5190b9d --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Attribute for initializing logging and/or tracing before running tests" + diff --git a/sources b/sources new file mode 100644 index 0000000..34ff6c7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (test-log-0.2.13.crate) = 19331a5856b174f30bc0f1946bf9a108a01868c0d2d82758b72767a0b18e405ac60036383b490bce7bd328b22c6859ea255298b257308d9a7a303815b1c62725