From fbe73a046f37f2b88b183cd166a9815820797da6 Mon Sep 17 00:00:00 2001 From: Albert Larsan Date: Thu, 18 Jan 2024 18:04:20 +0100 Subject: [PATCH] Initial import (fedora#2254773) --- .gitignore | 1 + rust-mock_instant.spec | 92 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 94 insertions(+) create mode 100644 .gitignore create mode 100644 rust-mock_instant.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dcb2046 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mock_instant-0.3.1.crate diff --git a/rust-mock_instant.spec b/rust-mock_instant.spec new file mode 100644 index 0000000..2a9beb7 --- /dev/null +++ b/rust-mock_instant.spec @@ -0,0 +1,92 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate mock_instant + +Name: rust-mock_instant +Version: 0.3.1 +Release: %autorelease +Summary: Simple way to mock an std::time::Instant + +License: 0BSD +URL: https://crates.io/crates/mock_instant +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A simple way to mock an std::time::Instant.} + +%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.txt +%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}+once_cell-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+once_cell-devel %{_description} + +This package contains library source intended for building other packages which +use the "once_cell" feature of the "%{crate}" crate. + +%files -n %{name}+once_cell-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sync-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sync-devel %{_description} + +This package contains library source intended for building other packages which +use the "sync" feature of the "%{crate}" crate. + +%files -n %{name}+sync-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/sources b/sources new file mode 100644 index 0000000..e5fe85e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mock_instant-0.3.1.crate) = fb28497ccda4072f3fa58f6a6013f414033493c1f1ada402f4ffecf1827a76aab5538189374e1fa68af7526f7a7886d87ea082d54f00bed72fcd274385553843