From 081f09748e2c662b5aa51943b6a9e18073c40bbc Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 20 Jan 2023 11:32:22 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-indicatif0.16.spec | 128 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 130 insertions(+) create mode 100644 .gitignore create mode 100644 rust-indicatif0.16.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..408ed0a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/indicatif-0.16.2.crate diff --git a/rust-indicatif0.16.spec b/rust-indicatif0.16.spec new file mode 100644 index 0000000..10ed923 --- /dev/null +++ b/rust-indicatif0.16.spec @@ -0,0 +1,128 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate indicatif + +Name: rust-indicatif0.16 +Version: 0.16.2 +Release: %autorelease +Summary: Progress bar and cli reporting library for Rust + +License: MIT +URL: https://crates.io/crates/indicatif +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Progress bar and cli reporting library for Rust.} + +%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 +%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}+improved_unicode-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+improved_unicode-devel %{_description} + +This package contains library source intended for building other packages which +use the "improved_unicode" feature of the "%{crate}" crate. + +%files -n %{name}+improved_unicode-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+rayon-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rayon-devel %{_description} + +This package contains library source intended for building other packages which +use the "rayon" feature of the "%{crate}" crate. + +%files -n %{name}+rayon-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-segmentation-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-segmentation-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-segmentation" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-segmentation-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+unicode-width-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+unicode-width-devel %{_description} + +This package contains library source intended for building other packages which +use the "unicode-width" feature of the "%{crate}" crate. + +%files -n %{name}+unicode-width-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+with_rayon-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+with_rayon-devel %{_description} + +This package contains library source intended for building other packages which +use the "with_rayon" feature of the "%{crate}" crate. + +%files -n %{name}+with_rayon-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..d15d867 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (indicatif-0.16.2.crate) = 5f60358f1fe3ffc0ec97d1d8922a7a2645d7dc0affed1d49a9205becdb36756d6a03482ef00fc918231770f967f7fc523f7b8c3bf4c06f71a0a93549c46fdacd