|
|
@ -1,19 +1,25 @@
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate git2
|
|
|
|
%global crate git2
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-git2
|
|
|
|
Name: rust-git2
|
|
|
|
Version: 0.18.1
|
|
|
|
Version: 0.19.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Bindings to libgit2 for interoperating with git repositories
|
|
|
|
Summary: Bindings to libgit2 for interoperating with git repositories
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
License: MIT OR Apache-2.0
|
|
|
|
URL: https://crates.io/crates/git2
|
|
|
|
URL: https://crates.io/crates/git2
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
|
|
|
# * drop example-only dependencies (clap ^4, time ^0.1)
|
|
|
|
|
|
|
|
Patch: git2-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
|
|
|
BuildRequires: /usr/bin/git
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Bindings to libgit2 for interoperating with git repositories. This
|
|
|
|
Bindings to libgit2 for interoperating with git repositories. This
|
|
|
@ -138,12 +144,11 @@ use the "vendored-libgit2" feature of the "%{crate}" crate.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
# drop examples that pull in time ^0.1
|
|
|
|
|
|
|
|
rm -rv examples/
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%if %{with check}
|
|
|
|
|
|
|
|
echo '/usr/bin/git'
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|