From 5ccf38c00bc30ac9192181b67816a93def4713e3 Mon Sep 17 00:00:00 2001 From: blinxen Date: Sat, 14 Oct 2023 09:30:02 +0200 Subject: [PATCH] Initial package (rhbz#2244103) --- .gitignore | 1 + README.md | 3 -- rust-gix-status.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 9 ++++++ sources | 1 + 5 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-status.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c6fade4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-status-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 539cd9c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-status - -The rust-gix-status package diff --git a/rust-gix-status.spec b/rust-gix-status.spec new file mode 100644 index 0000000..b88a08c --- /dev/null +++ b/rust-gix-status.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 25 +# * Deactivate tests because of a missing dev-dependency (gix-testtools) +# * See https://github.com/Byron/gitoxide/discussions/900 for more information +%bcond_with check +%global debug_package %{nil} + +%global crate gix-status + +Name: rust-gix-status +Version: 0.2.0 +Release: %autorelease +Summary: Git status implemenation used by gix + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-status +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crate of the gitoxide project dealing with 'git status'-like +functionality.} + +%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} -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..18abb98 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,9 @@ +[package] +summary = "Git status implemenation used by gix" + +[tests] +run = ["none"] +comments = [ + "Deactivate tests because of a missing dev-dependency (gix-testtools)", + "See https://github.com/Byron/gitoxide/discussions/900 for more information" +] diff --git a/sources b/sources new file mode 100644 index 0000000..5ba0a77 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-status-0.2.0.crate) = 558206faf99e46812a79f4efc3166f6652beee30ff5740d5d0f3b33901227d893bd5f8078cd713e0301fffbcb39942457084593d1107d1cb1b12e66b400d1943