|
|
@ -1,12 +1,12 @@
|
|
|
|
# Generated by rust2rpm 17
|
|
|
|
# Generated by rust2rpm 19
|
|
|
|
%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.12.21+1.1.0
|
|
|
|
%global upstream_version 0.12.25+1.3.0
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.12.21
|
|
|
|
Version: 0.12.25
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Native bindings to the libgit2 library
|
|
|
|
Summary: Native bindings to the libgit2 library
|
|
|
|
|
|
|
|
|
|
|
@ -16,7 +16,6 @@ URL: https://crates.io/crates/libgit2-sys
|
|
|
|
Source: %{crates_source %{crate} %{upstream_version}}
|
|
|
|
Source: %{crates_source %{crate} %{upstream_version}}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Initial patched metadata
|
|
|
|
# * Remove libgit2 version from version field
|
|
|
|
# * Remove libgit2 version from version field
|
|
|
|
# * Remove zlib-ng features
|
|
|
|
|
|
|
|
Patch0: libgit2-sys-fix-metadata.diff
|
|
|
|
Patch0: libgit2-sys-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
@ -34,12 +33,12 @@ Native bindings to the libgit2 library.}
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: (pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)
|
|
|
|
Requires: (pkgconfig(libgit2) >= 1.3.0 with pkgconfig(libgit2) < 2.0.0)
|
|
|
|
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
|
|
%license LICENSE-MIT LICENSE-APACHE
|
|
|
@ -51,8 +50,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
use "the default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
@ -63,8 +62,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+https-devel %{_description}
|
|
|
|
%description -n %{name}+https-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "https" feature of "%{crate}" crate.
|
|
|
|
use "the https" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+https-devel
|
|
|
|
%files -n %{name}+https-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
@ -75,8 +74,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+libssh2-sys-devel %{_description}
|
|
|
|
%description -n %{name}+libssh2-sys-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "libssh2-sys" feature of "%{crate}" crate.
|
|
|
|
use "the libssh2-sys" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+libssh2-sys-devel
|
|
|
|
%files -n %{name}+libssh2-sys-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
@ -87,8 +86,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+openssl-sys-devel %{_description}
|
|
|
|
%description -n %{name}+openssl-sys-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "openssl-sys" feature of "%{crate}" crate.
|
|
|
|
use "the openssl-sys" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+openssl-sys-devel
|
|
|
|
%files -n %{name}+openssl-sys-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
@ -99,8 +98,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+ssh-devel %{_description}
|
|
|
|
%description -n %{name}+ssh-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "ssh" feature of "%{crate}" crate.
|
|
|
|
use "the ssh" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+ssh-devel
|
|
|
|
%files -n %{name}+ssh-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
@ -111,8 +110,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+ssh_key_from_memory-devel %{_description}
|
|
|
|
%description -n %{name}+ssh_key_from_memory-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
which use "ssh_key_from_memory" feature of "%{crate}" crate.
|
|
|
|
use "the ssh_key_from_memory" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+ssh_key_from_memory-devel
|
|
|
|
%files -n %{name}+ssh_key_from_memory-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
@ -126,7 +125,7 @@ rm -vrf libgit2
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%if ! %{__cargo_skip_build}
|
|
|
|
%if ! %{__cargo_skip_build}
|
|
|
|
echo '(pkgconfig(libgit2) >= 1.1.0 with pkgconfig(libgit2) < 2.0.0)'
|
|
|
|
echo '(pkgconfig(libgit2) >= 1.3.0 with pkgconfig(libgit2) < 2.0.0)'
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|