From 65bd6777812f91682364bf51a78658fb2c5284a7 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 13 Nov 2017 19:35:17 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-url.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-url.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e2b78ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/url-1.6.0.crate diff --git a/rust-url.spec b/rust-url.spec new file mode 100644 index 0000000..c765f83 --- /dev/null +++ b/rust-url.spec @@ -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 - 1.6.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ca8edc4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (url-1.6.0.crate) = 7f355617afb1ef6c572f4d14aeaf26b184fcadf2c35ea9c5e0f5a76ff2096957b75b95c48449732c4c239b17932674a6fea525f04a77b3f8328ad37c5e143a98