From f08666eec732ed9653dba0dfbc04fd874606ffe2 Mon Sep 17 00:00:00 2001 From: blinxen Date: Tue, 3 Oct 2023 20:36:43 +0200 Subject: [PATCH] Initial package (rhbz#2241786) --- .gitignore | 1 + README.md | 3 -- rust-gix-worktree-state.spec | 70 ++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-worktree-state.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3679dfc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-worktree-state-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 24028a3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-worktree-state - -The rust-gix-worktree-state package diff --git a/rust-gix-worktree-state.spec b/rust-gix-worktree-state.spec new file mode 100644 index 0000000..15d0bfe --- /dev/null +++ b/rust-gix-worktree-state.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-worktree-state + +Name: rust-gix-worktree-state +Version: 0.2.0 +Release: %autorelease +Summary: Set worktrees to a particular state + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-worktree-state +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A crate of the gitoxide project implementing setting the worktree to a +particular state.} + +%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 +%{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 +%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..1bb1ca9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-worktree-state-0.2.0.crate) = 4200e790ae67ae05fead105d3510ab6837585c03296c03084748ec875633463111ca89f140b70d90da9755d1c32aa59f4cd5235a50442084f1d7d4b1744e1c4b