From 35aa08cef203c207fd1af149eb074c290bf6867e Mon Sep 17 00:00:00 2001 From: blinxen Date: Thu, 28 Sep 2023 00:12:51 +0200 Subject: [PATCH] Initial package (rhbz#2241020) --- .gitignore | 1 + README.md | 3 -- rust-gix-worktree.spec | 106 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-worktree.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c859888 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-worktree-0.25.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 07e270f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-worktree - -The rust-gix-worktree package diff --git a/rust-gix-worktree.spec b/rust-gix-worktree.spec new file mode 100644 index 0000000..66a6a52 --- /dev/null +++ b/rust-gix-worktree.spec @@ -0,0 +1,106 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-worktree + +Name: rust-gix-worktree +Version: 0.25.0 +Release: %autorelease +Summary: Worktree related types and utilities used by gix + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-worktree +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crate of the gitoxide project for shared worktree related types and +utilities.} + +%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 + +%package -n %{name}+attributes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+attributes-devel %{_description} + +This package contains library source intended for building other packages which +use the "attributes" feature of the "%{crate}" crate. + +%files -n %{name}+attributes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+document-features-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+document-features-devel %{_description} + +This package contains library source intended for building other packages which +use the "document-features" feature of the "%{crate}" crate. + +%files -n %{name}+document-features-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-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..d540ec2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-worktree-0.25.0.crate) = 3bde53db0f0cec545b55189a6b4cde5ac82baef35bbd86603c55da5b8fb16d37e5a80ef7198aba542cef9109fd1de9678fb15943897d2b3452359afa778c5526