parent
646e879d83
commit
65bd677781
@ -0,0 +1 @@
|
||||
/url-1.6.0.crate
|
@ -0,0 +1,70 @@
|
||||
# Generated by rust2rpm
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate url
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 1.6.0
|
||||
Release: 1%{?dist}
|
||||
Summary: URL library for Rust, based on the WHATWG URL Standard
|
||||
|
||||
License: MIT or ASL 2.0
|
||||
URL: https://crates.io/crates/url
|
||||
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: rust-packaging
|
||||
# [dependencies]
|
||||
BuildRequires: (crate(encoding) >= 0.2.0 with crate(encoding) < 0.3.0)
|
||||
BuildRequires: (crate(heapsize) >= 0.4.1 with crate(heapsize) < 0.5.0)
|
||||
BuildRequires: (crate(idna) >= 0.1.0 with crate(idna) < 0.2.0)
|
||||
BuildRequires: (crate(matches) >= 0.1.0 with crate(matches) < 0.2.0)
|
||||
BuildRequires: (crate(percent-encoding) >= 1.0.0 with crate(percent-encoding) < 2.0.0)
|
||||
BuildRequires: (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0)
|
||||
BuildRequires: (crate(serde) >= 0.6.1 with crate(serde) < 0.9.0)
|
||||
%if %{with check}
|
||||
# [dev-dependencies]
|
||||
BuildRequires: (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0)
|
||||
BuildRequires: (crate(rustc-test) >= 0.2.0 with crate(rustc-test) < 0.3.0)
|
||||
BuildRequires: (crate(serde_json) >= 0.6.1 with crate(serde_json) < 0.9.0)
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel
|
||||
URL library for Rust, based on the WHATWG URL Standard.
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use %{crate} from crates.io.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%license LICENSE-MIT LICENSE-APACHE
|
||||
%doc README.md UPGRADING.md
|
||||
%{cargo_registry}/%{crate}-%{version}/
|
||||
%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,appveyor.yml,docs,github.png}
|
||||
|
||||
%changelog
|
||||
* Fri Nov 10 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.0-1
|
||||
- Initial package
|
Loading…
Reference in new issue