0e4e25f
# Generated by rust2rpm 25
6dfd27f
%bcond_without check
9533009
%global debug_package %{nil}
9533009
9533009
%global crate git2
9533009
85de0f8
Name:           rust-git2
0e4e25f
Version:        0.18.1
51a2721
Release:        %autorelease
9533009
Summary:        Bindings to libgit2 for interoperating with git repositories
9533009
85de0f8
License:        MIT OR Apache-2.0
9533009
URL:            https://crates.io/crates/git2
9986766
Source:         %{crates_source}
9533009
0e4e25f
BuildRequires:  cargo-rpm-macros >= 24
9533009
6dfd27f
%global _description %{expand:
85de0f8
Bindings to libgit2 for interoperating with git repositories. This
85de0f8
library is both threadsafe and memory safe and allows both reading and
85de0f8
writing git repositories.}
657cd2f
657cd2f
%description %{_description}
9533009
9533009
%package        devel
9533009
Summary:        %{summary}
9533009
BuildArch:      noarch
9533009
657cd2f
%description    devel %{_description}
657cd2f
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "%{crate}" crate.
657cd2f
657cd2f
%files          devel
2b56a7f
%license %{crate_instdir}/LICENSE-APACHE
2b56a7f
%license %{crate_instdir}/LICENSE-MIT
86786ab
%doc %{crate_instdir}/CHANGELOG.md
2b56a7f
%doc %{crate_instdir}/CONTRIBUTING.md
2b56a7f
%doc %{crate_instdir}/README.md
2b56a7f
%{crate_instdir}/
657cd2f
657cd2f
%package     -n %{name}+default-devel
657cd2f
Summary:        %{summary}
657cd2f
BuildArch:      noarch
657cd2f
657cd2f
%description -n %{name}+default-devel %{_description}
657cd2f
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "default" feature of the "%{crate}" crate.
657cd2f
657cd2f
%files       -n %{name}+default-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
657cd2f
657cd2f
%package     -n %{name}+https-devel
657cd2f
Summary:        %{summary}
657cd2f
BuildArch:      noarch
657cd2f
657cd2f
%description -n %{name}+https-devel %{_description}
657cd2f
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "https" feature of the "%{crate}" crate.
657cd2f
657cd2f
%files       -n %{name}+https-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
657cd2f
657cd2f
%package     -n %{name}+openssl-probe-devel
657cd2f
Summary:        %{summary}
657cd2f
BuildArch:      noarch
657cd2f
657cd2f
%description -n %{name}+openssl-probe-devel %{_description}
9533009
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "openssl-probe" feature of the "%{crate}" crate.
657cd2f
657cd2f
%files       -n %{name}+openssl-probe-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
657cd2f
657cd2f
%package     -n %{name}+openssl-sys-devel
657cd2f
Summary:        %{summary}
657cd2f
BuildArch:      noarch
657cd2f
657cd2f
%description -n %{name}+openssl-sys-devel %{_description}
657cd2f
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "openssl-sys" feature of the "%{crate}" crate.
657cd2f
657cd2f
%files       -n %{name}+openssl-sys-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
657cd2f
657cd2f
%package     -n %{name}+ssh-devel
657cd2f
Summary:        %{summary}
657cd2f
BuildArch:      noarch
657cd2f
657cd2f
%description -n %{name}+ssh-devel %{_description}
657cd2f
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "ssh" feature of the "%{crate}" crate.
657cd2f
657cd2f
%files       -n %{name}+ssh-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
657cd2f
657cd2f
%package     -n %{name}+ssh_key_from_memory-devel
657cd2f
Summary:        %{summary}
657cd2f
BuildArch:      noarch
657cd2f
657cd2f
%description -n %{name}+ssh_key_from_memory-devel %{_description}
657cd2f
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "ssh_key_from_memory" feature of the "%{crate}" crate.
657cd2f
657cd2f
%files       -n %{name}+ssh_key_from_memory-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
657cd2f
657cd2f
%package     -n %{name}+unstable-devel
657cd2f
Summary:        %{summary}
657cd2f
BuildArch:      noarch
657cd2f
657cd2f
%description -n %{name}+unstable-devel %{_description}
657cd2f
51a2721
This package contains library source intended for building other packages which
8b691d3
use the "unstable" feature of the "%{crate}" crate.
657cd2f
657cd2f
%files       -n %{name}+unstable-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
2b56a7f
2b56a7f
%package     -n %{name}+vendored-libgit2-devel
2b56a7f
Summary:        %{summary}
2b56a7f
BuildArch:      noarch
2b56a7f
2b56a7f
%description -n %{name}+vendored-libgit2-devel %{_description}
2b56a7f
2b56a7f
This package contains library source intended for building other packages which
2b56a7f
use the "vendored-libgit2" feature of the "%{crate}" crate.
2b56a7f
2b56a7f
%files       -n %{name}+vendored-libgit2-devel
2b56a7f
%ghost %{crate_instdir}/Cargo.toml
9533009
9533009
%prep
0e4e25f
%autosetup -n %{crate}-%{version} -p1
9533009
%cargo_prep
9533009
6dfd27f
%generate_buildrequires
6dfd27f
%cargo_generate_buildrequires
117fa3a
%if %{with check}
117fa3a
echo '/usr/bin/git'
117fa3a
%endif
6dfd27f
9533009
%build
9533009
%cargo_build
9533009
9533009
%install
9533009
%cargo_install
9533009
9533009
%if %{with check}
9533009
%check
e9151ea
%cargo_test
9533009
%endif
9533009
9533009
%changelog
51a2721
%autochangelog