|
|
@ -1,25 +1,29 @@
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate libgit2-sys
|
|
|
|
%global crate libgit2-sys
|
|
|
|
%global upstream_version 0.13.4+1.4.2
|
|
|
|
%global upstream_version 0.13.4+1.4.2
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-libgit2-sys
|
|
|
|
Version: 0.13.4
|
|
|
|
Version: 0.13.4
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Native bindings to the libgit2 library
|
|
|
|
Summary: Native bindings to the libgit2 library
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT OR Apache-2.0
|
|
|
|
# * libgit2-sys crate: MIT OR Apache-2.0
|
|
|
|
License: MIT or ASL 2.0
|
|
|
|
# * bundled libgit2: GPL-2.0-only WITH GCC-exception-2.0
|
|
|
|
|
|
|
|
# * bundled http-parser: MIT
|
|
|
|
|
|
|
|
# * bundled pcre: BSD-3-Clause
|
|
|
|
|
|
|
|
License: MIT AND GPL-2.0-only WITH GCC-exception-2.0 AND BSD-3-Clause
|
|
|
|
URL: https://crates.io/crates/libgit2-sys
|
|
|
|
URL: https://crates.io/crates/libgit2-sys
|
|
|
|
Source: %{crates_source %{crate} %{upstream_version}}
|
|
|
|
Source: %{crates_source %{crate} %{upstream_version}}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * remove libgit2 version from version field
|
|
|
|
# * remove libgit2 version from version field
|
|
|
|
Patch0: libgit2-sys-fix-metadata.diff
|
|
|
|
# * update package.license field to reflect bundled dependencies
|
|
|
|
|
|
|
|
Patch: libgit2-sys-fix-metadata.diff
|
|
|
|
# * build against the bundled copy of libgit2 unconditionally:
|
|
|
|
# * build against the bundled copy of libgit2 unconditionally:
|
|
|
|
# the version in the Fedora repositories is too old
|
|
|
|
# the version in the Fedora repositories is too old
|
|
|
|
Patch1: 0001-build-with-vendored-libgit2-unconditionally.patch
|
|
|
|
Patch: 0001-build-with-vendored-libgit2-unconditionally.patch
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
@ -34,15 +38,10 @@ Native bindings to the libgit2 library.}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
# libgit2: GPLv2 with exceptions
|
|
|
|
|
|
|
|
Provides: bundled(libgit2) = 1.4.2
|
|
|
|
Provides: bundled(libgit2) = 1.4.2
|
|
|
|
# http-parser: MIT
|
|
|
|
|
|
|
|
Provides: bundled(http-parser) = 2.0
|
|
|
|
Provides: bundled(http-parser) = 2.0
|
|
|
|
# pcre: BSD
|
|
|
|
|
|
|
|
Provides: bundled(pcre) = 8.44
|
|
|
|
Provides: bundled(pcre) = 8.44
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT and GPLv2 with exceptions and BSD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|