From 82e72bfd1f4afdaee21317918cdded53f8b1205d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 4 Jan 2024 19:09:34 +0100 Subject: [PATCH] Initial import (#2255544) --- .gitignore | 1 + README.md | 3 --- rust-ntest.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 3 +++ sources | 1 + 5 files changed, 76 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-ntest.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0dc0cb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ntest-0.9.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 9951208..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ntest - -The rust-ntest package diff --git a/rust-ntest.spec b/rust-ntest.spec new file mode 100644 index 0000000..da094cf --- /dev/null +++ b/rust-ntest.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate ntest + +Name: rust-ntest +Version: 0.9.0 +Release: %autorelease +Summary: Testing framework for Rust + +License: MIT +URL: https://crates.io/crates/ntest +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: dos2unix + +%global _description %{expand: +Testing framework for rust which enhances the built-in library with some +useful features.} + +%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 +%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} -p1 +dos2unix --keepdate README.md +%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..1ac9840 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Testing framework for Rust" + diff --git a/sources b/sources new file mode 100644 index 0000000..2ca1934 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ntest-0.9.0.crate) = 266b3d81addea3c6e8bbff0cb3c1411d4709e2f6f978e34743a7fea0f3f5b241209f8569c09f604331beb1338060a5f5c901b27e3e68d2741333aff63e059846