|
|
|
@ -6,15 +6,17 @@
|
|
|
|
|
%global crate git2
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.7.5
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.8.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Bindings to libgit2 for interoperating with git repositories
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT/Apache-2.0
|
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
|
URL: https://crates.io/crates/git2
|
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * No vendored openssl
|
|
|
|
|
Patch0: git2-fix-metadata.diff
|
|
|
|
|
# libgit2 0.27 doesn't have this field -- see rust-libgit2-sys
|
|
|
|
|
Patch1: rust-git2-no-include_depth.patch
|
|
|
|
|
|
|
|
|
@ -23,11 +25,11 @@ ExclusiveArch: %{rust_arches}
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/curl) >= 0.7.7 with crate(libgit2-sys/curl) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/default) >= 0.7.7 with crate(libgit2-sys/default) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/https) >= 0.7.7 with crate(libgit2-sys/https) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/ssh) >= 0.7.7 with crate(libgit2-sys/ssh) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/ssh_key_from_memory) >= 0.7.7 with crate(libgit2-sys/ssh_key_from_memory) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/curl) >= 0.7.11 with crate(libgit2-sys/curl) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/default) >= 0.7.11 with crate(libgit2-sys/default) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/https) >= 0.7.11 with crate(libgit2-sys/https) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/ssh) >= 0.7.11 with crate(libgit2-sys/ssh) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(libgit2-sys/ssh_key_from_memory) >= 0.7.11 with crate(libgit2-sys/ssh_key_from_memory) < 0.8.0)
|
|
|
|
|
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(openssl-probe/default) >= 0.1.0 with crate(openssl-probe/default) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(openssl-sys/default) >= 0.9.0 with crate(openssl-sys/default) < 0.10.0)
|
|
|
|
@ -159,7 +161,7 @@ which use "unstable" feature of "%{crate}" crate.
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -174,6 +176,9 @@ which use "unstable" feature of "%{crate}" crate.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Feb 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
|
|
|
|
|
- Update to 0.8.0
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|