From ee62c0aae488f817215c35114fc23057ceb95eb7 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Sun, 10 Jul 2022 20:43:05 -0700 Subject: [PATCH] Initial import; Fixes: RHBZ#1993292 --- .gitignore | 1 + rust-const_format.spec | 252 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 254 insertions(+) create mode 100644 .gitignore create mode 100644 rust-const_format.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6c4b20e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/const_format-0.2.26.crate diff --git a/rust-const_format.spec b/rust-const_format.spec new file mode 100644 index 0000000..3ec117a --- /dev/null +++ b/rust-const_format.spec @@ -0,0 +1,252 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate const_format + +Name: rust-%{crate} +Version: 0.2.26 +Release: %autorelease +Summary: Compile-time string formatting + +# Upstream license specification: Zlib +License: zlib +URL: https://crates.io/crates/const_format +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Compile-time string formatting.} + +%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-ZLIB.md +%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}+__debug-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+__debug-devel %{_description} + +This package contains library source intended for building other packages which +use the "__debug" feature of the "%{crate}" crate. + +%files -n %{name}+__debug-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+__docsrs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+__docsrs-devel %{_description} + +This package contains library source intended for building other packages which +use the "__docsrs" feature of the "%{crate}" crate. + +%files -n %{name}+__docsrs-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+__only_new_tests-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+__only_new_tests-devel %{_description} + +This package contains library source intended for building other packages which +use the "__only_new_tests" feature of the "%{crate}" crate. + +%files -n %{name}+__only_new_tests-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+__test-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+__test-devel %{_description} + +This package contains library source intended for building other packages which +use the "__test" feature of the "%{crate}" crate. + +%files -n %{name}+__test-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+all-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+all-devel %{_description} + +This package contains library source intended for building other packages which +use the "all" feature of the "%{crate}" crate. + +%files -n %{name}+all-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+assert-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+assert-devel %{_description} + +This package contains library source intended for building other packages which +use the "assert" feature of the "%{crate}" crate. + +%files -n %{name}+assert-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+assertc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+assertc-devel %{_description} + +This package contains library source intended for building other packages which +use the "assertc" feature of the "%{crate}" crate. + +%files -n %{name}+assertc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+assertcp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+assertcp-devel %{_description} + +This package contains library source intended for building other packages which +use the "assertcp" feature of the "%{crate}" crate. + +%files -n %{name}+assertcp-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+const_generics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const_generics-devel %{_description} + +This package contains library source intended for building other packages which +use the "const_generics" feature of the "%{crate}" crate. + +%files -n %{name}+const_generics-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+constant_time_as_str-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+constant_time_as_str-devel %{_description} + +This package contains library source intended for building other packages which +use the "constant_time_as_str" feature of the "%{crate}" crate. + +%files -n %{name}+constant_time_as_str-devel +%ghost %{crate_instdir}/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 the "derive" feature of the "%{crate}" crate. + +%files -n %{name}+derive-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fmt-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fmt-devel %{_description} + +This package contains library source intended for building other packages which +use the "fmt" feature of the "%{crate}" crate. + +%files -n %{name}+fmt-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+konst-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+konst-devel %{_description} + +This package contains library source intended for building other packages which +use the "konst" feature of the "%{crate}" crate. + +%files -n %{name}+konst-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+more_str_macros-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+more_str_macros-devel %{_description} + +This package contains library source intended for building other packages which +use the "more_str_macros" feature of the "%{crate}" crate. + +%files -n %{name}+more_str_macros-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+nightly_const_generics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly_const_generics-devel %{_description} + +This package contains library source intended for building other packages which +use the "nightly_const_generics" feature of the "%{crate}" crate. + +%files -n %{name}+nightly_const_generics-devel +%ghost %{crate_instdir}/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 +# Tests must be run with the "testing" feature +%cargo_test -- --features "__test" +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..b010f67 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (const_format-0.2.26.crate) = 0012f829a91874985ee0c1b4325fbcc521a971ae0d709e1e9eb798d183e62e264d18efc28be9b39eef8477cb764d1308b3eb23427c09745e367c63e4a8905cc9