From cdfd8710752e78830f5e9dbb37305892e9b87bde Mon Sep 17 00:00:00 2001 From: blinxen Date: Tue, 6 Jun 2023 23:02:02 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + rust-gix-bitmap.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 73 insertions(+) create mode 100644 .gitignore create mode 100644 rust-gix-bitmap.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1507916 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-bitmap-0.2.4.crate diff --git a/rust-gix-bitmap.spec b/rust-gix-bitmap.spec new file mode 100644 index 0000000..08555d0 --- /dev/null +++ b/rust-gix-bitmap.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-bitmap + +Name: rust-gix-bitmap +Version: 0.2.4 +Release: %autorelease +Summary: Implementation of the standard git bitmap format + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-bitmap +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A WIP crate of the gitoxide project dedicated implementing the standard +git bitmap format.} + +%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..879bcdb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-bitmap-0.2.4.crate) = 8cdf392a41c8cb752b81f689cef90caa5c3688a4910903f7b76bc1f79f33d22a96f711d869d14a1c29e4b7fed600583040e0649052fad62d41edf8c17e3c0bcc