From a70a697286ef018eb61e6c7c2b75765a41b0ef85 Mon Sep 17 00:00:00 2001 From: blinxen Date: Tue, 6 Jun 2023 23:18:38 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + rust-gix-utils.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-gix-utils.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81e9ede --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-utils-0.1.2.crate diff --git a/rust-gix-utils.spec b/rust-gix-utils.spec new file mode 100644 index 0000000..133905e --- /dev/null +++ b/rust-gix-utils.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-utils + +Name: rust-gix-utils +Version: 0.1.2 +Release: %autorelease +Summary: Utilities for gitoxide + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-utils +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A crate with `gitoxide` utilities that don't need feature toggles.} + +%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..bdabc3d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-utils-0.1.2.crate) = 5280e4a1c67b566ef36ecb7e508e00456f2415ea41b570e7741970de9d0a0749908ad12695fc3d1181cb01b9649c398553a0adf74c3ba334ec456bf5141ce7c7