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