From 38dfc01421c652b359747a50cc3c9a77357b0027 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sat, 15 Feb 2020 16:02:19 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-markup5ever_rcdom.spec | 75 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-markup5ever_rcdom.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..00cfb70 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/markup5ever_rcdom-0.1.0.crate diff --git a/rust-markup5ever_rcdom.spec b/rust-markup5ever_rcdom.spec new file mode 100644 index 0000000..80e797a --- /dev/null +++ b/rust-markup5ever_rcdom.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate markup5ever_rcdom + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Basic, unsupported DOM structure for use by tests in html5ever/xml5ever + +# Upstream license specification: MIT / Apache-2.0 +# https://github.com/servo/html5ever/issues/412 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/markup5ever_rcdom +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Basic, unsupported DOM structure for use by tests in html5ever/xml5ever.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages +which use "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sat Feb 15 15:59:32 CET 2020 Igor Raits - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..029bcfc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (markup5ever_rcdom-0.1.0.crate) = 7c21836fcdd45bfdef7305327255291c92d75d3329798d31abab26297de8c381e41b4419fb7ac631310835d590b63751a63bdd87e2697ea3dfdd6599033433c7