From 5044699494529712ce0bd021d2c4d0b7fbcc916b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 18 Aug 2019 15:58:44 +0200 Subject: [PATCH] Initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-syn0.15.spec | 207 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + tests/.fmf/version | 1 + tests/provision.fmf | 5 ++ tests/tests.yml | 13 +++ 6 files changed, 228 insertions(+) create mode 100644 .gitignore create mode 100644 rust-syn0.15.spec create mode 100644 sources create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78cbb83 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/syn-0.15.44.crate diff --git a/rust-syn0.15.spec b/rust-syn0.15.spec new file mode 100644 index 0000000..d1a2e5a --- /dev/null +++ b/rust-syn0.15.spec @@ -0,0 +1,207 @@ +# Generated by rust2rpm 10 +%bcond_with check +%global debug_package %{nil} + +%global crate syn + +Name: rust-%{crate}0.15 +Version: 0.15.44 +Release: 1%{?dist} +Summary: Parser for Rust source code + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/syn +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Parser for Rust source code.} + +%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 +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/Cargo.toml + +%package -n %{name}+clone-impls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+clone-impls-devel %{_description} + +This package contains library source intended for building other packages +which use "clone-impls" feature of "%{crate}" crate. + +%files -n %{name}+clone-impls-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+derive-devel %{_description} + +This package contains library source intended for building other packages +which use "derive" feature of "%{crate}" crate. + +%files -n %{name}+derive-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+extra-traits-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+extra-traits-devel %{_description} + +This package contains library source intended for building other packages +which use "extra-traits" feature of "%{crate}" crate. + +%files -n %{name}+extra-traits-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+fold-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fold-devel %{_description} + +This package contains library source intended for building other packages +which use "fold" feature of "%{crate}" crate. + +%files -n %{name}+fold-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+full-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+full-devel %{_description} + +This package contains library source intended for building other packages +which use "full" feature of "%{crate}" crate. + +%files -n %{name}+full-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+parsing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parsing-devel %{_description} + +This package contains library source intended for building other packages +which use "parsing" feature of "%{crate}" crate. + +%files -n %{name}+parsing-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+printing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+printing-devel %{_description} + +This package contains library source intended for building other packages +which use "printing" feature of "%{crate}" crate. + +%files -n %{name}+printing-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+proc-macro-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+proc-macro-devel %{_description} + +This package contains library source intended for building other packages +which use "proc-macro" feature of "%{crate}" crate. + +%files -n %{name}+proc-macro-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+quote-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+quote-devel %{_description} + +This package contains library source intended for building other packages +which use "quote" feature of "%{crate}" crate. + +%files -n %{name}+quote-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+visit-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+visit-devel %{_description} + +This package contains library source intended for building other packages +which use "visit" feature of "%{crate}" crate. + +%files -n %{name}+visit-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+visit-mut-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+visit-mut-devel %{_description} + +This package contains library source intended for building other packages +which use "visit-mut" feature of "%{crate}" crate. + +%files -n %{name}+visit-mut-devel +%ghost %{cargo_registry}/%{crate}-%{version}/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 +* Sun Aug 18 15:57:55 CEST 2019 Igor Gnatenko - 0.15.44-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..10f7c55 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (syn-0.15.44.crate) = c6c9b5887425e1e5fab905e477fcea41bba191693c471cf26922a9dfdd59ed957155a399406cc3723933a869565e7295183dabedfc34e3e2a20874ba94c7ead7 diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..df66de5 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-syn0.15