Blame rust-git2.spec

9533009
# Generated by rust2rpm
9533009
%bcond_without check
9533009
%global debug_package %{nil}
9533009
9533009
%global crate git2
9533009
9533009
Name:           rust-%{crate}
e854330
Version:        0.6.9
9533009
Release:        1%{?dist}
9533009
Summary:        Bindings to libgit2 for interoperating with git repositories
9533009
9533009
License:        MIT or ASL 2.0
9533009
URL:            https://crates.io/crates/git2
9533009
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
9533009
9533009
ExclusiveArch:  %{rust_arches}
9533009
9533009
BuildRequires:  rust-packaging
9533009
# [dependencies]
9533009
BuildRequires:  (crate(bitflags) >= 0.9.0 with crate(bitflags) < 0.10.0)
9533009
BuildRequires:  (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0)
e854330
BuildRequires:  (crate(libgit2-sys) >= 0.6.17 with crate(libgit2-sys) < 0.7.0)
9533009
BuildRequires:  (crate(openssl-probe) >= 0.1.0 with crate(openssl-probe) < 0.2.0)
9533009
BuildRequires:  (crate(openssl-sys) >= 0.9.0 with crate(openssl-sys) < 0.10.0)
9533009
BuildRequires:  (crate(url) >= 1.0.0 with crate(url) < 2.0.0)
9533009
%if %{with check}
9533009
# [dev-dependencies]
9533009
BuildRequires:  (crate(docopt) >= 0.8.0 with crate(docopt) < 0.9.0)
9533009
BuildRequires:  (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0)
9533009
BuildRequires:  (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0)
9533009
BuildRequires:  (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0)
9533009
BuildRequires:  (crate(time) >= 0.1.0 with crate(time) < 0.2.0)
9533009
%endif
9533009
9533009
%description
9533009
%{summary}.
9533009
9533009
%package        devel
9533009
Summary:        %{summary}
9533009
BuildArch:      noarch
9533009
9533009
%description    devel
9533009
Bindings to libgit2 for interoperating with git repositories. This library is
9533009
both threadsafe and memory safe and allows both reading and writing git
9533009
repositories.
9533009
9533009
This package contains library source intended for building other packages
9533009
which use %{crate} from crates.io.
9533009
9533009
%prep
9533009
%autosetup -n %{crate}-%{version} -p1
9533009
%cargo_prep
9533009
9533009
%build
9533009
%cargo_build
9533009
9533009
%install
9533009
%cargo_install
9533009
9533009
%if %{with check}
9533009
%check
9533009
%cargo_test
9533009
%endif
9533009
9533009
%files          devel
9533009
%license LICENSE-MIT LICENSE-APACHE
9533009
%doc README.md
9533009
%{cargo_registry}/%{crate}-%{version}/
9533009
%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml
9533009
9533009
%changelog
e854330
* Wed Dec 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.9-1
e854330
- Update to 0.6.9
e854330
9533009
* Sun Nov 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.8-1
9533009
- Initial package