From e08da2748a679f4a0a2eb6ee40506469e81344cb Mon Sep 17 00:00:00 2001 From: blinxen Date: Thu, 28 Sep 2023 00:12:22 +0200 Subject: [PATCH] Initial package (rhbz#2241011) --- .gitignore | 1 + README.md | 3 -- rust-gix-negotiate.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-negotiate.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9092e53 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-negotiate-0.7.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 24e9f08..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-negotiate - -The rust-gix-negotiate package diff --git a/rust-gix-negotiate.spec b/rust-gix-negotiate.spec new file mode 100644 index 0000000..ad0c91e --- /dev/null +++ b/rust-gix-negotiate.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +# Deactivate tests because of a missing dev-dependency (gix-testtools) +%bcond_with check +%global debug_package %{nil} + +%global crate gix-negotiate + +Name: rust-gix-negotiate +Version: 0.7.0 +Release: %autorelease +Summary: Implementation of various negotiation algorithms used by gix + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-negotiate +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A crate of the gitoxide project implementing negotiation algorithms.} + +%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..30920e9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-negotiate-0.7.0.crate) = 9ede034c9e8cd5dc52da67f9c9522a1cba373099ff49fe5af8b64e203a442fed84859382c27c1f72d0131101936c700e80ceeb00a7686e5c20854f9582726b8c