From 0a05d3fcec3d7bde7cf11ad1dbf21500240ff9d9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 8 Apr 2023 23:22:20 +0200 Subject: [PATCH] Initial import (#2183742) --- .gitignore | 1 + README.md | 3 -- rust-clap_mangen.spec | 82 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-clap_mangen.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..52edc53 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/clap_mangen-0.2.10.crate diff --git a/README.md b/README.md deleted file mode 100644 index 618f567..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-clap_mangen - -The rust-clap_mangen package diff --git a/rust-clap_mangen.spec b/rust-clap_mangen.spec new file mode 100644 index 0000000..f1bfb57 --- /dev/null +++ b/rust-clap_mangen.spec @@ -0,0 +1,82 @@ +# Generated by rust2rpm 24 +# * test sources are not included in published crates +%bcond_with check +%global debug_package %{nil} + +%global crate clap_mangen + +Name: rust-clap_mangen +Version: 0.2.10 +Release: %autorelease +Summary: Manpage generator for clap + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/clap_mangen +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A manpage generator for clap.} + +%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}+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 + +%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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..3f6169c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (clap_mangen-0.2.10.crate) = afe63fd15c4a4c55420559ed5b6166a9b4a90dc74ac2a2e87c6574cc735f8aeba31ad7b8c704cd5bac338c69a22d01eed1d274befe056c1da36c78098946452b