|
|
51f9e99 |
# Generated by rust2rpm
|
|
|
f2b82c1 |
# Tests are too much environment dependent
|
|
|
f2b82c1 |
%bcond_with check
|
|
|
51f9e99 |
%global debug_package %{nil}
|
|
|
51f9e99 |
|
|
|
736781c |
# We ship it as part of rust.src
|
|
|
736781c |
%global __cargo_is_bin() false
|
|
|
736781c |
|
|
|
51f9e99 |
%global crate cargo
|
|
|
51f9e99 |
|
|
|
51f9e99 |
Name: rust-%{crate}
|
|
|
b53f8cf |
Version: 0.32.0
|
|
|
dd247d3 |
Release: 2%{?dist}
|
|
|
51f9e99 |
Summary: Cargo, a package manager for Rust
|
|
|
51f9e99 |
|
|
|
dd90eed |
# Upstream license specification: MIT OR Apache-2.0
|
|
|
51f9e99 |
License: MIT or ASL 2.0
|
|
|
51f9e99 |
URL: https://crates.io/crates/cargo
|
|
|
51f9e99 |
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
51f9e99 |
# Initial patched metadata
|
|
|
51f9e99 |
# * No windows/macos
|
|
|
7236e65 |
# * No rustc-workspace-hack
|
|
|
dd247d3 |
# * Bump crossbeam-utils to 0.6, https://github.com/rust-lang/cargo/commit/5e71ad6c5b4b4f9d63400464d331c6d210ac8e70
|
|
|
dd90eed |
Patch0: cargo-fix-metadata.diff
|
|
|
4c176e5 |
Patch1: 0001-Upgrade-crossbeam-utils-to-0.6.0.patch
|
|
|
51f9e99 |
|
|
|
51f9e99 |
ExclusiveArch: %{rust_arches}
|
|
|
51f9e99 |
|
|
|
51f9e99 |
BuildRequires: rust-packaging
|
|
|
98f1d24 |
BuildRequires: (crate(atty/default) >= 0.2.0 with crate(atty/default) < 0.3.0)
|
|
|
b53f8cf |
BuildRequires: (crate(bytesize/default) >= 1.0.0 with crate(bytesize/default) < 2.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(clap/default) >= 2.31.2 with crate(clap/default) < 3.0.0)
|
|
|
b53f8cf |
BuildRequires: (crate(crates-io/default) >= 0.20.0 with crate(crates-io/default) < 0.21.0)
|
|
|
dd247d3 |
BuildRequires: (crate(crossbeam-utils/default) >= 0.6.0 with crate(crossbeam-utils/default) < 0.7.0)
|
|
|
98f1d24 |
BuildRequires: (crate(crypto-hash/default) >= 0.3.1 with crate(crypto-hash/default) < 0.4.0)
|
|
|
b53f8cf |
BuildRequires: (crate(curl-sys/default) >= 0.4.12 with crate(curl-sys/default) < 0.5.0)
|
|
|
b53f8cf |
BuildRequires: (crate(curl/default) >= 0.4.17 with crate(curl/default) < 0.5.0)
|
|
|
b53f8cf |
BuildRequires: (crate(curl/http2) >= 0.4.17 with crate(curl/http2) < 0.5.0)
|
|
|
736781c |
BuildRequires: (crate(env_logger/default) >= 0.5.11 with crate(env_logger/default) < 0.6.0)
|
|
|
98f1d24 |
BuildRequires: (crate(failure/default) >= 0.1.2 with crate(failure/default) < 0.2.0)
|
|
|
98f1d24 |
BuildRequires: (crate(filetime/default) >= 0.2.0 with crate(filetime/default) < 0.3.0)
|
|
|
b53f8cf |
BuildRequires: (crate(flate2/default) >= 1.0.3 with crate(flate2/default) < 2.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(fs2/default) >= 0.4.0 with crate(fs2/default) < 0.5.0)
|
|
|
98f1d24 |
BuildRequires: (crate(git2-curl/default) >= 0.8.1 with crate(git2-curl/default) < 0.9.0)
|
|
|
736781c |
BuildRequires: (crate(git2/default) >= 0.7.5 with crate(git2/default) < 0.8.0)
|
|
|
98f1d24 |
BuildRequires: (crate(glob/default) >= 0.2.11 with crate(glob/default) < 0.3.0)
|
|
|
98f1d24 |
BuildRequires: (crate(hex/default) >= 0.3.0 with crate(hex/default) < 0.4.0)
|
|
|
98f1d24 |
BuildRequires: (crate(home/default) >= 0.3.0 with crate(home/default) < 0.4.0)
|
|
|
98f1d24 |
BuildRequires: (crate(ignore/default) >= 0.4.0 with crate(ignore/default) < 0.5.0)
|
|
|
98f1d24 |
BuildRequires: (crate(jobserver/default) >= 0.1.11 with crate(jobserver/default) < 0.2.0)
|
|
|
98f1d24 |
BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0)
|
|
|
b53f8cf |
BuildRequires: (crate(lazycell/default) >= 1.2.0 with crate(lazycell/default) < 2.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
|
|
|
b53f8cf |
BuildRequires: (crate(libgit2-sys/default) >= 0.7.9 with crate(libgit2-sys/default) < 0.8.0)
|
|
|
98f1d24 |
BuildRequires: (crate(log/default) >= 0.4.0 with crate(log/default) < 0.5.0)
|
|
|
98f1d24 |
BuildRequires: (crate(num_cpus/default) >= 1.0.0 with crate(num_cpus/default) < 2.0.0)
|
|
|
736781c |
BuildRequires: (crate(opener/default) >= 0.3.0 with crate(opener/default) < 0.4.0)
|
|
|
98f1d24 |
BuildRequires: (crate(openssl/default) >= 0.10.11 with crate(openssl/default) < 0.11.0)
|
|
|
98f1d24 |
BuildRequires: (crate(rustfix/default) >= 0.4.2 with crate(rustfix/default) < 0.5.0)
|
|
|
98f1d24 |
BuildRequires: (crate(same-file/default) >= 1.0.0 with crate(same-file/default) < 2.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(semver/default) >= 0.9.0 with crate(semver/default) < 0.10.0)
|
|
|
98f1d24 |
BuildRequires: (crate(semver/serde) >= 0.9.0 with crate(semver/serde) < 0.10.0)
|
|
|
98f1d24 |
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(serde_derive/default) >= 1.0.0 with crate(serde_derive/default) < 2.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(serde_ignored/default) >= 0.0.4 with crate(serde_ignored/default) < 0.0.5)
|
|
|
b53f8cf |
BuildRequires: (crate(serde_json/default) >= 1.0.30 with crate(serde_json/default) < 2.0.0)
|
|
|
b53f8cf |
BuildRequires: (crate(serde_json/raw_value) >= 1.0.30 with crate(serde_json/raw_value) < 2.0.0)
|
|
|
736781c |
BuildRequires: (crate(shell-escape/default) >= 0.1.4 with crate(shell-escape/default) < 0.2.0)
|
|
|
51f9e99 |
BuildRequires: (crate(tar) >= 0.4.15 with crate(tar) < 0.5.0)
|
|
|
98f1d24 |
BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(termcolor/default) >= 1.0.0 with crate(termcolor/default) < 2.0.0)
|
|
|
98f1d24 |
BuildRequires: (crate(toml/default) >= 0.4.2 with crate(toml/default) < 0.5.0)
|
|
|
98f1d24 |
BuildRequires: (crate(unicode-width/default) >= 0.1.5 with crate(unicode-width/default) < 0.2.0)
|
|
|
98f1d24 |
BuildRequires: (crate(url/default) >= 1.1.0 with crate(url/default) < 2.0.0)
|
|
|
51f9e99 |
%if %{with check}
|
|
|
98f1d24 |
BuildRequires: (crate(bufstream/default) >= 0.1.0 with crate(bufstream/default) < 0.2.0)
|
|
|
b53f8cf |
BuildRequires: (crate(proptest/default) >= 0.8.7 with crate(proptest/default) < 0.9.0)
|
|
|
51f9e99 |
BuildRequires: git-core
|
|
|
51f9e99 |
%endif
|
|
|
51f9e99 |
|
|
|
98f1d24 |
%global _description \
|
|
|
98f1d24 |
Cargo, a package manager for Rust.
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%description %{_description}
|
|
|
51f9e99 |
|
|
|
51f9e99 |
%package devel
|
|
|
51f9e99 |
Summary: %{summary}
|
|
|
51f9e99 |
BuildArch: noarch
|
|
|
51f9e99 |
|
|
|
98f1d24 |
%description devel %{_description}
|
|
|
98f1d24 |
|
|
|
98f1d24 |
This package contains library source intended for building other packages
|
|
|
98f1d24 |
which use "%{crate}" crate.
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%files devel
|
|
|
98f1d24 |
%license LICENSE-APACHE LICENSE-MIT
|
|
|
98f1d24 |
%doc ARCHITECTURE.md CONTRIBUTING.md README.md src/doc
|
|
|
98f1d24 |
%{cargo_registry}/%{crate}-%{version}/
|
|
|
98f1d24 |
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,etc}
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%package -n %{name}+default-devel
|
|
|
98f1d24 |
Summary: %{summary}
|
|
|
98f1d24 |
BuildArch: noarch
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%description -n %{name}+default-devel %{_description}
|
|
|
51f9e99 |
|
|
|
51f9e99 |
This package contains library source intended for building other packages
|
|
|
98f1d24 |
which use "default" feature of "%{crate}" crate.
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%files -n %{name}+default-devel
|
|
|
98f1d24 |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%package -n %{name}+openssl-devel
|
|
|
98f1d24 |
Summary: %{summary}
|
|
|
98f1d24 |
BuildArch: noarch
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%description -n %{name}+openssl-devel %{_description}
|
|
|
98f1d24 |
|
|
|
98f1d24 |
This package contains library source intended for building other packages
|
|
|
98f1d24 |
which use "openssl" feature of "%{crate}" crate.
|
|
|
98f1d24 |
|
|
|
98f1d24 |
%files -n %{name}+openssl-devel
|
|
|
98f1d24 |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
51f9e99 |
|
|
|
51f9e99 |
%prep
|
|
|
51f9e99 |
%autosetup -n %{crate}-%{version} -p1
|
|
|
51f9e99 |
%cargo_prep
|
|
|
51f9e99 |
|
|
|
51f9e99 |
%build
|
|
|
51f9e99 |
%cargo_build
|
|
|
51f9e99 |
|
|
|
51f9e99 |
%install
|
|
|
51f9e99 |
%cargo_install
|
|
|
51f9e99 |
|
|
|
51f9e99 |
%if %{with check}
|
|
|
51f9e99 |
%check
|
|
|
51f9e99 |
%cargo_test
|
|
|
51f9e99 |
%endif
|
|
|
51f9e99 |
|
|
|
51f9e99 |
%changelog
|
|
|
dd247d3 |
* Sat Dec 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.32.0-2
|
|
|
dd247d3 |
- Bump crossbeam-utils to 0.6
|
|
|
dd247d3 |
|
|
|
b53f8cf |
* Thu Dec 06 2018 Josh Stone <jistone@redhat.com> - 0.32.0-1
|
|
|
b53f8cf |
- Update to 0.32.0
|
|
|
b53f8cf |
|
|
|
736781c |
* Sat Nov 17 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.31.0-1
|
|
|
736781c |
- Update to 0.31.0
|
|
|
736781c |
|
|
|
98f1d24 |
* Tue Nov 13 2018 Josh Stone <jistone@redhat.com> - 0.30.0-2
|
|
|
98f1d24 |
- Adapt to new packaging
|
|
|
98f1d24 |
|
|
|
dd90eed |
* Mon Sep 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.0-2
|
|
|
dd90eed |
- Switch to crossbeam-utils
|
|
|
dd90eed |
|
|
|
3ea06c0 |
* Sat Aug 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.0-1
|
|
|
3ea06c0 |
- Update to 0.29.0
|
|
|
3ea06c0 |
|
|
|
51f9e99 |
* Sun Jul 22 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.0-1
|
|
|
51f9e99 |
- Initial package
|