From edfa5c91301ee23444174fb52b55f40a4a743a45 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 11 May 2021 09:37:36 +0200 Subject: [PATCH] initial import (#1952688) --- .gitignore | 4 ++ README.md | 3 -- rust-convert_case.spec | 99 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 104 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-convert_case.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e9c9fc5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/convert_case-0.4.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 44967d1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-convert_case - -The rust-convert_case package diff --git a/rust-convert_case.spec b/rust-convert_case.spec new file mode 100644 index 0000000..54b0bb0 --- /dev/null +++ b/rust-convert_case.spec @@ -0,0 +1,99 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate convert_case + +Name: rust-%{crate} +Version: 0.4.0 +Release: 1%{?dist} +Summary: Convert strings into any case + +# Upstream license specification: MIT +# https://github.com/rutrum/convert-case/commit/f72ca63 +License: MIT +URL: https://crates.io/crates/convert_case +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Convert strings into any case.} + +%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 + +%package -n %{name}+rand-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand-devel %{_description} + +This package contains library source intended for building other packages +which use "rand" feature of "%{crate}" crate. + +%files -n %{name}+rand-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+random-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+random-devel %{_description} + +This package contains library source intended for building other packages +which use "random" feature of "%{crate}" crate. + +%files -n %{name}+random-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 +* Mon May 10 2021 Fabio Valentini - 0.4.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..10562e8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (convert_case-0.4.0.crate) = e17e92b94b030e39f368ef0dd0288dbb45f77c8ce3034c1a6fd2fd43f38cf10a1af5aa7bebdfb447c335d9593c32dde7262e13f97c271c419c6106cf47dc01e1