Update package.license in Cargo.toml to reflect bundled dependencies

epel10
Fabio Valentini 3 years ago
parent 51f909f2c3
commit c547c9a400
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,5 +1,5 @@
--- libgit2-sys-0.13.4+1.4.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ libgit2-sys-0.13.4+1.4.2/Cargo.toml 2022-05-25T11:00:08.639367+00:00
+++ libgit2-sys-0.13.4+1.4.2/Cargo.toml 2022-08-25T10:17:20.696469+00:00
@@ -12,7 +12,7 @@
[package]
edition = "2018"
@ -9,6 +9,15 @@
authors = [
"Josh Triplett <josh@joshtriplett.org>",
"Alex Crichton <alex@alexcrichton.com>",
@@ -27,7 +27,7 @@
"libgit2/tests/*",
]
description = "Native bindings to the libgit2 library"
-license = "MIT OR Apache-2.0"
+license = "MIT AND GPL-2.0-only WITH GCC-exception-2.0 AND BSD-3-Clause"
repository = "https://github.com/rust-lang/git2-rs"
[lib]
@@ -58,11 +58,6 @@
ssh = ["libssh2-sys"]
ssh_key_from_memory = []

@ -1,25 +1,29 @@
# Generated by rust2rpm 21
# Generated by rust2rpm 22
%bcond_without check
%global debug_package %{nil}
%global crate libgit2-sys
%global upstream_version 0.13.4+1.4.2
Name: rust-%{crate}
Name: rust-libgit2-sys
Version: 0.13.4
Release: %autorelease
Summary: Native bindings to the libgit2 library
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
# * libgit2-sys crate: MIT OR Apache-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
Source: %{crates_source %{crate} %{upstream_version}}
# Initial patched metadata
# Manually created patch for downstream crate metadata changes
# * 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:
# 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}
@ -34,15 +38,10 @@ Native bindings to the libgit2 library.}
Summary: %{summary}
BuildArch: noarch
# libgit2: GPLv2 with exceptions
Provides: bundled(libgit2) = 1.4.2
# http-parser: MIT
Provides: bundled(http-parser) = 2.0
# pcre: BSD
Provides: bundled(pcre) = 8.44
License: MIT and GPLv2 with exceptions and BSD
%description devel %{_description}
This package contains library source intended for building other packages which

Loading…
Cancel
Save