From e193331dff36063c57f793395c7f3df237d8ebdf Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 12 Dec 2023 23:58:38 +0100 Subject: [PATCH] Initial import (toml_edit 0.20 compat package) --- .gitignore | 1 + README.md | 3 -- rust-toml_edit0.20.spec | 106 ++++++++++++++++++++++++++++++++++++++++ rust2rpm.toml | 4 ++ sources | 1 + 5 files changed, 112 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-toml_edit0.20.spec create mode 100644 rust2rpm.toml create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55e7b37 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/toml_edit-0.20.7.crate diff --git a/README.md b/README.md deleted file mode 100644 index c1a77ae..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-toml_edit0.20 - -The rust-toml_edit0.20 package diff --git a/rust-toml_edit0.20.spec b/rust-toml_edit0.20.spec new file mode 100644 index 0000000..2b8c8f4 --- /dev/null +++ b/rust-toml_edit0.20.spec @@ -0,0 +1,106 @@ +# Generated by rust2rpm 25 +# * missing dev-dependencies: snapbox, toml-test-data, toml-test-harness +%bcond_with check +%global debug_package %{nil} + +%global crate toml_edit + +Name: rust-toml_edit0.20 +Version: 0.20.7 +Release: %autorelease +Summary: Yet another format-preserving TOML parser + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/toml_edit +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Yet another format-preserving TOML parser.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+perf-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+perf-devel %{_description} + +This package contains library source intended for building other packages which +use the "perf" feature of the "%{crate}" crate. + +%files -n %{name}+perf-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unbounded-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unbounded-devel %{_description} + +This package contains library source intended for building other packages which +use the "unbounded" feature of the "%{crate}" crate. + +%files -n %{name}+unbounded-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..1fade42 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["missing dev-dependencies: snapbox, toml-test-data, toml-test-harness"] + diff --git a/sources b/sources new file mode 100644 index 0000000..04b6045 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (toml_edit-0.20.7.crate) = fb6ef6e495e18b5d6eb96eee5c2a39b5539a8cebbaa8b93c3995d1e14d1db26488200633c7368f67ff5f982ab20dce0977601314c643fb2671c3caaae8e584af